All Projects → gcanti → fp-ts-fluture

gcanti / fp-ts-fluture

Licence: MIT License
fp-ts bindings for Fluture

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to fp-ts-fluture

Pico
Take browser screenshots in Javascript 📸
Stars: ✭ 1,807 (+3664.58%)
Mutual labels:  fp-ts, fluture
fp-ts-cheatsheet
FP-TS Cheat Sheet
Stars: ✭ 276 (+475%)
Mutual labels:  fp-ts
mutoid
Reactive library for data fetching, caching, state management
Stars: ✭ 24 (-50%)
Mutual labels:  fp-ts
ts-do
Do like notation for typescript using fp-ts
Stars: ✭ 55 (+14.58%)
Mutual labels:  fp-ts
workshop-edsl-in-typescript
Code template for workshop "Building eDSLs in functional TypeScript"
Stars: ✭ 49 (+2.08%)
Mutual labels:  fp-ts
fp-ts-ramda
Ramda functions reimplemented in fp-ts
Stars: ✭ 129 (+168.75%)
Mutual labels:  fp-ts
purifree
Pointfree type-safe functional programming library for TypeScript - with do notation, HKTs, generic lifts and more
Stars: ✭ 64 (+33.33%)
Mutual labels:  fp-ts
typescript-react-starter
React & TypeScript Starter with webpack, ts-jest and runtime environment variables. It comes with fp-ts ecosystem and pre-configured prettier, eslint, vscode, husky hooks and Dockerfile to build a deployable image of your app
Stars: ✭ 17 (-64.58%)
Mutual labels:  fp-ts
retry-ts
Retry combinators for monadic actions that may fail
Stars: ✭ 151 (+214.58%)
Mutual labels:  fp-ts
vscode-fp-ts-codegen
Expands haskell-syntax ADTs to typescript equivalent types definitions using gcanti/fp-ts-codegen
Stars: ✭ 16 (-66.67%)
Mutual labels:  fp-ts
Fluture
🦋 Fantasy Land compliant (monadic) alternative to Promises
Stars: ✭ 2,249 (+4585.42%)
Mutual labels:  fluture

fp-ts bindings for Fluture

Documentation

Example

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

array
  .sequence(future)([resolve(1), reject('oops')])
  .pipe(fork(e => console.error('Error:', e))
    (console.log), // => "Error: oops"
  )
array
  .sequence(future)([resolve(1), resolve(2)])
  .pipe(fork(console.error)
    (console.log), // => [1, 2]
  )
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].