logo       

Template haskell and mutually recursive modules won't play nice: msg#00052

lang.haskell.glasgow.bugs

Subject: Template haskell and mutually recursive modules won't play nice

It looks like TH has issues with mutually recursive modules. Now I
could understand this if I was actually trying to call functions in
modules imported with {-# SOURCE #-} from TH, but I'm not. What is
going on here? I am getting sick of seeing "expectJust
upsweep_mod:old_linkable".

% ghc --make RecClass.hs -c
Chasing modules from: RecClass.hs
Compiling RecClass[boot] ( RecClass.hs-boot, RecClass.o-boot )
Skipping RecClassTHStuff ( ./RecClassTHStuff.hs, ./RecClassTHStuff.o )
Compiling RecClass ( RecClass.hs, RecClass.o )
Loading package base-1.0 ... linking ... done.
Loading package haskell98-1.0 ... linking ... done.
Loading package template-haskell-1.0 ... linking ... done.
ghc-6.4: panic! (the `impossible' happened, GHC version 6.4):
expectJust upsweep_mod:old_linkable

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

-- Sam

Attachment: RecClass.hs
Description: Text Data

Attachment: RecClass.hs-boot
Description: Binary data

Attachment: RecClassTHStuff.hs
Description: Text Data

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise