composition-prelude 0.1.1.1 → 0.1.1.2
raw patch · 2 files changed
+6/−1 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Control.Composition: (-.***) :: (d -> e) -> (a -> b -> c -> e -> f) -> a -> b -> c -> d -> f
- Control.Composition: infixr 8 -.**
+ Control.Composition: infixr 8 -.***
Files
composition-prelude.cabal view
@@ -1,5 +1,5 @@ name: composition-prelude-version: 0.1.1.1+version: 0.1.1.2 synopsis: Higher-order function combinators description: Replacement for `composition` or `composition-exta`, exporting everything in one sane module. homepage: https://github.com/vmchale/composition-prelude#readme
src/Control/Composition.hs view
@@ -9,6 +9,7 @@ , (-.) , (-.*) , (-.**)+ , (-.***) -- * Fancy function application , (-$) -- * Tuple helpers@@ -45,6 +46,7 @@ infixr 8 .*** infixr 8 -.* infixr 8 -.**+infixr 8 -.*** infixl 8 -$ #if __GLASGOW_HASKELL__ <= 784 infixl 1 &@@ -78,6 +80,9 @@ (-.**) :: (c -> d) -> (a -> b -> d -> e) -> a -> b -> c -> e (-.**) f g x y z = g x y (f z)++(-.***) :: (d -> e) -> (a -> b -> c -> e -> f) -> a -> b -> c -> d -> f+(-.***) f g w x y z = g w x y (f z) -- | Backwards function composition (-.) :: (a -> b) -> (b -> c) -> a -> c