-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Transformations to several string-like types -- -- Transformations to several string-like types @package stringlike @version 0.0.0 module Data.String.Like -- | This type class can be used to transform any string like from lazy -- Text, there is no default implementation for String -- consciously, beacause we don't want to incite String using. class StringLike a fromLazyText :: StringLike a => Text -> a -- | This type class can be used to transform any type to StringLike -- type. Minimal complete definition: toText. class ToString a toText :: ToString a => a -> Text -- | Transform any ToString type to any StringLike type, it -- can be inferred or should be explicitly defined. string :: (ToString a, StringLike b) => a -> b -- | Transform any ToString type to strict Text text :: ToString a => a -> Text -- | Transform any ToString type to lazy Text ltext :: ToString a => a -> Text -- | Transform any ToString type to strict ByteString bs :: ToString a => a -> ByteString -- | Transform any ToString type to lazy ByteString lbs :: ToString a => a -> ByteString -- | The readFile function reads a file and returns the contents of -- the file as a string. The file is read lazily, on demand, as with -- getContents. readFile :: FilePath -> IO String -- | The computation writeFile file str function writes the -- string str, to the file file. writeFile :: FilePath -> String -> IO () -- | The computation appendFile file str function appends -- the string str, to the file file. -- -- Note that writeFile and appendFile write a literal -- string to a file. To write a value of any printable type, as with -- print, use the show function to convert the value to a -- string first. -- --
--   main = appendFile "squares" (show [(x,x*x) | x <- [0,0.1..2]])
--   
appendFile :: FilePath -> String -> IO () instance ToString ByteString instance ToString ByteString instance ToString Text instance ToString Text instance ToString String instance ToString Float instance ToString Double instance ToString Integer instance ToString Word64 instance ToString Word32 instance ToString Word16 instance ToString Word8 instance ToString Word instance ToString Int64 instance ToString Int32 instance ToString Int16 instance ToString Int8 instance ToString Int instance StringLike ByteString instance StringLike ByteString instance StringLike Text instance StringLike Text