Write more understandable Haskell.

Flow is a package that provides functions and operators for writing more
understandable Haskell. It’s an alternative to some common idioms like
($)
for function application and (.)
for function composition.
Requirements
Flow requires a Haskell compiler. It is tested with recent versions of GHC, but
older or different compilers should be acceptable. For installation with Cabal,
Flow requires at least Cabal 1.8.
Installation
To add Flow as a dependency to your package, add it to your Cabal file.
build-depends: flow ==1.0.*
For other use cases, install it with Cabal.
$ cabal install 'flow ==1.0.*'
Flow uses Semantic Versioning. See the change log for a detailed list
of changes.
Usage
Flow is designed to be imported unqualified. It does not export anything that
conflicts with the base package.
import Flow
Here is a quick overview of the functions and operators that Flow provides.
Flow |
Base |
apply x f |
f x |
`x |
> f` |
`f < |
x` |
compose f g x |
g (f x) |
f .> g |
f >>> g |
g <. f |
g . f |
apply' x f |
seq x (f x) |
x !> f |
- |
f <! x |
f $! x |
For more information about Flow, please read the Haddock documentation.