On 7/17/07, Ryan Ingram <[EMAIL PROTECTED]> 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
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to