package algaeff

  1. Overview
  2. Docs

Signatures of read effects.

include Param
type env

The type of environments.

val read : unit -> env

Read the environment.

val scope : (env -> env) -> (unit -> 'a) -> 'a

scope f t runs the thunk t under the new environment that is the result of applying f to the current environment.

val run : env:env -> (unit -> 'a) -> 'a

run t runs the thunk t which may perform reading effects.

OCaml

Innovation. Community. Security.