fast-combinatorics: Fast combinatorics.

[ bsd3, library, numerics ] [ Propose Tags ]

Fast combinatorics code with a high level of safety guaranteed by writing it in ATS.

[Skip to Readme]


  • Numeric
    • Numeric.Combinatorics


Manual Flags


Enable `-Werror`


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,
Dependencies base (>=4.7 && <5), composition-prelude [details]
License BSD-3-Clause
Copyright Copyright: (c) 2017 Vanessa McHale
Author Vanessa McHale
Category Numerics
Home page
Source repo head: git clone
Uploaded by vmchale at 2017-12-30T19:08:18Z
Distributions NixOS:
Downloads 5231 total (23 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2018-01-01 [all 3 reports]

Readme for fast-combinatorics-

[back to package description]


Build Status

This is a library for fast combinatorics using ATS. You may need to download the relevant ATS libraries here if linking fails.

Currently it is in-progress, being somewhat constrained by the fact that I have yet to figure out how to share arbitrary-precision types between ATS and Haskell.


The Haskell library comes with the C bundled, however you may wish to build from source if you are hacking on the library. To that end, you can install stack, patscc , and pats-filter and build with

 $ ./shake.hs

You will also likely want to install GHC as well as cabal.


Using the ATS library

One of the nice things about a Haskell wrapper is that some of Haskell's tooling/libraries may be used. In particular, you may like to interact with the library via a REPL, viz.

 $ cabal new-repl

Using the Haskell library

You may wish to read the ATS source code for an indication of what sorts of things ATS allows us to prove things about our programs, such as proofs of termination.

There are also a few caveats: note that all results and arguments must be of the Int type. This unfortunate constraint will hopefully be fixed in the future, but right now it limits the usefulness of the library.