Bugs item #860413, was opened at 2003-12-15 15:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=860413&group_id=8032

Category: Compiler
Group: 6.0.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Duncan Coutts (duncan_coutts)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghci TH symbol lookup fails if package not already loaded

Initial Comment:
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
[EMAIL PROTECTED],
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).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=860413&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to