Ticket #2856 (closed merge: fixed)
GeneralizedNewtypeDeriving doesn't work with data families
Description
Observe:
{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving #-}
module Bug9 where
class C a where
data D a
instance C Bool where
newtype D Bool = DInt Int deriving (Eq, Show, Num)
The deriving of Num fails, whereas the corresponding standalone newtype works fine.
Change History
Note: See
TracTickets for help on using
tickets.
