[Haskell] Power series in a nutshell

Bas van Dijk v.dijk.bas at gmail.com
Tue Jul 17 05:47:08 EDT 2007


On 7/17/07, Ryan Ingram <ryani.spam at gmail.com> wrote:
> Automatic conversion to numeric types via fromInteger could be
> extended to other types; fromList and fromString could be applied
> automatically to convert other literals:
>
> class LiteralString a where fromString :: String -> a
> class LiteralList a b where fromList :: [a] -> b


GHC HEAD has support for overloaded String literals. See:

http://haskell.org/ghc/dist/current/docs/users_guide/other-type-extensions.html#overloaded-strings

regards,

Bas van Dijk


More information about the Haskell mailing list