conditional-restriction-parser-0.1.0.5: Parser and interpreter of OpenStreetMap conditional restriction values
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConditionalRestriction.Internal.Parse.ParserLib

Description

Parsing library. Implements a simple Parser type, and some basic parsers, e.g. ws, dbl.

Synopsis

Documentation

newtype Parser i a Source #

A generic parser. Takes an input type i and returns an output type a.

Constructors

Parser 

Fields

Instances

Instances details
Alternative (Parser i) Source # 
Instance details

Defined in ConditionalRestriction.Internal.Parse.ParserLib

Methods

empty :: Parser i a #

(<|>) :: Parser i a -> Parser i a -> Parser i a #

some :: Parser i a -> Parser i [a] #

many :: Parser i a -> Parser i [a] #

Applicative (Parser i) Source # 
Instance details

Defined in ConditionalRestriction.Internal.Parse.ParserLib

Methods

pure :: a -> Parser i a #

(<*>) :: Parser i (a -> b) -> Parser i a -> Parser i b #

liftA2 :: (a -> b -> c) -> Parser i a -> Parser i b -> Parser i c #

(*>) :: Parser i a -> Parser i b -> Parser i b #

(<*) :: Parser i a -> Parser i b -> Parser i a #

Functor (Parser i) Source # 
Instance details

Defined in ConditionalRestriction.Internal.Parse.ParserLib

Methods

fmap :: (a -> b) -> Parser i a -> Parser i b #

(<$) :: a -> Parser i b -> Parser i a #

Monad (Parser i) Source # 
Instance details

Defined in ConditionalRestriction.Internal.Parse.ParserLib

Methods

(>>=) :: Parser i a -> (a -> Parser i b) -> Parser i b #

(>>) :: Parser i a -> Parser i b -> Parser i b #

return :: a -> Parser i a #