citeproc-hs-0.3.2: A Citation Style Language implementation in HaskellSource codeContentsIndex
Text.CSL.Eval.Common
Portabilityunportable
Stabilityunstable
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Description
The CSL implementation
Synopsis
data EvalState = EvalState {
ref :: ReferenceMap
env :: Environment
debug :: [String]
mode :: EvalMode
disamb :: Bool
consume :: Bool
consumed :: [String]
edtrans :: Bool
etal :: [[Output]]
contNum :: [Agent]
lastName :: [Output]
}
data Environment = Env {
cite :: Cite
terms :: [TermMap]
macros :: [MacroMap]
dates :: [Element]
options :: [Option]
names :: [Element]
}
data EvalMode
= EvalSorting Cite
| EvalCite Cite
| EvalBiblio String
getCite :: EvalMode -> Cite
isSorting :: EvalMode -> Bool
getTerm :: Bool -> Form -> String -> State EvalState String
getStringVar :: String -> State EvalState String
getDateVar :: String -> State EvalState [RefDate]
getLocVar :: State EvalState (String, String)
getVar :: a -> (Value -> a) -> String -> State EvalState a
getAgents :: String -> State EvalState [Agent]
getAgents' :: String -> State EvalState [Agent]
getStringValue :: Value -> String
getOptionVal :: String -> [Option] -> String
isOptionSet :: String -> [Option] -> Bool
isVarSet :: String -> State EvalState Bool
withRefMap :: (ReferenceMap -> a) -> State EvalState a
formatVariable :: String -> String
consumeVariable :: String -> State EvalState ()
consuming :: State EvalState a -> State EvalState a
when' :: Monad m => m Bool -> m [a] -> m [a]
whenElse :: Monad m => m Bool -> m a -> m a -> m a
concatMapM :: (Monad m, Functor m, Eq b) => (a -> m [b]) -> [a] -> m [b]
trace :: String -> State EvalState ()
Documentation
data EvalState Source
Constructors
EvalState
ref :: ReferenceMap
env :: Environment
debug :: [String]
mode :: EvalMode
disamb :: Bool
consume :: Bool
consumed :: [String]
edtrans :: Bool
etal :: [[Output]]
contNum :: [Agent]
lastName :: [Output]
show/hide Instances
data Environment Source
Constructors
Env
cite :: Cite
terms :: [TermMap]
macros :: [MacroMap]
dates :: [Element]
options :: [Option]
names :: [Element]
show/hide Instances
data EvalMode Source
Constructors
EvalSorting Cite
EvalCite Cite
EvalBiblio String
show/hide Instances
getCite :: EvalMode -> CiteSource
isSorting :: EvalMode -> BoolSource
getTerm :: Bool -> Form -> String -> State EvalState StringSource
If the first parameter is True the plural form will be retrieved.
getStringVar :: String -> State EvalState StringSource
getDateVar :: String -> State EvalState [RefDate]Source
getLocVar :: State EvalState (String, String)Source
getVar :: a -> (Value -> a) -> String -> State EvalState aSource
getAgents :: String -> State EvalState [Agent]Source
getAgents' :: String -> State EvalState [Agent]Source
getStringValue :: Value -> StringSource
getOptionVal :: String -> [Option] -> StringSource
isOptionSet :: String -> [Option] -> BoolSource
isVarSet :: String -> State EvalState BoolSource
withRefMap :: (ReferenceMap -> a) -> State EvalState aSource
formatVariable :: String -> StringSource
consumeVariable :: String -> State EvalState ()Source
consuming :: State EvalState a -> 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
trace :: String -> State EvalState ()Source
Produced by Haddock version 2.6.1