Skip to content
The Agda standard library
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
CHANGELOG Created new changelog and development messages Oct 20, 2018
travis [ fix #547 ] Add --safe flags to all safe modules (#549) Dec 7, 2018
.boring Adapted Dominique's patches to my taste. Made more things polymorphic. Feb 19, 2011
.mailmap Added .mailmap file. Jun 18, 2014
.travis.yml [ travis ] preserve documentation for 'experimental' Feb 28, 2019
AllNonAsciiChars.hs Added code point information Jan 17, 2014 Added missing CHANGELOG entry Mar 23, 2019
Header [ fix ] Generating EverythingSafe Aug 30, 2018
README.agda [ re #184 ] Axiom.UIP (#630) Mar 20, 2019 [ fix #541 ] Bindings for Debug.Trace (#582) Jan 13, 2019
lib.cabal Updated cabal.lib file to reference development version of the library Dec 11, 2018

The Agda standard library

The standard library aims to contain all the tools needed to easily write both programs and proofs. While we always try and write efficient code, we prioritise ease of proof over type-checking and normalisation performance. If computational performance is important to you, then perhaps try agda-prelude instead. You can browse the library source code in glorious clickable html here.

Quick installation instructions

Use version v0.17 of the standard library with Agda

Install it as follows. Say you are in directory $HERE (replace appropriately).

  git clone
  cd agda-stdlib
  git checkout v0.17
  cabal install

The last comment is optional, omit it if you are lacking cabal.

Register it by adding the following line to $HOME/.agda/libraries:


To use the standard library in you project $PROJECT, put a file $PROJECT.agda-lib file in the project root containing:

  depend: standard-library
  include: $DIRS

where $DIRS is a list of directories where Agda searches for modules, for instance . (just the project root).

If you want to refer to the standard library in all your projects, add the following line to $HOME/.agda/defaults


Find the full story at readthedocs.

Contributing to the library

If you would like to suggest improvements, feel free to use the Issues tab. If you would like to make improvements yourself, follow the instructions in HACKING.

Non-standard versions of Agda

If you're using an old version of Agda, you can download the corresponding version of the standard library on the Agda wiki.

If you're using a development version of Agda rather than the latest official release you should use the experimental branch of the standard library rather than master. The experimental branch contains non-backwards compatible patches for upcoming changes to the language.

Type-checking with the --safe flag

After the next full release of Agda, most of the library will be able to be type-checked with the --safe flag. Only the following modules are not compatible:

You can’t perform that action at this time.