Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 908 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 908 Bytes

delimcc_of_fxhandler

Delimcc primitives from OCaml 5 effect handlers. See lib/delimcc_of_fxhandler.mli.

Install

You can install the library for OCaml 5 as follows:

$ opam install delimcc_of_fxhandler

Hack

There is a test in tests/, which can be run as follows:

$ dune exec ./test/test1.exe

Note

Delimited control operators such as shift/reset and control/prompt are presented in a setting where the continuations may be resumed more than once whereas OCaml 5 delimited continuations may not be resumed more than once. To support multi-shot continuations, this library uses ocaml-multicont. Hence, the same caveats that applies to ocaml-multicont applies to this library.