ANNOUNCE: citeproc-hs, a Haskell implementation of the Citation Style Language designed for Pandoc


I’m happy to announce the first release of citeproc-hs, a Haskell
implementation of the Citation Style Language.

citeproc-hs adds to Pandoc, the famous Haskell text processing tool, a
Bibtex like citation and bibliographic formatting and generation

The Citation Style Language (CSL) is an XML language for specifying
citation and bibliographic formatting, similar in principle to BibTeX
.bst files or the binary style files in commercial products like
Endnote or Reference Manager.

CSL is used by Zotero for bibliographic style formatting, and a huge
number of CSL styles have been developed by the Zotero community.

There are plans to use CSL in the future release of OpenOffice:

citeproc-hs is a library that exports functions to parse CSL styles
and MODS collections, to process lists of citation groups and to
format the processed output. The output is a Haskell data type that
can be further processed for conversion to any kind of formats (at the
present time plain ASCII and the Pandoc native format)

citeproc-hs was developed in order to add to Pandoc Bibtex like
citations and automatic reference and bibliography generation.

More information, with installation instructions, can be found here:

citeproc-hs can be downloaded from Hackage:

To get the darcs source run:

darcs get

citeproc-hs is in an early stage of development and the CSL is not
complete yet.

Specifically, citation collapsing is not implemented, and some
formatting options are not working neither.

The MODS parser needs some refinement too.

To submit bug reports you can you the Google code bug tracking system
available at the following address:

Bruce D’Arcus, the author of CSL, has been very kind and patient
with me when I was trying to understand the CSL schema, and provided
me with ideas, comments and suggestions that made it possible to come
to something usable.

John MacFarlane, the author of Pandoc, has been very supportive of the
project and provided a lot of useful feed back, comments and

Hope you’ll enjoy,
Andrea Rossato

Congrats Andrea! I just blogged it.


Thank you, Bruce, and thanks for your help.

John is going to make a release of pandoc very soon, although
citeproc-hs won’t be enabled by default due to dependency issues we
will try to take care of.