@typed/fp
Version:
Data Structures and Resources for fp-ts
19 lines • 562 B
JavaScript
/**
* FromEnv is a Typeclass which represents the Natural Transformation from a Resume into another
* effect.
*
* @since 0.9.2
*/
import { chainFirst } from 'fp-ts/Chain';
import { flow } from 'fp-ts/function';
export function fromResumeK(F) {
return (f) => (...args) => F.fromResume(f(...args));
}
export function chainResumeK(F, C) {
return (f) => C.chain(flow(f, F.fromResume));
}
export function chainFirstResumeK(F, C) {
const chainF = chainFirst(C);
return (f) => chainF(flow(f, F.fromResume));
}
//# sourceMappingURL=FromResume.js.map