citeproc-hs-0.1: A Citation Style Language implementation in Haskell

Portabilityunportable
Stabilityunstable
MaintainerAndrea Rossato <andrea.rossato@ing.unitn.it>

Text.CSL.Eval

Description

The CSL implementation

Synopsis

Documentation

data EvalState Source

Constructors

EvalState 

data Environment Source

Constructors

Env 

Fields

terms :: [TermMap]
 
macros :: [MacroMap]
 
options :: [Option]
 
name :: [Name]
 

Instances

getTerm :: Bool -> Form -> String -> State EvalState StringSource

If the first parameter is True the plural form will be retrieved.

getVar :: a -> (Value -> a) -> String -> State EvalState aSource

when' :: Monad m => m Bool -> m [a] -> m [a]Source

whenElse :: Monad m => m Bool -> m a -> m a -> m aSource

concatMapM :: (Monad m, Functor m, Eq b) => (a -> m [b]) -> [a] -> m [b]Source