[GHC] #8582: Record syntax for pattern synonyms
GHC
ghc-devs at haskell.org
Wed Sep 16 15:21:29 UTC 2015
#8582: Record syntax for pattern synonyms
-------------------------------------+-------------------------------------
Reporter: cactus | Owner: mpickering
Type: feature request | Status: new
Priority: high | Milestone: 8.0.1
Component: Compiler | Version:
Resolution: | Keywords:
| PatternSynonyms
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: 5144 | Blocking:
Related Tickets: | Differential Revisions: Phab:D1152
-------------------------------------+-------------------------------------
Comment (by goldfire):
Replying to [comment:12 mpickering]:
> {{{#!hs
>
> pattern MkP :: Int -> Int -> Q
> pattern MkP{x, y} = MkQ x1 y1
>
> data Q = MkQ { x1 :: Int, y1 :: Int }
> }}}
I imagine you meant
{{{#!hs
pattern MkP{x, y} = MkQ x y
}}}
Otherwise, I agree with what you've said above.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8582#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list