package coq-core

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.1.tar.gz
md5=13d2793fc6413aac5168822313e4864e
sha512=ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42

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.