fp-ts-wonka
v0.1.0
Published
[fp-ts](https://github.com/gcanti/fp-ts) bindings for [wonka](https://wonka.kitten.sh/)
Downloads
2
Readme
Implemented instances
Monad
Applicative
Alternative
Filterable
Install
Uses fp-ts
as a peer dependency.
yarn add fp-ts fp-ts-wonka
or
npm install fp-ts fp-ts-wonka
Example
import { fromArray } from 'wonka'
import * as S from 'fp-ts-wonka/Source'
const fa = fromArray([1, 2, 3])
const fb = pipe(
fa,
S.chain(a => fromArray([a, a + 1])
)
// fb will emit 1, 2, 2, 3, 3, 4