Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Lwt 5.* wont compile Resolved by installing conf-libev as suggested by ocsigen/lwt#760 * Nested calls to `Lwt_main.run` Lwt 5.* prohibits nested calls of `Lwt_main.run`. Previously every call to `Proc.run` would invoke `Lwt_main.run` which could result in nested calls. To resolve this `Proc.run` no longer calls `Lwt_main.run` rather we now have a function `start : (unit -> 'a Lwt.t) -> 'a` which is called once when the evaluator starts. This requires a change of types for `Proc.run` such that it returns a `Lwt` computation, meaning its signature is now `(unit -> 'a Lwt.t) -> 'a Lwt.t`. As a consequence it is necessary to move `value` from `evalir.ml` into the Lwt monad, because `Proc.atomically` (used in `ApplyPure`) was re-calling the main LWT entry point. Co-authored-by: Simon Fowler <[email protected]>
- Loading branch information