|
reifyDecl of a function in ghci fails: msg#00065lang.haskell.glasgow.bugs
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@xxxxxxxxxxx, 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | TH bug: Lift (a -> b) where, Saswat Anand |
|---|---|
| Next by Date: | RE: Main thread garbage collected, Simon Marlow |
| Previous by Thread: | TH bug: Lift (a -> b) where, Saswat Anand |
| Next by Thread: | [ ghc-Bugs-959442 ] Problem with where clause and Template Haskell, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |