On 27.02.2013 17:35, Dmitry Kulagin wrote:You need to add pragma {-# LANGUAGE OverlappingInstances #-}
Hi Aleksey,
Unfortunately, your solution does not work for me (ghc 7.6.2). I reduced
the problem to:
-- | Type class for type equality.
class TypeEq (a :: á) (b :: á) (eq :: Bool) | a b -> eq
instance TypeEq a a True
-- instance TypeEq a b False
instance eq ~ False => TypeEq a b eq
to the file where instances defined. Without it GHC will complain
about overlap and unlike other extensions won't recommend pragma