
25 Apr
2013
25 Apr
'13
4:03 a.m.
Daniel Fischer
...
You've mentioned GADT a few times, but I can't find a case where it's different to regular datatypes. data Foo a = Eq a => Foo a seems to have the same effect as data Foo a where Foo a :: Eq a => a -> Foo a Both remember the Eq constraint if I pattern match on the constructor, and both ignore it otherwise.