HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleciteproc-0.8.1Haskell2010

Citeproc

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

  • 1 type
  • 1 value
  • Packageciteproc-0.8.1
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceCiteproc.hs
valueciteproc
  1. :: CiteprocOutput a
  2. => CiteprocOptions

    Rendering options

  3. -> Style a

    Parsed CSL style

  4. -> Maybe Lang

    Overrides default locale for style

  5. -> [Reference a]

    List of references (bibliographic data)

  6. -> [Citation a]

    List of citations to process

  7. -> 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.

datadata Result a
#

Result of citation processing.

Constructors

  • Result
    • 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

Instances6Functor, Foldable, Traversable, Show, FromJSON, ToJSON