functype-io: Lazy, composable IO effect type for functype.
Provides IO<A>, a lazy, composable effect type.
Nothing executes until .run() is called.
Examples
use IO;
let io = IOsucceed.map;
assert_eq!;
functype-io: Lazy, composable IO effect type for functype.
Provides IO<A>, a lazy, composable effect type.
Nothing executes until .run() is called.
use functype_io::IO;
let io = IO::succeed(42).map(|x| x * 2);
assert_eq!(io.run().unwrap(), 84);