fp-ts-fluture
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

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]

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i fp-ts-fluture

    Weekly Downloads

    971

    Version

    0.6.5

    License

    MIT

    Unpacked Size

    43.1 kB

    Total Files

    20

    Last publish

    Collaborators

    • gcanti