-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Textual type class for data that represent text -- -- Exposes the Textual type class, for data that represent textual -- content -- -- Also, exposes a simple utility for conversion between instances, much -- like fromIntegral converts between Integral instances. @package textual @version 0.2.0.0 -- | Type class for textual data and simple (fromItegral like) conversion -- between them. -- -- The conversion utility here, although simple may not be the fastest -- one available, and aims at preserving the textual representation of -- data, not its binary structure. This, given the existence of codecs -- with ambiguous representation means that the following function may -- evaluate to False: -- -- mayBeFalse :: Textual a => a -> Bool mayBeFalse a = let b = -- fromText a in a == b module Data.Textual.Class -- | Type class for data structures that are logically text class IsString a => Textual a toString :: Textual a => a -> String -- | With UTF-8 encoding -- | With UTF-8 encoding -- | Converts between instances of Textual fromTextual :: (Textual a, Textual b) => a -> b instance Textual Text instance Textual ByteString instance Textual ByteString instance Textual String