Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides universal conversions between any two string-like types.
Out-of-the-box, Text
(both lazy and strict), ByteString
(both lazy and
strict), and String, are supported.
To hook custom string types into the conversion mechanism, implement both
IsString
and ToString
for your type.
Documentation
Class for string-like datastructures; used by the overloaded string extension (-XOverloadedStrings in GHC).
fromString :: String -> a #
fromString :: IsString a => String -> a #