packages feed

aivika-realtime 0.2 → 0.3

raw patch · 3 files changed

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

version bump matches the API change (PVP)

Dependencies added: mwc-random, vector

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/RealTime/Generator.hs view
@@ -18,8 +18,10 @@ import Control.Monad.Trans  import System.Random+import qualified System.Random.MWC as MWC  import Data.IORef+import Data.Vector  import Simulation.Aivika.Trans.Generator import Simulation.Aivika.Trans.Generator.Primitive@@ -85,9 +87,15 @@   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 ->-        newRandomGenerator $ mkStdGen x+        do let g = MWC.uniform <$>+                   MWC.initialize (singleton x)+           g' <- liftIO g+           newRandomGenerator01 (liftIO g')       CustomGenerator g ->         g       CustomGenerator01 g ->
aivika-realtime.cabal view
@@ -1,5 +1,5 @@ name:            aivika-realtime-version:         0.2+version:         0.3 synopsis:        Soft real-time simulation module for the Aivika library description:     This package allows running soft real-time simulations based on the aivika-transformers [1] library.@@ -43,10 +43,12 @@                      stm >= 2.4.2,                      containers >= 0.4.0.0,                      random >= 1.0.0.3,+                     mwc-random >= 0.13.0.0,                      async >= 2.0,                      time >= 1.5.0.1,-                     aivika >= 5.1,-                     aivika-transformers >= 5.1+                     vector >= 0.10.0.1,+                     aivika >= 5.2,+                     aivika-transformers >= 5.2      extensions:      TypeFamilies,                      MultiParamTypeClasses,