uvmhs-0.0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

UVMHS.Lib.Parser.Core

Documentation

data ParserEnv Source #

Instances

Instances details
(Pretty 𝔹, Pretty Formats, Pretty (𝕊 𝐼 𝕊), Pretty 𝕊) => Pretty ParserEnv Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

pretty :: ParserEnv -> Doc Source #

MonadReader ParserEnv (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

askL :: (ParserEnv r') -> Parser t r' Source #

localL :: forall a r'. (ParserEnv r') -> r' -> Parser t a -> Parser t a Source #

newtype Parser t a Source #

Constructors

Parser 

Instances

Instances details
MonadFail (Parser t :: Type -> Type) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

abort :: forall (a :: k). Parser t a Source #

(⎅) :: forall (a :: k). Parser t a -> Parser t a -> Parser t a Source #

MonadReader ParserEnv (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

askL :: (ParserEnv r') -> Parser t r' Source #

localL :: forall a r'. (ParserEnv r') -> r' -> Parser t a -> Parser t a Source #

Bind (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

(≫=) :: Parser t a -> (a -> Parser t b) -> Parser t b Source #

Functor (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

map :: (a -> b) -> Parser t a -> Parser t b Source #

Monad (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Return (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

return :: a -> Parser t a Source #

MonadState (ParserState t) (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

get :: Parser t (ParserState t) Source #

put :: ParserState t -> Parser t () Source #

MonadWriter (ParserOut t) (Parser t) Source # 
Instance details

Defined in UVMHS.Lib.Parser.Core

Methods

tell :: ParserOut t -> Parser t () Source #

hijack :: Parser t a -> Parser t (ParserOut t a) Source #

pErr :: 𝕊 -> Parser t a -> Parser t a Source #

pRender :: Formats -> Parser t a -> Parser t a Source #

pFinal :: Parser t a -> Parser t a Source #

pShaped :: (t -> 𝑂 a) -> Parser t a Source #

pSatisfies :: (t -> 𝔹) -> Parser t t Source #

pToken :: Eq t => t -> Parser t t Source #

pMany :: Parser t a -> Parser t (𝐿 a) Source #

pManySepBy :: Parser t () -> Parser t a -> Parser t (𝐿 a) Source #

pOneOrMoreSepBy :: Parser t () -> Parser t a -> Parser t (𝐿 a) Source #

pWord :: forall s t. (Eq t, s 𝐼 t) => s -> Parser t s Source #