#4181: Template Haskell + -fdicts-strict fails
---------------------------------+------------------------------------------
Reporter: LouisWasserman | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.3 | Keywords: template haskell strict
dictionary
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: Compile-time crash
---------------------------------+------------------------------------------
Comment(by LouisWasserman):
Interesting. To actually get the error at compile time, you must compile
{{{
module Bar where
import Foo
import Language.Haskell.TH
bar :: String
bar = $(do x <- foo
return (LitE (StringL (pprint foo))))
}}}
plus one of the Foo modules above with -fstrict-dicts -XTemplateHaskell
-O. (It doesn't seem to fail with -O0, I'm working on seeing what happens
differently between the two.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4181#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs