[Haskell-cafe] Scope of type variables in associated types

Andres Loeh loeh at iai.uni-bonn.de
Mon May 21 08:10:03 EDT 2007


> class OneStep a
>     data OS a :: *
> instance OneStep (Cons v t)
>     data OS (Cons v t) = t
> 
> class TwoStep a
>     data TS a :: *
> instance (OneStep a, OneStep b) => TwoStep a

instance (OneStep a, OneStep (OS a)) => TwoStep a
?

Cheers,
  Andres


More information about the Haskell-Cafe mailing list