commit 548137b87d5e1d0f21536485f8816c8a2de530f3
parent 6dad01d77c716758928d21ee69523fd781c60479
Author: Jared Tobin <jared@jtobin.ca>
Date: Fri, 4 Mar 2016 08:45:56 +1300
Import Foldable for older GHCs.
* Minor version bump (1.2.1).
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/mwc-probability.cabal b/mwc-probability.cabal
@@ -1,5 +1,5 @@
name: mwc-probability
-version: 1.2.0
+version: 1.2.1
homepage: http://github.com/jtobin/mwc-probability
license: MIT
license-file: LICENSE
diff --git a/src/System/Random/MWC/Probability.hs b/src/System/Random/MWC/Probability.hs
@@ -76,6 +76,9 @@ import Control.Monad
import Control.Monad.Primitive
import Control.Monad.IO.Class
import Control.Monad.Trans.Class
+#if __GLASGOW_HASKELL__ < 710
+import Data.Foldable (Foldable)
+#endif
import qualified Data.Foldable as F
import Data.List (findIndex)
import System.Random.MWC as MWC hiding (uniform, uniformR)