[Haskell] same type multiply implementing a class

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Thu Mar 15 09:11:01 EDT 2007


Am Donnerstag, 15. März 2007 03:23 schrieb Daniel Mahler:
> Is there any way for the same type to implement a typeclass multiple ways.

You can wrap the type using newtype, thus creating a new type which can 
implement type class methods differently.

> […]

Best wishes,
Wolfgang


More information about the Haskell mailing list