[Haskell-cafe] overloaded list literals?

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Mon Sep 6 07:27:38 EDT 2010

Am Montag, den 06.09.2010, 11:47 +0100 schrieb Neil Brown:
> I would have thought you have two obvious choices for the type-class 
> (things like folding are irrelevant to overloading list literals):
> class IsList f where
>    fromList :: [a] -> f a
> or:
> class IsList f where
>    cons :: a -> f a -> f a
>    empty :: f a

We should definitely get rid of these Is* class identifiers like
IsString and IsList. We also don’t have IsNum, IsMonad, etc.

Best wishes,

More information about the Haskell-Cafe mailing list