control v0.1.0 Control.Helpers
A set of helper functions to ease the process of
working with the Control.*
protocols.
Link to this section Summary
Link to this section Functions
Compose operator.
The compose operator (.
in Haskell) removes the need
for using apply/2
or .()
to call an anonymous
function, so
f.(g.(x)) or f |> apply([g |> apply([x])])
becomes
(
Link to this function
left ~>> right
Control.Monad.t() ~>> (term() -> Control.Monad.t()) :: Control.Monad.t()
Bind operator.
The bind operator (>>=
in Haskell) removes the need
for piping to a call to Control.Monad.bind/2
, so
functor |> Control.Monad.bind(fun)
becomes
functor ~>> fun