[GHC] #1755: Template Haskell quoting bug
GHC
trac at haskell.org
Thu Oct 4 22:48:07 EDT 2007
#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
More information about the Glasgow-haskell-bugs
mailing list