Template haskell bug 1
Mike Aizatsky
mm-aa at yandex.ru
Tue Jun 8 05:30:14 EDT 2004
Windows XP
D:\Tools\ghc>ghc-6.2.1\bin\ghc.exe -fglasgow-exts foo.hs
ghc.exe: panic! (the `impossible' happened, GHC version 6.2.1):
deSugar/DsMeta.hs:286: Non-exhaustive patterns in function repC
module Foo where
import Language.Haskell.THSyntax
class MyInterface a where
foo :: a -> Int
data AnyMyInterface = forall a. (MyInterface a) => AnyMyInterface a
test =
do{
d <- unQ(reifyDecl AnyMyInterface)
; print d
}
More information about the Glasgow-haskell-bugs
mailing list