-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | The parser and render to parsec and render the string. -- -- A frame work wih parser and render to reformat the key infors. @package reformat @version 0.1.0.0 -- | Portablility: unknown module Text.Reformat -- | The class of reformat to parser and reformat the string class Reformat t where { type family Str t; } -- | parser to parse the sting parser :: (Reformat t, Monad m) => ParsecT (Str t) () m t -- | look at value via name (in string) renderPair :: Reformat t => t -> (Str t) -> Value -- | to hold the values data Value -- | integer I :: Integer -> Value -- | double R :: Double -> Value -- | string S :: String -> Value N :: Value -- | render the string with given format and item renderFromReformat :: (Monad m, Reformat t, Str t ~ String) => t -> String -> m (Either ParseError String) -- | Parse the string with the parser. The parser is provided with instance -- of Reformat. parsingToReformat :: (Stream (Str t) m Char, Reformat t) => SourceName -> (Str t) -> m (Either ParseError t)