blob: f6485ce51408fb9d85925cfbb0002d42ed30d04d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving #-}
-- Trac #2721
module T2721 where
class C a where
type T a
foo :: a -> T a
instance C Int where
type T Int = Int
foo = id
newtype N = N Int deriving(C)
|