hx-0.3: Haskell extras (missing utility functions).

Portabilityportable
Stabilityprovisional
Maintainerjulian.fleischer@fu-berlin.de
Safe HaskellSafe

Haskell.X.Ops

Description

Haskell extra operators. Do not import qualified.

Synopsis

Documentation

(->>) :: a -> (a -> b) -> bSource

flip ($), fixity is infixl 1 (like >>= but for non-monadic functions)

(=>>) :: Monad m => a -> (a -> b) -> m bSource

Like ->>, but wraps its result so that it can be used in a monad. Fixity is infixl 1.

(|>) :: (a -> b) -> (b -> c) -> a -> cSource

flip (.), fixity is infixl 9 (same as for .), from F#.

(<$>) :: Functor f => (a -> b) -> f a -> f b

An infix synonym for fmap.