Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Andrea Rossato <andrea.rossato@unitn.it> |
Safe Haskell | Safe-Infered |
Text.CSL.Eval.Common
Description
The CSL implementation
- data EvalState = EvalState {}
- data Environment = Env {}
- 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
Constructors
EvalState | |
Constructors
EvalSorting Cite | |
EvalCite Cite | |
EvalBiblio String |
getTerm :: Bool -> Form -> String -> State EvalState StringSource
If the first parameter is True
the plural form will be retrieved.
getStringValue :: Value -> StringSource
getOptionVal :: String -> [Option] -> StringSource
isOptionSet :: String -> [Option] -> BoolSource
withRefMap :: (ReferenceMap -> a) -> State EvalState aSource
formatVariable :: String -> StringSource
concatMapM :: (Monad m, Functor m, Eq b) => (a -> m [b]) -> [a] -> m [b]Source