tfausak/flow

:droplet: Write more understandable Haskell.

Haskell

203

193 commits

updated Aug 10, 2026

See the code

README

Flow

CI Hackage

Write more understandable Haskell.

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 2.2.

Installation

To add Flow as a dependency to your package, add it to your Cabal file.

build-depends: flow ==2.0.*

Usage

Flow is designed to be imported unqualified. It does not export anything that conflicts with the base package.

import Flow

Cheat sheet

FlowBase
x |> fx & f
f <| xf $ x
apply x ff x
f .> gf >>> g
g <. fg . f
compose f g xg (f x)
x !> f-
f <! xf $! x
apply' x fseq x (f x)

Converting existing code

If you want to uniformly use flow operators you can use HLint with the hlint-flow.yaml file. For easy use, it is best to extract the hlint-flow.yaml to your project directory and do

> hlint -h hlint-flow.yaml <source file>

or

> hlint --git -h hlint-flow.yaml

to check all Haskell source tracked by git.

For more information about Flow, please read the Haddock documentation.

haskell
operator

Contributors

tfausak

160 commits

dependabot[bot]

26 commits

aleator

3 commits

sullyj3

2 commits

tfausak/flow

:droplet: Write more understandable Haskell.

Haskell

203

193 commits

updated Aug 10, 2026

See the code

README

Flow

CI Hackage

Write more understandable Haskell.

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 2.2.

Installation

To add Flow as a dependency to your package, add it to your Cabal file.

build-depends: flow ==2.0.*

Usage

Flow is designed to be imported unqualified. It does not export anything that conflicts with the base package.

import Flow

Cheat sheet

FlowBase
x |> fx & f
f <| xf $ x
apply x ff x
f .> gf >>> g
g <. fg . f
compose f g xg (f x)
x !> f-
f <! xf $! x
apply' x fseq x (f x)

Converting existing code

If you want to uniformly use flow operators you can use HLint with the hlint-flow.yaml file. For easy use, it is best to extract the hlint-flow.yaml to your project directory and do

> hlint -h hlint-flow.yaml <source file>

or

> hlint --git -h hlint-flow.yaml

to check all Haskell source tracked by git.

For more information about Flow, please read the Haddock documentation.

haskell
operator

Contributors

tfausak

160 commits

dependabot[bot]

26 commits

aleator

3 commits

sullyj3

2 commits

Languages

Haskell

100.0%