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.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.