fp-ts-fluture

v0.6.5
fp-ts bindings for Fluture
fp-ts fluture bindings

fp-ts bindings for Fluture

Documentation

Example

import { reject, of } from 'fluture'
import { future } from 'fp-ts-fluture/lib/Future'
import { array } from 'fp-ts/lib/Array'

array
  .sequence(future)([of(1), reject('ops')])
  .fork(() => console.error('error'), xs => console.log(xs)) // => "error"
array
  .sequence(future)([of(1), of(2)])
  .fork(() => console.error('error'), xs => console.log(xs)) // => [1, 2]
npm i fp-ts-fluture

Metadata

  • MIT
  • Whatever
  • Giulio Canti
  • released 3/6/2020

Downloads

Maintainers