Efficient exact computation of combinatoric functions.


Version on this page:
LTS Haskell 22.29:
Stackage Nightly 2024-07-19:
Latest on Hackage:

See all snapshots exact-combinatorics appears in

BSD-3-Clause licensed by wren gayle romano
Maintained by [email protected]
This version can be pinned in stack with:exact-combinatorics-,2072

Module documentation for

Depends on 1 package(full list with versions):


Hackage version Hackage-Deps TravisCI Build Status

Efficient exact computation of combinatoric functions.


This is a simple package and should be easy to install via any of the standared methods:

-- With cabal-install and without the source:
$> cabal new-install exact-combinatorics
-- or:
$> cabal install exact-combinatorics

-- With cabal-install and with the source already:
$> cd exact-combinatorics
$> cabal install

-- Without cabal-install, but with the source already:
$> cd exact-combinatorics
$> runhaskell Setup.hs configure --user
$> runhaskell Setup.hs build
$> runhaskell Setup.hs test
$> runhaskell Setup.hs haddock --hyperlink-source
$> runhaskell Setup.hs copy
$> runhaskell Setup.hs register

The test step is optional and currently does nothing. The Haddock step is also optional.


An attempt has been made to keep this library as portable as possible. It is entirely Haskell98 with the exception of one use of BangPatterns. BangPatterns are supported in GHC as far back as version 6.6.1, and are also supported by JHC and UHC. As of 2010, they were not supported by Hugs; but alas Hugs is pretty much dead now.