Copyright | (c) Paweł Nowak |
---|---|
License | MIT |
Maintainer | Paweł Nowak <pawel834@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Common combinators that work with sequences of chars.
There are A LOT of combinators missing.
- type SyntaxChar syn seq = (Syntax syn seq, Element seq ~ Char)
- spaces :: SyntaxChar syn seq => syn ()
- spaces_ :: SyntaxChar syn seq => syn ()
- spaces1 :: SyntaxChar syn seq => syn ()
- spaces1_ :: SyntaxChar syn seq => syn ()
- endOfLine :: SyntaxChar syn seq => syn ()
Documentation
type SyntaxChar syn seq = (Syntax syn seq, Element seq ~ Char) Source
Syntax constrainted to sequences of chars.
spaces :: SyntaxChar syn seq => syn () Source
Accepts zero or more spaces. Generates a single space.
spaces_ :: SyntaxChar syn seq => syn () Source
Accepts zero or more spaces. Generates no output.
spaces1 :: SyntaxChar syn seq => syn () Source
Accepts one or more spaces. Generates a single space.
spaces1_ :: SyntaxChar syn seq => syn () Source
Accepts one or more spaces. Generates no output.
endOfLine :: SyntaxChar syn seq => syn () Source
Accepts a single newline. Generates a newline.