[GHC] #9272: Template Haskell doesn't support n+k patterns

#9272: Template Haskell doesn't support n+k patterns ----------------------------+---------------------------------------------- Reporter: br1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template | Version: 7.8.2 Haskell | Operating System: Unknown/Multiple Keywords: | Type of failure: GHC rejects valid program Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | ----------------------------+---------------------------------------------- ghci> runQ [d| foo (n+3) = 42 |] <interactive>:1:6: Exotic pattern not (yet) handled by Template Haskell n+3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9272 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9272: Template Haskell doesn't support n+k patterns ----------------------------------------------+---------------------------- Reporter: br1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Comment (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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9272#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9272: Template Haskell doesn't support n+k patterns ----------------------------------------------+---------------------------- Reporter: br1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Comment (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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9272#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9272: Template Haskell doesn't support n+k patterns ----------------------------------------------+---------------------------- Reporter: br1 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.2 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Changes (by simonpj): * status: new => closed * resolution: => wontfix Comment: I agree. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9272#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC