Skip to content
Cinch
← Text.Parser API referenceSAMPLE LISTING
cinch-text / 0.3.0Text/Parser.cinch

Declaration source.

This sample listing contains the declarations shown in the API reference. Package implementations will appear here when real package data is connected.

module Text.Parser where
3-- A parser that either produces a value or reports a position and expectation.
4opaque Parser a
5
6-- A source position and the expectations that were not met.
7data ParseError
8
9-- Run a parser and require it to consume the full input.
10parse :: forall a. Parser a -> String -> Result ParseError a
12-- Parse a signed decimal integer.
13integer :: Parser Int