1 {-# OPTIONS -fglasgow-exts #-}
3 -- !!! An instance decl with a context containing a free type variable
4 -- The interest here is that there's a "b" in the instance decl
5 -- context that isn't mentioned in the instance head.
7 module ShouldCompile where
9 class HasConverter a b | a -> b where
14 instance (HasConverter a b,Show b) => Show (Foo a) where
15 show (MkFoo value) = show (convert value)