syntax-0.1.0.0: Abstract syntax descriptions for parsing and pretty-printing.

Copyright(c) Paweł Nowak
LicenseMIT
MaintainerPaweł Nowak <pawel834@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Syntax.Char

Description

Common combinators that work with sequences of chars.

There are A LOT of combinators missing.

Synopsis

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.