package coq-core

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.1.tar.gz
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2

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.