reifyDecl of a function in ghci fails

Johannes Hölzl johannes.hoelzl at gmx.de
Thu May 20 14:17:34 EDT 2004


Hi,

I get the following error:

-----------8<------------------------------------------------------------
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.2.1, for Haskell
98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.
 
Loading package base ... linking ... done.
Compiling Test             ( test.hs, interpreted )
Ok, modules loaded: Test.
*Test> do { x <- unQ (reifyDecl T) ; print $ pprDec x }
Loading package haskell98 ... linking ... done.
Loading package haskell-src ... linking ... done.
data Test:T = Test:T {Test:a :: GHC.Base:Int, Test:b :: GHC.Base:Int}
*Test> do { x <- unQ (reifyDecl f) ; print $ pprDec x }
ghc-6.2.1: panic! (the `impossible' happened, GHC version 6.2.1):
        dsReify reifyDecl Test.f {- v rYH -}
 
Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.
 

-----------8<------------------------------------------------------------

 Where test.hs is:
-----------8<------------------------------------------------------------
module Test where

import Language.Haskell.THSyntax

data T = T { a, b :: Int }

f x = x * x
-----------8<------------------------------------------------------------

With the Debian unstable (6.2.1-2) Version of GHC.

If this you need more informations please contact me.

	Johannes Hölzl





More information about the Glasgow-haskell-bugs mailing list