#3074: Template Haskell does not support type families.
--------------------------------------------+-------------------------------
Reporter: Serguey Zefirov | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: minor
Keywords: template haskell, type families | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
--------------------------------------------+-------------------------------
{{{
{-# LANGUAGE TemplateHaskell, TypeFamilies #-}
import Language.Haskell.TH
type family A a
$((\x -> x >>= (runIO . (print . ppr)) >> return []) $
[d|type instance A (Maybe Int) = Int|])
}}}
GHCi load result:
{{{
[1 of 1] Compiling Main ( a.hs, interpreted )
type A = GHC.Types.Int
Ok, modules loaded: Main.
}}}
TySynD has list of Names as an argument list whereas type families header
should have a list of Types.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3074>
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