Proposal: Add Data.String, containing IsString(fromString), to base

Lennart Augustsson lennart at augustsson.net
Tue Jan 30 17:34:49 EST 2007


The Num class does not contain toInteger.
The IsString class is only intended for string literals,
and the fromString is what you need.

	-- Lennart

On Jan 30, 2007, at 22:18 , Neil Mitchell wrote:

> Hi
>
>> +class IsString a where
>> +    fromString :: String -> a
>
> Any reason there isn't a corresponding toString? Seems like the
> logical counterpart.
>
> Thanks
>
> Neil
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries



More information about the Libraries mailing list