package delimcc_of_fxhandler

  1. Overview
  2. Docs
On This Page
  1. Usage
  2. Note
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

delimcc_of_fxhandler

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

Usage

You can install the library for OCaml 5 as follows:

$ git clone https://github.com/kayceesrk/delimcc_of_fxhandler
$ cd delimcc_of_fxhandler
$ opam pin .

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.

OCaml

Innovation. Community. Security.