|
[ ghc-Bugs-860413 ] ghci TH symbol lookup fails if package not already load: msg#00035lang.haskell.glasgow.bugs
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 glasgow-haskell-bugs@xxxxxxxxxxx, 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: hGetBuf (or something related) broken for 6.2 with sockets, George Russell |
|---|---|
| Next by Date: | RE: hGetBuf (or something related) broken for 6.2 with sockets, Simon Marlow |
| Previous by Thread: | [ ghc-Bugs-860413 ] ghci TH symbol lookup fails if package not already loaded, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-710864 ] "entries" field is often 0, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |