#9272 closed bug (wontfix)

Template Haskell doesn't support n+k patterns

Reported by: br1 Owned by:
Priority: normal Milestone:
Component: Template Haskell Version: 7.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: GHC rejects valid program Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


ghci> runQ [d| foo (n+3) = 42 |]


Exotic pattern not (yet) handled by Template Haskell n+3

Change History (3)

comment:1 Changed 23 months ago by goldfire

n+k patterns are often seen as a misfeature and in fact were removed from Haskell 2010. See http://stackoverflow.com/questions/3748592/what-are-nk-patterns-and-why-are-they-banned-from-haskell-2010 for further discussion. I'm tempted to close as "wontfix" but want a concurring opinion before doing so.

comment:2 Changed 23 months ago by thoughtpolice

I'm also inclined to mark as WONTFIX as well - GHC defaults to H2010 anyway. But I also won't close just yet - I'd also like a few more voices in here. If nobody else speaks up, then yes, I think this is going to be a WONTFIX.

comment:3 Changed 23 months ago by simonpj

  • Resolution set to wontfix
  • Status changed from new to closed

I agree.


Note: See TracTickets for help on using tickets.