citeproc-0.1.0.3: Generates citations and bibliography from CSL styles.

Safe HaskellNone
LanguageHaskell2010

Citeproc

Description

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

Documentation

citeproc Source #

Arguments

:: 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 Citations, 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.

data Result a Source #

Result of citation processing.

Constructors

Result 

Fields

  • resultCitations :: [a]

    List of formatted citations corresponding to the citations given to citeproc

  • resultBibliography :: [(Text, a)]

    List of formatted bibliography entries (if the style calls for a bibliography), each a pair consisting of the item identifier and the formatted entry

  • resultWarnings :: [Text]

    Warnings from citation processing

Instances
Show a => Show (Result a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Result a -> ShowS #

show :: Result a -> String #

showList :: [Result a] -> ShowS #

ToJSON a => ToJSON (Result a) Source # 
Instance details

Defined in Citeproc.Types

FromJSON a => FromJSON (Result a) Source # 
Instance details

Defined in Citeproc.Types