exact-combinatorics 0.2.0 → 0.2.0.4
raw patch · 6 files changed
+62/−19 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README +32/−0
- VERSION +8/−0
- exact-combinatorics.cabal +14/−11
- src/Math/Combinatorics/Exact/Binomial.hs +5/−5
- src/Math/Combinatorics/Exact/Factorial.hs +1/−1
- src/Math/Combinatorics/Exact/Primes.hs +2/−2
+ README view
@@ -0,0 +1,32 @@+exact-combinatorics+===================++This is a simple package and should be easy to install. You should+be able to use one of the following standard methods to install it.++ -- With cabal-install and without the source:+ $> 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 install++The test step is optional and currently does nothing.+++Portability+===========++An attempt has been made to keep this library as portable as possible.+It is Haskell98 except for the use of CPP, in order to get the+Haddock documentation to come out right.++----------------------------------------------------------- fin.
+ VERSION view
@@ -0,0 +1,8 @@+0.2.0.4 (2012-09-26):+ - Math.Combinatorics.Exact.Binomial: added OEIS link+0.2.0 (2012-02-02):+ - renamed to exact-combinatorics.+ - moved Math.Combinatorics.* to Math.Combinatorics.Exact.*++0.1.0 (2011-12-04):+ - init.
exact-combinatorics.cabal view
@@ -1,10 +1,16 @@ ------------------------------------------------------------------- wren ng thornton <wren@community.haskell.org> ~ 2012.02.02+-- wren ng thornton <wren@community.haskell.org> ~ 2012.09.26 ---------------------------------------------------------------- +-- By and large Cabal >=1.2 is fine; but >= 1.6 gives tested-with:+-- and source-repository:.+Cabal-Version: >= 1.6+-- We need a custom build in order to define __HADDOCK__+Build-Type: Custom+ Name: exact-combinatorics-Version: 0.2.0-Stability: provisional+Version: 0.2.0.4+Stability: experimental Homepage: http://code.haskell.org/~wren/ Author: wren ng thornton Maintainer: wren@community.haskell.org@@ -16,16 +22,13 @@ Synopsis: Efficient exact computation of combinatoric functions. Description: Efficient exact computation of combinatoric functions. --- By and large Cabal >=1.2 is fine; but >= 1.6 gives tested-with:--- and source-repository:.-Cabal-Version: >= 1.6--- We need a custom build in order to define __HADDOCK__-Build-Type: Custom-Tested-With: GHC == 6.12.1-+Tested-With:+ GHC == 6.12.1+Extra-source-files:+ README, VERSION Source-Repository head Type: darcs- Location: http://community.haskell.org/~wren/combinatorics+ Location: http://community.haskell.org/~wren/exact-combinatorics ---------------------------------------------------------------- Flag base4
src/Math/Combinatorics/Exact/Binomial.hs view
@@ -1,17 +1,17 @@ {-# OPTIONS_GHC -Wall -fwarn-tabs #-} ------------------------------------------------------------------- 2012.02.02+-- 2012.09.26 -- | -- Module : Math.Combinatorics.Exact.Binomial -- Copyright : Copyright (c) 2011--2012 wren ng thornton -- License : BSD -- Maintainer : wren@community.haskell.org--- Stability : provisional+-- Stability : experimental -- Portability : Haskell98 ----- Binomial coefficients, aka the count of possible combinations.--- For negative inputs, all functions return 0 (rather than throwing--- an exception or using 'Maybe').+-- Binomial coefficients (<http://oeis.org/A007318>), aka the count+-- of possible combinations. For negative inputs, all functions+-- return 0 (rather than throwing an exception or using 'Maybe'). ---------------------------------------------------------------- module Math.Combinatorics.Exact.Binomial (choose) where
src/Math/Combinatorics/Exact/Factorial.hs view
@@ -7,7 +7,7 @@ -- Copyright : Copyright (c) 2011--2012 wren ng thornton -- License : BSD -- Maintainer : wren@community.haskell.org--- Stability : provisional+-- Stability : experimental -- Portability : Haskell98 + CPP -- -- The factorial numbers (<http://oeis.org/A000142>). For negative
src/Math/Combinatorics/Exact/Primes.hs view
@@ -8,10 +8,10 @@ -- 2012.02.02 -- | -- Module : Math.Combinatorics.Exact.Primes--- Copyright : Copyright (c) 2011 wren ng thornton+-- Copyright : Copyright (c) 2011--2012 wren ng thornton -- License : BSD -- Maintainer : wren@community.haskell.org--- Stability : provisional+-- Stability : experimental -- Portability : Haskell98 -- -- The prime numbers (<http://oeis.org/A000040>).