packages feed

functor-monadic 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+15/−4 lines, 2 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Data.Functor.Monadic: (.>) :: (a -> b) -> (b -> c) -> (a -> c)

Files

Data/Functor/Monadic.hs view
@@ -14,7 +14,8 @@ --  * @>=$>  ~  >=> @ (Kleisli composition)
 --  * @<$=<  ~  <=< @ (flipped Kleisli composition)
 --
--- Lastly, '|>' is left-to-right function composition (flipped version of '$').
+--  In addition, '|>' and '.>' are the left-to-right versions of '$' and '.',
+--  respectively.
 module Data.Functor.Monadic (
    module Data.Functor,
    (>$>),
@@ -22,9 +23,10 @@    (<$<),
    (>=$>),
    (<$=<),
-   (|>)) where
+   (|>),
+   (.>)) where
 
-import Data.Functor ((<$))
+import Data.Functor ((<$), (<$>))
 
 infixl 1 >$>
 infixl 1 $>
@@ -32,6 +34,7 @@ infixl 1 >=$>
 infixr 1 <$=<
 infixl 1 |>
+infixl 1 .>
 
 -- |Flipped 'fmap' for chaining plain functions after a functor in the following
 --  way:
@@ -82,3 +85,7 @@ -- |Flipped version of '$'.
 (|>) :: a -> (a -> b) -> b
 (|>) = flip ($)
+
+-- |Flipped version '.'.
+(.>) :: (a -> b) -> (b -> c) -> (a -> c)
+(.>) = flip (.)
functor-monadic.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                functor-monadic
-version:             0.1.0.1
+version:             0.1.0.2
 synopsis:            Monad-style combinators for functors.
 description:         Monad's bind (>>=, >=>) allows the infix chaining of monadic
                      functions, but no analogues exist for functors. This package
@@ -16,6 +16,10 @@ category:            Data
 build-type:          Simple
 cabal-version:       >=1.10
+
+source-repository head
+  type: git
+  location: git://github.com/ombocomp/FunctorMonadic.git
 
 library
   exposed-modules:     Data.Functor.Monadic