package rea

  1. Overview
  2. Docs

A self tail recursive interpreter usable with Js_of_ocaml.

type r

Abstract higher-kinded effect representation type constructor.

class 'D sync : object ... end

Base synchronous interpreter dictionary.

val sync : 'D sync as 'D

Default sync dictionary.

val run : 'D sync as 'D -> (r, 'e, 'a, 'D) er -> ('e, 'a) res

run d sync executes the sync effect with the given interpreter d and returns its result.

class 'D async : object ... end

Base asynchronous interpreter dictionary.

val async : 'D async as 'D

Default async dictionary.

val spawn : 'D -> (r, nothing, unit, 'D) er -> unit

spawn d async queues the async effect for execution using the given interpreter d.

OCaml

Innovation. Community. Security.