HaTeX-3.0.0: LaTeX code writer.

Text.LaTeX.Base.Writer

Contents

Synopsis

LaTeXT writer

data LaTeXT m a Source

Newtype wrapper over the WriterT monad transformer, with LaTeX as writer state.

Instances

runLaTeXT :: LaTeXT m a -> m (a, LaTeX)Source

execLaTeXT :: Functor m => LaTeXT m a -> m LaTeXSource

This is the usual way to run the LaTeXT monad and obtain a LaTeX value.

extractLaTeX :: Monad m => LaTeXT m a -> LaTeXT m (a, LaTeX)Source

This function run a LaTeXT computation, lifting the result again in the monad.

textell :: Monad m => LaTeX -> LaTeXT m ()Source

With textell you can append LaTeX values to the state of the LaTeXT monad.