Cabal-syntax-3.7.0.0: A library for working with .cabal files
LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Fields.LexerMonad

Description

 
Synopsis

Documentation

data LexState Source #

Constructors

LexState 

Fields

data LexResult a Source #

Constructors

LexResult !LexState a 

newtype Lex a Source #

Constructors

Lex 

Fields

Instances

Instances details
Applicative Lex Source # 
Instance details

Defined in Distribution.Fields.LexerMonad

Methods

pure :: a -> Lex a Source #

(<*>) :: Lex (a -> b) -> Lex a -> Lex b Source #

liftA2 :: (a -> b -> c) -> Lex a -> Lex b -> Lex c Source #

(*>) :: Lex a -> Lex b -> Lex b Source #

(<*) :: Lex a -> Lex b -> Lex a Source #

Functor Lex Source # 
Instance details

Defined in Distribution.Fields.LexerMonad

Methods

fmap :: (a -> b) -> Lex a -> Lex b Source #

(<$) :: a -> Lex b -> Lex a Source #

Monad Lex Source # 
Instance details

Defined in Distribution.Fields.LexerMonad

Methods

(>>=) :: Lex a -> (a -> Lex b) -> Lex b Source #

(>>) :: Lex a -> Lex b -> Lex b Source #

return :: a -> Lex a Source #

execLexer :: Lex a -> InputStream -> ([LexWarning], a) Source #

Execute the given lexer on the supplied input stream.

data LexWarning Source #

Instances

Instances details
Show LexWarning Source # 
Instance details

Defined in Distribution.Fields.LexerMonad

addWarning :: LexWarningType -> Lex () Source #

Add warning at the current position