Re: [GHC] #12017: GHC panics on pattern synonym ‘kindPrimRep’
GHC
ghc-devs at haskell.org
Thu May 5 19:49:43 UTC 2016
#12017: GHC panics on pattern synonym ‘kindPrimRep’
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
| PatternSynonyms
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Iceland_jack):
Simplied
{{{#!hs
{-# Language PatternSynonyms, GADTs #-}
data Exp a where
Constant :: a -> Exp a
pattern MkBool :: Bool -> Exp Bool
pattern MkBool bool = Constant bool
pattern Tru :: Exp Bool
pattern Tru = MkBool True
}}}
this breaks my stuff, but it's easy to work around.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12017#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list