Kawaii-Parser-0.0.0: A simple parsing library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Parser.Transf

Description

  • RST
  • RWT
  • WST
Synopsis

Documentation

type RST env = RWST env () Source #

The composition of reader and state transformers.

type RWT env res = RWST env res () Source #

The composition of reader and writer transformers.

type WST = RWST () Source #

The composition of writer and state transformers.

evalRST :: Functor f => RST env state f t -> env -> state -> f t Source #

Discards the end state.

evalWST :: Functor f => WST res state f t -> state -> f (t, res) Source #

Discards the end state.

execRST :: Functor f => RST env state f t -> env -> state -> f state Source #

Discards the output.

execRWT :: Functor f => RWT env res f t -> env -> f res Source #

Discards the output.

execWST :: Functor f => WST res state f t -> state -> f (state, res) Source #

Discards the output.

runRST :: Functor f => RST env state f t -> env -> state -> f (t, state) Source #

Runs the RS transformer.

runRWT :: Functor f => RWT env res f t -> env -> f (t, res) Source #

Runs the RW transformer.

runWST :: WST res state f t -> state -> f (t, state, res) Source #

Runs the WS transformer.