packages feed

fast-arithmetic 0.1.1.0 → 0.1.1.1

raw patch · 3 files changed

+7/−2 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

fast-arithmetic.cabal view
@@ -1,5 +1,5 @@ name:                fast-arithmetic-version:             0.1.1.0+version:             0.1.1.1 synopsis:            Fast number-theoretic functions. description:         Fast number-theoretic code with a high level of safety guaranteed by ATS. homepage:            https://github.com/vmchale/fast-arithmetic#readme
src/Numeric/Combinatorics.hs view
@@ -1,9 +1,14 @@+{-# LANGUAGE CPP #-}+ -- | This provides a few facilities for working with common combinatorial -- functions. module Numeric.Combinatorics ( factorial                              , choose                              ) where +#if __GLASGOW_HASKELL__ <= 784+import           Control.Applicative+#endif import           Control.Composition import           Data.Word import           Foreign.C
test/Spec.hs view
@@ -35,5 +35,5 @@         prop "should agree with the pure Haskell function" $             \n -> n < 1 || isPerfect n == hsIsPerfect n     describe "factorial" $-        it "should agree with the pure Haskell function" $+        it "should work on a slightly large number" $             factorial 3141 >>= (`shouldBe` hsFactorial 3141)