Kleisli arrows for bifunctor IO
Part of fp-ts ecosystem.
TypeScript port of KleisliIO
– Kleisli arrows with bifunctor IO from great talk by John A. De Goes at LambdaConf'18 called "Blazing Fast, Pure Effects without Monads".
Please see examples for possible ways of programming with Kleisli arrows.
Installation & usage
- Install this module either via NPM or Yarn:npm i kleisli-ts# oryarn add kleisli-ts
- This module has a peer dependency – fp-ts, so you'll need to install it as well:npm i fp-ts@1yarn add fp-ts@1
kleisli-ts
provides curried functions as its main API, but you also have a convenience methodgetInstancesFor
, which returns an API instance bound to the given monad:;;;;
Simple example
; ;; ; ;; unsafeRunIEk.andThenlog.run;