#1788: panic with Template Haskell splicing/quoting
-------------------------+--------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------+--------------------------------------------------
Comment (by simonpj):
Indeed, this line in `FRef` looks wrong
{{{
-- Names to be used in code generation.
let [ref,refClass,val,s] = ['ref, ''Ref, mkName "val", mkName "s"]
}}}
I don't know what you were trying to do, but the `'ref` is binding to the
`ref` on the LHS of this (recursive!) definition. As schchaf says, the
HEAD (and the branch now, since Ian has merged the fix) gives a more
helpful message.
If that all seems right when you've checked it out, can you close the bug?
Thanks for taking the time to report it.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1788#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