Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Symparsec.Parser.Literal
Synopsis
- type Literal str = 'PParser LiteralChSym LiteralEndSym str
- sLiteral :: SSymbol str -> SParser SSymbol SUnit (Literal str)
- type LiteralCh ch str = LiteralCh' ch (UnconsSymbol str)
- type family LiteralCh' ch str where ...
- type EWrongChar chNext ch = EBase "Literal" (((Text "expected " :<>: Text (ShowChar chNext)) :<>: Text ", got ") :<>: Text (ShowChar ch))
- eWrongChar :: SChar chNext -> SChar ch -> SE (EWrongChar chNext ch)
- data LiteralChSym f
- data LiteralChSym1 ch s
- sLiteralChSym :: SParserChSym SSymbol SUnit LiteralChSym
- type family LiteralEnd str where ...
- type EStillParsing str = EBase "Literal" (Text "still parsing literal: " :<>: Text str)
- eStillParsing :: SSymbol str -> SE (EStillParsing str)
- data LiteralEndSym s
- sLiteralEndSym :: SParserEndSym SSymbol SUnit LiteralEndSym
Documentation
type Literal str = 'PParser LiteralChSym LiteralEndSym str Source #
Parse the given Symbol
.
type LiteralCh ch str = LiteralCh' ch (UnconsSymbol str) Source #
type family LiteralCh' ch str where ... Source #
Equations
LiteralCh' ch (Just '(ch, str)) = Cont str | |
LiteralCh' ch (Just '(chNext, str)) = Err (EWrongChar chNext ch) | |
LiteralCh' ch Nothing = Done '() |
type EWrongChar chNext ch = EBase "Literal" (((Text "expected " :<>: Text (ShowChar chNext)) :<>: Text ", got ") :<>: Text (ShowChar ch)) Source #
eWrongChar :: SChar chNext -> SChar ch -> SE (EWrongChar chNext ch) Source #
data LiteralChSym f Source #
data LiteralChSym1 ch s Source #
type family LiteralEnd str where ... Source #
Equations
LiteralEnd "" = Right '() | |
LiteralEnd str = Left (EStillParsing str) |
eStillParsing :: SSymbol str -> SE (EStillParsing str) Source #