| Copyright | (C) 2018 Johann Lee <me@qinka.pro> |
|---|---|
| License | GPL3 |
| Maintainer | me@qinka.pro |
| Stability | experimental |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Text.Reformat
Description
Portablility: unknown
Documentation
class Reformat t where Source #
The class of reformat to parser and reformat the string
Minimal complete definition
to hold the values
Arguments
| :: (Monad m, Reformat t, Str t ~ String) | |
| => t | item |
| -> String | format string |
| -> m (Either ParseError String) |
render the string with given format and item
Arguments
| :: (Stream (Str t) m Char, Reformat t) | |
| => SourceName | name of input source |
| -> Str t | string of input |
| -> m (Either ParseError t) | output |
Parse the string with the parser. The parser is provided with instance of Reformat.