#2739: GHC API crashes on template haskell splices
---------------------------------+------------------------------------------
Reporter: waern | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by simonpj):
* difficulty: => Unknown
Comment:
This stuff compiles fine using the compiler alone (see below) so it must
be something to do with the GHC API.
{{{
ghc -c TH.hs
bash-3.2$ ghc -c TH2.hs
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Loading package syb ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
Loading package packedstring-0.1.0.1 ... linking ... done.
Loading package containers-0.2.0.0 ... linking ... done.
Loading package pretty-1.0.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
bash-3.2$ rm *.o
rm: remove regular file `TH2.o'? y
rm: remove regular file `TH.o'? y
bash-3.2$ ghc --make TH2.hs
[1 of 2] Compiling TH ( TH.hs, TH.o )
[2 of 2] Compiling TH2 ( TH2.hs, TH2.o )
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Loading package syb ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
Loading package packedstring-0.1.0.1 ... linking ... done.
Loading package containers-0.2.0.0 ... linking ... done.
Loading package pretty-1.0.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
bash-3.2$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.1
bash-3.2$
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2739#comment:1>
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