packages feed

comonad-random 0.1.1 → 0.1.2

raw patch · 2 files changed

+2/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Control.Comonad.Random: extracts :: (Rand a -> Rand a) -> Rand a -> [a]
+ Control.Comonad.Random: extracts :: (Copointed f) => (f a -> f a) -> f a -> [a]

Files

Control/Comonad/Random.hs view
@@ -99,7 +99,7 @@  -- | Generate an infinite list of values by applying a function --   repeatedly.-extracts :: (Rand a -> Rand a) -> Rand a -> [a]+extracts :: Copointed f => (f a -> f a) -> f a -> [a] extracts f = liftA2 (:) extract (extracts f . f)  {- $Example
comonad-random.cabal view
@@ -1,5 +1,5 @@ name:                comonad-random-version:             0.1.1+version:             0.1.2 synopsis:            Comonadic interface for random values description:         Comonadic interface for random values category:            Control