packages feed

composition-prelude 1.5.0.5 → 1.5.0.6

raw patch · 2 files changed

+3/−6 lines, 2 filesdep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base

API changes (from Hackage documentation)

- Control.Composition: (&) :: () => a -> (a -> b) -> b
+ Control.Composition: (&) :: () => a -> a -> b -> b
- Control.Composition: (<&>) :: Functor f => f a -> (a -> b) -> f b
+ Control.Composition: (<&>) :: Functor f => f a -> a -> b -> f b
- Control.Composition: fix :: () => (a -> a) -> a
+ Control.Composition: fix :: () => a -> a -> a
- Control.Composition: on :: () => (b -> b -> c) -> (a -> b) -> a -> a -> c
+ Control.Composition: on :: () => b -> b -> c -> a -> b -> a -> a -> c

Files

composition-prelude.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: composition-prelude-version: 1.5.0.5+version: 1.5.0.6 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2017-2018 Vanessa McHale@@ -31,7 +31,7 @@     default-language: Haskell98     ghc-options: -Wall     build-depends:-        base >=4.8 && <5+        base >=4.11 && <5          if flag(development)         ghc-options: -Werror
src/Control/Composition.hs view
@@ -32,6 +32,7 @@ import           Control.Arrow ((***)) import           Control.Monad import           Data.Function (fix, on, (&))+import           Data.Functor  ((<&>))  infixr 8 .* infixr 8 .**@@ -42,7 +43,6 @@ infixr 8 -.*** infixr 8 -.**** infixl 8 -$-infixl 1 <&>  axe :: (Traversable t, Monad m) => t (a -> m ()) -> a -> m () axe = sequence_ .* sequence@@ -92,9 +92,6 @@ -- | Backwards function composition (-.) :: (a -> b) -> (b -> c) -> a -> c (-.) f g x = g (f x)--(<&>) :: Functor f => f a -> (a -> b) -> f b-x <&> f = fmap f x  {-# RULES     "thread" forall f g. thread [f, g] = f . g