Hi, All! In test code given below trying to reifyDecl function or constant declaration couse GHC to panic. Both CVS HEAD and 6.0. Am I mising something in reification of function declarations or is this reakky a bug in GHC? [dima@farside tmp]$ ghc --make -fglasgow-exts Main.hs Chasing modules from: Main.hs Compiling Main ( ./Main.hs, ./Main.o ) ghc-6.1: panic! (the `impossible' happened, GHC version 6.1): dsReify reifyDecl Main.l {- v rcA -} Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org, or http://sourceforge.net/projects/ghc/. [dima@farside tmp]$ ghc-6.0 --make -fglasgow-exts Main.hs Chasing modules from: Main.hs Compiling Main ( Main.hs, ./Main.o ) ghc-6.0: panic! (the `impossible' happened, GHC version 6.0): dsReify reifyDecl Main.l {- v rcz -} Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org, or http://sourceforge.net/projects/ghc/. \begin{code} import IO import Language.Haskell.THSyntax data T = A String | B l = A "kuku" f x = x k = reifyDecl l main :: IO () main = do x <- unQ k putStrLn (show x) \end{code} -- Best regards, Dmitry Malenko +----------------------------------------------------+ Registered Linux user #258004 ALT Linux Team http://www.altlinux.ru +----------------------------------------------------+ Marriage, n.: The evil aye.