packages feed

composition-prelude 1.4.0.5 → 1.5.0.0

raw patch · 2 files changed

+2/−16 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Control.Composition: ap :: Monad m => m (a -> b) -> m a -> m b
- Control.Composition: bool :: () => a -> a -> Bool -> a

Files

composition-prelude.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: composition-prelude-version: 1.4.0.5+version: 1.5.0.0 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2017-2018 Vanessa McHale
src/Control/Composition.cpphs view
@@ -27,15 +27,10 @@     , (&)     , fix     , on-    , ap-    , bool     ) where  import           Control.Arrow ((***)) import           Control.Monad-#if MIN_VERSION_base(4,7,0)-import           Data.Bool     (bool)-#endif #if MIN_VERSION_base(4,8,0) import           Data.Function (fix, on, (&)) #elif defined(MIN_VERSION_lens)@@ -116,19 +111,10 @@ #endif biaxe = sequence_ .** bisequence' -#if !MIN_VERSION_base(4,7,0)--- | See--- [here](http://hackage.haskell.org/package/base-4.11.1.0/docs/Data-Bool.html#v:bool)--- for docs.-bool :: a -> a -> Bool -> a-bool x _ False = x-bool _ x True  = x-#endif- both :: (a -> b) -> (a, a) -> (b, b) both = join (***) --- | Backwards function+-- | Backwards function application (-$) :: (a -> b -> c) -> b -> a -> c (-$) f x y = f y x