Bugs item #860413, was opened at 2003-12-15 15:50
Message generated for change (Comment added) made by simonpj
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: Closed
>Resolution: Fixed
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).
----------------------------------------------------------------------
>Comment By: Simon Peyton Jones (simonpj)
Date: 2003-12-19 12:12
Message:
Logged In: YES
user_id=50165
This is indeed a bug in 6.2.
But it works ok in the HEAD; and I'm not going to fix the
branch.
Simon
----------------------------------------------------------------------
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