Tasks and Promises in fp-ts

from blog Alex W.'s Blog, | ↗ original
In fp-ts a Task is just a a lazy Promise, eg. () => Promise, since Promises are eager normally (ie. they execute their computation when created, not when await-ed on). See getLine in fp-ts-contrib for an example. A TaskEither is for representing Promises that can reject. The reason the tryCatch method, intended for converting a Promise to a...