import { pipe } from 'fp-ts/lib/pipeable' // v2.6 import { chainW, Reader } from 'fp-ts/lib/Reader' export interface Dependencies { readonly i18n: { readonly true: string readonly false: string } readonly lowerBound: number } export interface OtherDependencies { readonly semicolon: boolean } declare function transform(a: string): Reader<OtherDependencies, string> declare function anotherTransform(a: string): Reader<OtherDependencies, string> declare function f(b: boolean): Reader<Dependencies, string> const g = (n: number) => pipe(f(n > 2), chainW(transform), chainW(anotherTransform))
That's exactly what I needed. I saw you just released chainW in 2.6.0. Great job thanks! :)
chainW
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That's exactly what I needed. I saw you just released
chainWin 2.6.0. Great job thanks! :)