forall and class contexts

Hal Daume III hdaume@ISI.EDU
Wed, 16 Oct 2002 07:16:36 -0700 (PDT)


> >  class (Eq (forall a. t a), Monad t) => C t
> 
> more logically,
> 
>   class (forall a. Eq (t a), Monad t) => C t

and more usefully,

  class (forall a . Eq a => Eq (t a), Monad t) => C t

 - Hal