effect-ts-laws
Version:
effect-ts law testing using fast-check.
25 lines • 436 B
JavaScript
import { Covariant as CO } from '@effect/typeclass';
import { flatMap, map, of, reduce, reduceRight } from 'effect/List';
/**
* @category instances
*/
export const Monad = {
of,
flatMap,
map,
imap: CO.imap(map),
};
/**
* @category instances
*/
export const Foldable = {
reduce,
};
/**
* @category instances
*/
export const RightFoldable = {
...Foldable,
reduceRight,
};
//# sourceMappingURL=List.js.map