Agda Other
Clone or download
Failed to load latest commit information.
CHANGELOG [ fix #377 ] splitting up CHANGELOG Jul 11, 2018
README [ level ] polymorphism in Data.Container (#346) Jul 9, 2018
notes Updated README and style-guide May 31, 2018
src Deprecating `Data.Fin.Dec` (#375) Jul 15, 2018
.boring Adapted Dominique's patches to my taste. Made more things polymorphic. Feb 19, 2011
.gitignore Add `.DS_Store` (directory state for Mac OS) to `.gitignore` (#301) Apr 26, 2018
.mailmap Added .mailmap file. Jun 18, 2014
.travis.yml [ re #289 ] at least one step of compilation Jul 8, 2018
AllNonAsciiChars.hs Added code point information Jan 17, 2014 Fixed whitespace typo Jul 15, 2018
GNUmakefile [ fix ] keeping `make test` as the default target Jul 7, 2018
GenerateEverything.hs [ Fixed #330 ] made readFileUTF8 close the handle before returning (#332 Jun 9, 2018 Updated instructions for the library May 31, 2018
Header Added header lines containing "The Agda standard library". Sep 19, 2011
LICENCE Added Jason Hu to credits Jun 25, 2018
README.agda Moving existing musical codata from `Data` to `Codata.Musical` (#334) Jun 28, 2018 Fixup Updated CHANGELOG, README etc for release (#336) Jun 18, 2018
Setup.hs Added a Cabal file for the helper programs. Mar 25, 2010
index.agda [ fix #218 ] moving index.agda out of src/ (#219) Jan 18, 2018 [ fix #218 ] moving index.agda out of src/ (#219) Jan 18, 2018
lib.cabal Updated CHANGELOG, README etc for release Jun 8, 2018 git add --all in publish-listings script Jan 24, 2014
standard-library.agda-lib Renamed the library. Feb 23, 2016

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.16 of the standard library with Agda 2.5.4.

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

  git clone
  cd agda-stdlib
  git checkout v0.16
  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.