package coq-core

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.18.0.tar.gz
md5=8d852367b54f095d9fbabd000304d450
sha512=46922d5f2eb6802a148a52fd3e7f0be8370c93e7bc33cee05cf4a2044290845b10ccddbaa306f29c808e7c5019700763e37e45ff6deb507b874a4348010fed50

doc/coq-core.vernac/Declare/Hook/index.html

Module Declare.HookSource

Declaration hooks, to be run when a constant is saved. Use with care, as imperative effects may become not supported in the future.

Sourcetype 'a g
Sourcetype t = unit g
Sourcemodule S : sig ... end

Hooks allow users of the API to perform arbitrary actions at proof/definition saving time. For example, to register a constant as a Coercion, perform some cleanup, update the search database, etc...

Sourceval make_g : (S.t -> 'a -> 'a) -> 'a g
Sourceval make : (S.t -> unit) -> t
Sourceval call : ?hook:t -> S.t -> unit
OCaml

Innovation. Community. Security.