#1755: Template Haskell quoting bug
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Template Haskell | Version: 6.6.1
Severity: minor | Keywords:
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Multiple
-------------------------------+--------------------------------------------
Quoting local variable in a certain situation make GHC panic.
This OK:
{{{
foo = "foo"
expFoo :: Q Exp
expFoo = return (VarE 'foo)
}}}
But this will panic when you use $(expFoo) in another module:
{{{
expFoo :: Q Exp
expFoo = let foo = "foo" in return (VarE 'foo)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1755>
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