blob: 0d0e23a4197d01318abf9f64edba373bb0e01c66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# LANGUAGE TypeFamilies #-}
module T4200 where
class C a where
type In a :: *
op :: In a -> Int
-- Should be ok; no -XUndecidableInstances required
instance (In c ~ Int) => C [c] where
type In [c] = In c
op x = 3
|