#2334: panic using type families and type classes
---------------------------+------------------------------------------------
Reporter: pgavin | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.9
Severity: normal | Resolution:
Keywords: type families | Difficulty: Unknown
Testcase: | Architecture: x86
Os: MacOS X |
---------------------------+------------------------------------------------
Comment (by simonmar):
The following smaller example elicits the "Data.List.head: empty list"
panic:
{{{
{-# LANGUAGE TypeFamilies,EmptyDataDecls,MultiParamTypeClasses #-}
module Test where
data family F r
newtype instance F () = F deriving Eq
}}}
and it seems to happen during Renamer/Typechecker. Removing "deriving
(Eq)" makes the error go away.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2334#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