Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Process citations using the formatting instructions encoded in a CSL stylesheet. The library targets version 1.0.1 of the CSL spec: https://docs.citationstyles.org/en/stable/specification.html
Synopsis
- module Citeproc.Types
- module Citeproc.Style
- module Citeproc.Locale
- citeproc :: CiteprocOutput a => CiteprocOptions -> Style a -> Maybe Lang -> [Reference a] -> [Citation a] -> Result a
- data Result a = Result {
- resultCitations :: [a]
- resultBibliography :: [(Text, a)]
- resultWarnings :: [Text]
Documentation
module Citeproc.Types
module Citeproc.Style
module Citeproc.Locale
:: CiteprocOutput a | |
=> CiteprocOptions | Rendering options |
-> Style a | Parsed CSL style |
-> Maybe Lang | Overrides default locale for style |
-> [Reference a] | List of references (bibliographic data) |
-> [Citation a] | List of citations to process |
-> Result a |
Process a list of Citation
s, producing formatted citations
and a bibliography according to the rules of a CSL Style
.
If a Lang
is specified, override the style's default locale.
To obtain a Style
from an XML stylesheet, use
parseStyle
from Citeproc.Style.
Result of citation processing.
Result | |
|
Instances
Foldable Result Source # | |
Defined in Citeproc.Types fold :: Monoid m => Result m -> m # foldMap :: Monoid m => (a -> m) -> Result a -> m # foldMap' :: Monoid m => (a -> m) -> Result a -> m # foldr :: (a -> b -> b) -> b -> Result a -> b # foldr' :: (a -> b -> b) -> b -> Result a -> b # foldl :: (b -> a -> b) -> b -> Result a -> b # foldl' :: (b -> a -> b) -> b -> Result a -> b # foldr1 :: (a -> a -> a) -> Result a -> a # foldl1 :: (a -> a -> a) -> Result a -> a # elem :: Eq a => a -> Result a -> Bool # maximum :: Ord a => Result a -> a # minimum :: Ord a => Result a -> a # | |
Traversable Result Source # | |
Functor Result Source # | |
FromJSON a => FromJSON (Result a) Source # | |
Defined in Citeproc.Types | |
ToJSON a => ToJSON (Result a) Source # | |
Show a => Show (Result a) Source # | |