The flow package

[ Tags: combinators, functions, library, mit, utility ] [ Propose Tags ]

Flow provides operators for writing more understandable Haskell.


[Skip to Readme]

Properties

Versions 1.0.0, 1.0.1, 1.0.2, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9 (info)
Change log CHANGELOG.md
Dependencies base (<5) [details]
License MIT
Author
Maintainer Taylor Fausak
Category Combinators, Functions, Utility
Home page https://github.com/tfausak/flow#readme
Bug tracker https://github.com/tfausak/flow/issues
Source repository head: git clone https://github.com/tfausak/flow
Uploaded Wed Aug 30 00:12:40 UTC 2017 by fozworth
Distributions LTSHaskell:1.0.9, NixOS:1.0.9, Stackage:1.0.9, Tumbleweed:1.0.7
Downloads 880 total (31 in the last 30 days)
Rating 2.25 (2 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-08-30 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for flow-1.0.9

[back to package description]

[Flow][]

Write more understandable Haskell. [![Version badge][]][version] [![Build badge][]][build] Flow is a package that provides functions and operators for writing more understandable Haskell. It is 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.*

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

Cheat sheet

Flow | Base --------------- | ------------- <code>x |> f</code> | x & f <code>f <| x</code> | f $ x apply x f | f x f .> g | f >>> g g <. f | g . f compose f g x | g (f x) x !> f | - f <! x | f $! x apply' x f | seq x (f x) For more information about Flow, please read [the Haddock documentation][]. [Flow]: http://taylor.fausak.me/flow/ [Version badge]: https://www.stackage.org/package/flow/badge/nightly?label=version [version]: https://www.stackage.org/package/flow [Build badge]: https://travis-ci.org/tfausak/flow.svg?branch=master [build]: https://travis-ci.org/tfausak/flow [($)]: http://hackage.haskell.org/package/base-4.8.0.0/docs/Prelude.html#v:-36- [(.)]: http://hackage.haskell.org/package/base-4.8.0.0/docs/Prelude.html#v:. [the change log]: CHANGELOG.md [the base package]: http://hackage.haskell.org/package/base [the haddock documentation]: https://hackage.haskell.org/package/flow/docs/Flow.html