package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.0.tar.gz
md5=66e57ea55275903bef74d5bf36fbe0f1
sha512=1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b

doc/coq-core.lib/Hook/index.html

Module HookSource

This module centralizes the notions of hooks. Hooks are pointers that are to be set at runtime exactly once.

Sourcetype 'a t

The type of hooks containing 'a. Hooks can only be set.

Sourcetype 'a value

The content part of a hook.

Sourceval make : unit -> 'a value * 'a t

Create a new hook together with a way to retrieve its runtime value.

Sourceval get : 'a value -> 'a

Access the content of a hook. If it was not set yet, try to recover the default value if there is one.

Sourceval set : 'a t -> 'a -> unit

Register a hook. Assertion failure if already registered.

OCaml

Innovation. Community. Security.