pandoc-citeproc-0.14.4: Supports using pandoc with citeproc

Copyright(c) Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Text.CSL.Eval.Common

Description

The CSL implementation

Synopsis

Documentation

data EvalState Source #

Constructors

EvalState 
Instances
Show EvalState Source # 
Instance details

Defined in Text.CSL.Eval.Common

data Environment Source #

Constructors

Env 
Instances
Show Environment Source # 
Instance details

Defined in Text.CSL.Eval.Common

data EvalMode Source #

Instances
Eq EvalMode Source # 
Instance details

Defined in Text.CSL.Eval.Common

Show EvalMode Source # 
Instance details

Defined in Text.CSL.Eval.Common

getAbbreviation :: Abbreviations -> String -> String -> String Source #

With the variable name and the variable value search for an abbreviation or return an empty string.

getTerm :: Bool -> Form -> String -> State EvalState String Source #

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

getVar :: a -> (Value -> a) -> String -> State EvalState a Source #

formatVariable :: String -> String Source #

Convert variable to lower case, translating underscores ("_") to dashes ("-")

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

whenElse :: Monad m => m Bool -> m a -> m a -> m a Source #

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