functor-monadic 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+9/−10 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Functor/Monadic.hs +8/−9
- functor-monadic.cabal +1/−1
Data/Functor/Monadic.hs view
@@ -1,19 +1,18 @@ -- |Helper functions for functors. -- -- These operators are designed to make the interoperation between monadic --- and pure computations more convenient by allowed them to be chained together +-- and pure computations more convenient by allowing them to be chained together -- without peppering the program with superflouos return statements. -- -- Each function is a pure analogue of a monadic one. The correspondences are -- as follows: --- @ --- >$> ~ >>= --- $> ~ >> --- <$ ~ << (re-exported from Data.Functor) --- <$< ~ =<< (same as Data.Functor.<$>, but with the precedence of >>=) --- >=$> ~ >=> --- <$=< ~ <=< --- @ +-- +-- * @>$> ~ >>=@ (bind) +-- * @$> ~ >> @ (throw away left argument) +-- * @<$ ~ << @ (re-exported from "Data.Functor") +-- * @<$< ~ =<< @ (same as 'Data.Functor.<$>', but with the precedence of '>>=') +-- * @>=$> ~ >=> @ (Kleisli composition) +-- * @<$=< ~ <=< @ (flipped Kleisli composition) -- -- Lastly, '|>' is left-to-right function composition (flipped version of '$'). module Data.Functor.Monadic (
functor-monadic.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: functor-monadic -version: 0.1.0.0 +version: 0.1.0.1 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