pandoc-citeproc-0.17.0.1: 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 

Fields

Instances

Instances details
Show EvalState Source # 
Instance details

Defined in Text.CSL.Eval.Common

Methods

showsPrec :: Int -> EvalState -> ShowS

show :: EvalState -> String

showList :: [EvalState] -> ShowS

data Environment Source #

Constructors

Env 

Instances

Instances details
Show Environment Source # 
Instance details

Defined in Text.CSL.Eval.Common

Methods

showsPrec :: Int -> Environment -> ShowS

show :: Environment -> String

showList :: [Environment] -> ShowS

data EvalMode Source #

Instances

Instances details
Eq EvalMode Source # 
Instance details

Defined in Text.CSL.Eval.Common

Methods

(==) :: EvalMode -> EvalMode -> Bool

(/=) :: EvalMode -> EvalMode -> Bool

Show EvalMode Source # 
Instance details

Defined in Text.CSL.Eval.Common

Methods

showsPrec :: Int -> EvalMode -> ShowS

show :: EvalMode -> String

showList :: [EvalMode] -> ShowS

getAbbreviation :: Abbreviations -> Text -> Text -> Text Source #

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

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

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

getStringVar :: Text -> State EvalState Text Source #

getDateVar :: Text -> State EvalState [RefDate] Source #

getLocVar :: State EvalState (Text, Text) Source #

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

getAgents :: Text -> State EvalState [Agent] Source #

getAgents' :: Text -> State EvalState [Agent] Source #

getOptionVal :: Text -> [Option] -> Text Source #

getOptionValWithDefault :: Text -> Text -> [Option] -> Text Source #

isOptionSet :: Text -> [Option] -> Bool Source #

isTitleVar :: Text -> Bool Source #

isTitleShortVar :: Text -> Bool Source #

getTitleShort :: Text -> State EvalState Text Source #

isVarSet :: Text -> State EvalState Bool Source #

formatVariable :: Text -> Text Source #

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

consumeVariable :: Text -> State EvalState () Source #

consuming :: State EvalState a -> State EvalState a Source #

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 #