Skip to content

Commit

Permalink
Merge pull request #51 from adamConnerSax/master
Browse files Browse the repository at this point in the history
Remove dependency on log-domain
  • Loading branch information
idontgetoutmuch authored Nov 28, 2019
2 parents f4139d1 + 551741d commit bf5c476
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Icon?
###########

dist
dist-newstyle
*.o
*.hi
*.chi
Expand Down
2 changes: 2 additions & 0 deletions random-fu/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Changes in 0.2.7.3: Remove dependence on log-domain. Raise lower bound for base to 4.9.

* Changes in 0.2.7.1: Add PDF instance for Poisson.

* Changes in 0.2.7.0: Add Simplex, fix logBetaPdf, fix binomialPdf and
Expand Down
5 changes: 2 additions & 3 deletions random-fu/random-fu.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: random-fu
version: 0.2.7.2
version: 0.2.7.3
stability: provisional

cabal-version: >= 1.6
Expand Down Expand Up @@ -78,7 +78,7 @@ Library
Data.Random.Sample
Data.Random.Vector
if flag(base4_2)
build-depends: base >= 4.2 && <5
build-depends: base >= 4.9 && <5
else
cpp-options: -Dold_Fixed
build-depends: base >= 4 && <4.2
Expand All @@ -98,7 +98,6 @@ Library
template-haskell,
transformers,
vector >= 0.7,
log-domain >=0.9 && <1.0,
erf

if impl(ghc == 7.2.1)
Expand Down
2 changes: 1 addition & 1 deletion random-fu/src/Data/Random/Distribution/Binomial.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Data.Random.Distribution.Uniform

import Numeric.SpecFunctions ( stirlingError )
import Numeric.SpecFunctions.Extra ( bd0 )
import Numeric.Log ( log1p )
import Numeric ( log1p )

-- algorithm from Knuth's TAOCP, 3rd ed., p 136
-- specific choice of cutoff size taken from gsl source
Expand Down

0 comments on commit bf5c476

Please sign in to comment.