17 Jul
2007
17 Jul
'07
9:47 a.m.
On 7/17/07, Ryan Ingram <ryani.spam@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.h... regards, Bas van Dijk