Cabal-2.4.1.0: A framework for packaging Haskell software

LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Parsec.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
Monad Lex Source # 
Instance details

Defined in Distribution.Parsec.LexerMonad

Methods

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

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

return :: a -> Lex a #

fail :: String -> Lex a #

Functor Lex Source # 
Instance details

Defined in Distribution.Parsec.LexerMonad

Methods

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

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

Applicative Lex Source # 
Instance details

Defined in Distribution.Parsec.LexerMonad

Methods

pure :: a -> Lex a #

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

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

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

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

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

Execute the given lexer on the supplied input stream.

addWarning :: LexWarningType -> Lex () Source #

Add warning at the current position