Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data LiteralParsers = LiteralParsers {}
- data LiteralParsersM
- mkLiteralParsers :: (LiteralParsersM -> LiteralParsersM) -> LiteralParsers
- overrideStringP :: Parser SExpr -> LiteralParsersM -> LiteralParsersM
- overrideNumberP :: Parser SExpr -> LiteralParsersM -> LiteralParsersM
- overrideBoolP :: Parser SExpr -> LiteralParsersM -> LiteralParsersM
- parseStringDef :: Parser SExpr
- parseNumberDef :: Parser SExpr
- parseBoolDef :: Parser SExpr
Documentation
data LiteralParsers Source #
Fully defined parser configuration
Instances
Default LiteralParsers Source # | |
Defined in Text.SExpression.Default def :: LiteralParsers # |
data LiteralParsersM Source #
Partial parser configuration
Instances
Semigroup LiteralParsersM Source # | |
Defined in Text.SExpression.Default (<>) :: LiteralParsersM -> LiteralParsersM -> LiteralParsersM # sconcat :: NonEmpty LiteralParsersM -> LiteralParsersM # stimes :: Integral b => b -> LiteralParsersM -> LiteralParsersM # | |
Default LiteralParsersM Source # | |
Defined in Text.SExpression.Default def :: LiteralParsersM # |
:: (LiteralParsersM -> LiteralParsersM) | Cumulative override function |
-> LiteralParsers |
Smart constructor for parser configuration that allows overriding the default literal parsers
:: Parser SExpr | String parser |
-> LiteralParsersM -> LiteralParsersM |
String parser override function
:: Parser SExpr | Number parser |
-> LiteralParsersM -> LiteralParsersM |
Number parser override function
:: Parser SExpr | Bool parser |
-> LiteralParsersM -> LiteralParsersM |
Boolean parser override function
parseBoolDef :: Parser SExpr Source #
Default parser for s-expression boolean literals