This repository has been archived by the owner on May 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve task_either tryCatch lazily
Unlike fp-ts the task_either tryCatch is meant to lazily evaluate a thunk within a try catch block, deferring the computation. The fp-ts implementation is covered by the fromFailableTask constructor. This fix ensures that tryCatch evaluates lazily by wrapping it in its own thunk. Note: Will need to add this to the trampoline impl later. fixes #2
- Loading branch information