logo       

[ ghc-Bugs-959442 ] Problem with where clause and Template Haskell: msg#00076

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-959442 ] Problem with where clause and Template Haskell

Bugs item #959442, was opened at 2004-05-24 13:36
Message generated for change (Comment added) made by simonpj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=959442&group_id=8032

Category: Compiler
Group: 6.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Stefan Heimann (stefanheimann)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with where clause and Template Haskell

Initial Comment:
When compiling the two files attached, the following
happens:


$ ./compile.sh
Chasing modules from: TemplateTryOut.hs
Skipping Templates ( ./Templates.hs,
./Templates.o )
Compiling Main ( TemplateTryOut.hs,
TemplateTryOut.o )
Loading package base ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package haskell-src ... linking ... done.
compiling template
ghc-6.2.1: panic! (the `impossible' happened, GHC
version 6.2.1):
nameModule readTread_d1z7

Please report it as a compiler bug to
glasgow-haskell-bugs@xxxxxxxxxxx,
or http://sourceforge.net/projects/ghc/.


I think it's a problem with template haskell. The first
call of 'template' in TemplateTryOut.hs (line 10)
succeeds, as you can see from the message 'compiling
template'. The second call in line 17 fails. The only
difference between these 2 calls is the where clause.

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

>Comment By: Simon Peyton Jones (simonpj)
Date: 2004-05-25 09:21

Message:
Logged In: YES
user_id=50165

This bug is fixed in the HEAD and in the up-coming 6.2.2

Do test it again when you get 6.2.2!

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=959442&group_id=8032


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

News | FAQ | advertise