#1012: ghc panic with mutually recursive modules and template haskell
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: merge | Status: reopened
Priority: normal | Milestone: _|_
Component: Compiler | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: TH_import_loop | Architecture: Multiple
Os: Multiple |
----------------------------+-----------------------------------------------
Comment (by fons):
curiously enough compiling the following module doesn't cuase any
problems.
Main.hs
{{{
module Main where
import ModuleB
main = return ()
}}}
{{{
$ ghc --make Main.hs
[1 of 5] Compiling ModuleA[boot] ( ModuleA.hs-boot, ModuleA.o-boot )
[2 of 5] Compiling ModuleC ( ModuleC.hs, ModuleC.o )
[3 of 5] Compiling ModuleA ( ModuleA.hs, ModuleA.o )
[4 of 5] Compiling ModuleB ( ModuleB.hs, ModuleB.o )
Loading package base ... linking ... done.
Loading package array-0.1.0.0 ... linking ... done.
Loading package packedstring-0.1.0.0 ... linking ... done.
Loading package containers-0.1.0.0 ... linking ... done.
Loading package pretty-1.0.0.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
[5 of 5] Compiling Main ( Main.hs, Main.o )
Linking Main ...
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1012#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs