[Haskell] PROPOSAL: class aliases
Wolfgang Jeltsch
wolfgang at jeltsch.net
Fri Oct 14 10:05:47 EDT 2005
Am Donnerstag, 13. Oktober 2005 12:22 schrieb John Meacham:
> [...]
> although perhaps
>
> > class alias FooBar a = (Foo a, Bar a) where ...
>
> since the new name introduced usually appears to the left of an equals
> sign.
Yes, exactly.
> This also solves the problems of where to put new supertype constraints.
>
> > class alias FooBar a = Show a => (Foo a, Bar a) where ...
>
> should do nicely.
What is the difference between this and the following:
class alias FooBar a = (Show a, Foo a, Bar a) where ...
> [...]
Best wishes,
Wolfgang
More information about the Haskell
mailing list