The agda-snippets package

[Tags:bsd3, library, program]

This library provides a very simple function that translates just the code blocks of a literate Agda file to colourised, hyperlinked HTML. The output of this can then be run through Pandoc or other document processors to allow literate Agda to be comfortably written in any format that allows inline HTML snippets.

There is also a simple command-line application (agda-snippets) included that can be used as a standalone file processor.

The location of library source hyperlinks is configurable, as is the CSS class given to Agda code blocks.

This package is pinned to particular Agda versions, and therefore does not obey the PVP, as Agda does not. You should use whichever version of this library corresponds to the Agda version you wish to use.

The development version of this library, available from GitHub, may work with development versions of Agda, although it could be broken at any time. If you stick to stable versions, you should be fine.


Versions,, 2.5.1
Dependencies Agda (==2.5.1), agda-snippets, base (>=4.7 && <4.9), containers (==0.5.*), mtl (>=2.1 && <2.3), network-uri (==2.6.*), transformers (==0.4.*), xhtml (>=3000.2.1 && <3000.3) [details]
License BSD3
Copyright Liam O'Connor, 2015
Author Liam O'Connor
Category Dependent Types
Home page
Source repository head: git clone
Uploaded Tue Apr 19 03:56:38 UTC 2016 by LiamOConnorDavis
Distributions NixOS:2.5.1
Downloads 186 total (6 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-10-26 [all 3 reports]


  • Agda
    • Contrib
      • Agda.Contrib.Snippets


Maintainer's Corner

For package maintainers and hackage trustees