ghci TH symbol lookup fails if package not already loaded
in ghci -fglasgow-exts,
if I type:
> :t $( [| Language.Haskell.THSyntax.app |] )
ghc-6.0.1: panic! (the `impossible' happened, GHC
version 6.0.1):
Desugar: lookup:
LanguageziHaskellziTHSyntax.var {- v 03F -}
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
This is even if the module I had loaded imported
Language.Haskell.THSyntax
On the other hand doing
> $( [| Language.Haskell.THSyntax.app |] )
works find (it links in haskell-src). Then after that,
doing
> :t $( [| Language.Haskell.THSyntax.app |] )
works fine too.
The problem seems to be that the :t command doesn't
trigger on-demand package loading (at least in
combination with TH).
I got this problem on ghc 6.0.1 and a cvs version that
claimed it was 6.1 (built in mid spetember).
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |