packages feed

composition-prelude 3.0.0.2 → 3.0.1.0

raw patch · 3 files changed

+10/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Control.Composition: onM :: Monad m => (b -> b -> m c) -> (a -> m b) -> a -> a -> m c

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # composition-prelude +# 3.0.1.0++  * Add `onM`+ # 3.0.0.2    * Faster `thread`, hopefully
composition-prelude.cabal view
@@ -1,6 +1,6 @@ cabal-version:   1.18 name:            composition-prelude-version:         3.0.0.2+version:         3.0.1.0 license:         BSD3 license-file:    LICENSE copyright:       Copyright: (c) 2017-2020 Vanessa McHale
src/Control/Composition.hs view
@@ -33,6 +33,7 @@     -- * Monadic helpers     , bisequence'     , (.$)+    , onM     -- * Monadic actions     , axe     , biaxe@@ -277,3 +278,7 @@ -- @since 1.5.3.0 (<~@~<) :: Monad m => (c -> m d) -> (a -> m b) -> (b -> m c) -> a -> m d (<~@~<) = betweenM++-- @since 3.0.1.0+onM :: Monad m => (b -> b -> m c) -> (a -> m b) -> a -> a -> m c+onM g f x y = do {x' <- f x; y' <- f y; g x' y'}