package ostap

  1. Overview
  2. Docs

Trap constructor.

Parameters

module X : Trapped

Signature

type t = X.t

Type of trapped items.

val attach : t -> Msg.Locator.t -> unit

attach x loc attaches loc to item x.

val locate : t -> Msg.Locator.t

locate x gets the location for x.

val copier : t -> t -> unit

copier x returns copying function which will preserve trap information.

val cleanup : unit -> unit

Cleans up all the trapping information.

OCaml

Innovation. Community. Security.