-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Universal string conversions -- -- Provides functions and typeclasses for transparent conversions between -- various string types. @package string-convert @version 3.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 FromString and ToString for your type. module Text.StringConvert class FromString a fromString :: FromString a => String -> a fromString :: FromString 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, FromString b) => a -> b instance Text.StringConvert.FromString [GHC.Types.Char] instance Text.StringConvert.FromString Data.Text.Internal.Text instance Text.StringConvert.FromString Data.Text.Internal.Lazy.Text instance Text.StringConvert.FromString Data.ByteString.Internal.ByteString instance Text.StringConvert.FromString Data.ByteString.Lazy.Internal.ByteString 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