-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Converting string-like types to Strings. -- -- This library provides the class: -- -- class ToString s where toString :: s -> String -- -- Instances for String and Char are provided. For other instances see -- the package: -- -- http://hackage.haskell.org/package/to-string-instances -- -- Also included is a general coercion function between string-like -- types: -- -- fromToString :: (IsString s2, ToString s1) => s1 -> s2 -- -- fromToString = fromString . toString @package to-string-class @version 0.1 module Data.String.ToString class ToString s toString :: (ToString s) => s -> String -- | General coercion between string-like types. fromToString :: (IsString s2, ToString s1) => s1 -> s2 instance ToString Char instance ToString String