Bugs item #1246483, was opened at 2005-07-28 05:09
Message generated for change (Comment added) made by wthaller
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1246483&group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Template Haskell
Group: 6.4
>Status: Open
>Resolution: None
Priority: 5
Submitted By: Wolfgang Thaller (wthaller)
Assigned to: Simon Peyton Jones (simonpj)
Summary: Template Haskell panic with class names

Initial Comment:
File Bug.hs:
module Bug where
foo = ''Show

Compile using:
ghc -c -fth Bug.hs

Result:
ghc-6.4.1: panic! (the `impossible' happened, GHC version 6.4.1):
        lookupDeprec GHCziShow.Show{tc 2h}

Please report it as a compiler bug to glasgow-haskell-
[EMAIL PROTECTED],
or http://sourceforge.net/projects/ghc/.

The panic does not happen if the type class or one of its method is 
actually used in the same module.

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

>Comment By: Wolfgang Thaller (wthaller)
Date: 2005-08-03 00:13

Message:
Logged In: YES 
user_id=566359

The fix causes more problems:

$ cat THClassName.hs 
module THClassName where

class Foo a

baz = ''Foo

$ ghc -c -fth THClassName.hs 
Bad interface file: THClassName.hi
    THClassName.hi: openBinaryFile: does not exist (No such file or 
directory)

It tries to load the .hi file that doesn't yet exist, which it probably 
shouldn't do.

Wolfgang

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

Comment By: Simon Peyton Jones (simonpj)
Date: 2005-07-28 15:53

Message:
Logged In: YES 
user_id=50165

Good point. I'd fixed this in the HEAD but not the 6.4 branch.

Simon

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

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

Reply via email to