summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T6147.hs
blob: f57f5af4de0e5e34421bcbf5762c97368448d9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE GeneralizedNewtypeDeriving, TypeFamilies #-}
module T6147 where

data family T a
data instance T Int = T_Int Int

class C a where
  foo :: a -> T a

instance C Int where
  foo = T_Int

newtype Foo = Foo Int deriving(C)