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