packages feed

MonadRandom 0.1.9 → 0.1.10

raw patch · 3 files changed

+17/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Control.Monad.Random: instance MonadRandom m => MonadRandom (ContT r m)
+ Control.Monad.Random: instance MonadSplit g m => MonadSplit g (ContT r m)

Files

CHANGES.markdown view
@@ -1,3 +1,9 @@+0.1.10 (16 July 2013)+---------------------++  - add MonadRandom and MonadSplit instances for ContT+    (thanks to James Koppel for the patch)+ 0.1.9 (26 April 2013) --------------------- 
Control/Monad/Random.hs view
@@ -44,6 +44,7 @@ import           Control.Applicative import           Control.Arrow import           Control.Monad              ()+import           Control.Monad.Cont import           Control.Monad.Error import           Control.Monad.Identity import           Control.Monad.Random.Class@@ -152,6 +153,12 @@     getRandoms = lift getRandoms     getRandomRs = lift . getRandomRs +instance MonadRandom m => MonadRandom (ContT r m) where+    getRandom = lift getRandom+    getRandomR = lift . getRandomR+    getRandoms = lift getRandoms+    getRandomRs = lift . getRandomRs+ instance (MonadSplit g m) => MonadSplit g (StateT s m) where     getSplit = lift getSplit @@ -165,6 +172,9 @@     getSplit = lift getSplit  instance (MonadSplit g m) => MonadSplit g (MaybeT m) where+    getSplit = lift getSplit++instance (MonadSplit g m) => MonadSplit g (ContT r m) where     getSplit = lift getSplit  instance (MonadState s m, RandomGen g) => MonadState s (RandT g m) where
MonadRandom.cabal view
@@ -1,5 +1,5 @@ name:                MonadRandom-version:             0.1.9+version:             0.1.10 synopsis:            Random-number generation monad. description:         Support for computations which consume random values. license:             OtherLicense