packages feed

aivika-lattice 0.2 → 0.3

raw patch · 3 files changed

+15/−5 lines, 3 filesdep +mwc-randomdep ~aivikadep ~aivika-transformersPVP ok

version bump matches the API change (PVP)

Dependencies added: mwc-random

Dependency ranges changed: aivika, aivika-transformers

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,4 +1,9 @@ +Version 0.3+-----++* Using the mwc-random package for generating random numbers by default.+ Version 0.2 ----- 
Simulation/Aivika/Lattice/Generator.hs view
@@ -18,6 +18,7 @@ import Control.Monad.Trans  import System.Random+import qualified System.Random.MWC as MWC  import Data.IORef @@ -67,7 +68,10 @@   newGenerator tp =     case tp of       SimpleGenerator ->-        liftIO newStdGen >>= newRandomGenerator+        do let g = MWC.uniform <$>+                   MWC.withSystemRandom (return :: MWC.GenIO -> IO MWC.GenIO)+           g' <- liftIO g+           newRandomGenerator01 (liftIO g')       SimpleGeneratorWithSeed x ->         error "Unsupported generator type SimpleGeneratorWithSeed: newGenerator"       CustomGenerator g ->
aivika-lattice.cabal view
@@ -1,9 +1,9 @@ name:            aivika-lattice-version:         0.2+version:         0.3 synopsis:        Nested discrete event simulation module for the Aivika library using lattice description:     This experimental package extends the aivika-transformers [1] library and allows -    running nested discrete event simulations within lattice nodes, because of which+    running nested discrete event simulations within lattice nodes, where     traversing the nodes of branching has a quadratic complexity.     .     \[1] <http://hackage.haskell.org/package/aivika-transformers>@@ -51,8 +51,9 @@                      mtl >= 2.1.1,                      containers >= 0.4.0.0,                      random >= 1.0.0.3,-                     aivika >= 5.1,-                     aivika-transformers >= 5.1+                     mwc-random >= 0.13.0.0,+                     aivika >= 5.2,+                     aivika-transformers >= 5.2      extensions:      TypeFamilies,                      MultiParamTypeClasses,