#2817: Template Haskell conversion fails with "malformed type"
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10.2
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonpj):
Good bug. Here is a small test case:
{{{
module TH( x ) where
import Language.Haskell.TH
data T f = MkT (f Int)
x = $(return (SigE (VarE 'x) (AppT (ConT ''T) (AppT ArrowT (ConT
''Int)))))
}}}
The bug is in the conversion from TH syntax to `HsSyn` in `Convert.hs`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2817#comment:1>
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