Skip to content

Instantly share code, notes, and snippets.

@int-index
Created May 22, 2016 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save int-index/17dfb68fd97f724aef2849d0defae0d6 to your computer and use it in GitHub Desktop.
Save int-index/17dfb68fd97f724aef2849d0defae0d6 to your computer and use it in GitHub Desktop.
Pattern synonyms GHCi 8.0 regression
GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help
Prelude> :l M.hs
[1 of 1] Compiling Main ( M.hs, interpreted )
Ok, modules loaded: Main.
*Main>
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Prelude> :l M.hs
[1 of 1] Compiling Main ( M.hs, interpreted )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
kindPrimRep.go rep_a18a
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
{-# LANGUAGE PatternSynonyms #-}
data T = C
pattern P :: T
pattern P = C
pattern P' :: T
pattern P' = P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment