[Haskell-cafe] Type equality proof

Martijn van Steenbergen martijn at van.steenbergen.nl
Tue Mar 17 18:33:47 EDT 2009


Martijn van Steenbergen wrote:
>> class Eq2 f where
>>   eq2 :: f a b -> f a' b' -> Maybe (a :=: a', b :=: b')

Is that right, or does the following make more sense?

> class Eq2 f where
>   eq2 :: f a b -> f a' b' -> (Maybe (a :=: a'), Maybe (b :=: b'))

Thanks,

Martijn.



More information about the Haskell-Cafe mailing list