packages feed

composition-prelude 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+7/−1 lines, 2 files

Files

composition-prelude.cabal view
@@ -1,5 +1,5 @@ name:                composition-prelude-version:             0.1.0.2+version:             0.1.0.3 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
@@ -6,6 +6,8 @@     -- ^ Precomposition     , (-.)     , (-.*)+    -- ^ Fancy function application+    , (-$)     -- ^ Tuple helpers     , both     -- ^ Reexports from Control.Arrow@@ -29,6 +31,7 @@  infixr 8 .* infixr 8 -.*+infixl 8 -$  {-fish' :: (a -> c -> b) -> (b -> c -> c) -> a -> c -> c fish' f g x y = g (f x y) y@@ -38,6 +41,9 @@  both :: (a -> b) -> (a, a) -> (b, b) both = join (***)++(-$) :: (a -> b -> c) -> b -> a -> c+(-$) f x y = f y x  -- | As an example: --