-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Universal string conversions -- -- Provide unified conversion functions between any two string-like -- types. @package string-convert @version 4.0.0.1 -- | 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. module Text.StringConvert -- | Class for string-like datastructures; used by the overloaded string -- extension (-XOverloadedStrings in GHC). class IsString a fromString :: IsString a => String -> a fromString :: IsString a => String -> a -- | Defines how a given type should be converted to String. If at all -- possible, the conversion should be loss-less, and if encodings are -- involved, UTF-8 should be the default. class ToString a toString :: ToString a => a -> String toString :: ToString a => a -> String s :: (ToString a, IsString b) => a -> b instance Text.StringConvert.ToString [GHC.Types.Char] instance Text.StringConvert.ToString Data.Text.Internal.Lazy.Text instance Text.StringConvert.ToString Data.Text.Internal.Text instance Text.StringConvert.ToString Data.ByteString.Internal.ByteString instance Text.StringConvert.ToString Data.ByteString.Lazy.Internal.ByteString