package rea

  1. Overview
  2. Docs

Module Rea.TailrecSource

A self tail recursive interpreter usable with Js_of_ocaml.

Sourcetype r

Abstract higher-kinded effect representation type constructor.

Sourceclass 'D sync : object ... end

Base synchronous interpreter dictionary.

Sourceval sync : 'D sync as 'D

Default sync dictionary.

Sourceval 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.

Sourceclass 'D async : object ... end

Base asynchronous interpreter dictionary.

Sourceval async : 'D async as 'D

Default async dictionary.

Sourceval 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.