Opened 5 years ago

Closed 5 years ago

#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 5 years ago by goldfire

n+k patterns are often seen as a misfeature and in fact were removed from Haskell 2010. See for further discussion. I'm tempted to close as "wontfix" but want a concurring opinion before doing so.

comment:2 Changed 5 years 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 5 years ago by simonpj

Resolution: wontfix
Status: newclosed

I agree.


Note: See TracTickets for help on using tickets.