logo       

[ ghc-Bugs-1246483 ] Template Haskell panic with class names: msg#00042

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-1246483 ] Template Haskell panic with class names

Bugs item #1246483, was opened at 2005-07-28 03:09
Message generated for change (Settings changed) made by simonpj
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: Closed
>Resolution: Fixed
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-
bugs@xxxxxxxxxxx,
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: Simon Peyton Jones (simonpj)
Date: 2005-08-09 17:00

Message:
Logged In: YES
user_id=50165

Urk. A typo. Fixed again!

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

Comment By: Wolfgang Thaller (wthaller)
Date: 2005-08-02 22: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 13: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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise