(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
open Names open Environ open Constrexpr open Typeclasses
(** Instance declaration *)
val declare_instance : ?warn:bool -> env -> Evd.evar_map ->
hint_info option -> Hints.hint_locality -> GlobRef.t -> unit (** Declares the given global reference as an instance of its type. Does nothing — or emit a “not-a-class” warning if the [warn] argument is set —
when said type is not a registered type class. *)
val existing_instance : ?loc:Loc.t -> Hints.hint_locality -> GlobRef.t -> Vernacexpr.hint_info_expr option -> unit (** globality, reference, optional priority and pattern information *)
val set_typeclass_transparency
: locality:Hints.hint_locality
-> Evaluable.t list
-> bool
-> unit
val set_typeclass_transparency_com
: locality:Hints.hint_locality
-> Libnames.qualid list
-> bool
-> unit
val set_typeclass_mode
: locality:Hints.hint_locality
-> GlobRef.t
-> Hints.hint_mode list
-> unit
(** For generation on names based on classes only *)
val refine_att : bool Attributes.attribute
(** {6 Low level interface used by Add Morphism, do not use } *)
module Internal : sig val add_instance : typeclass -> hint_info -> Hints.hint_locality -> GlobRef.t -> unit end
(** A configurable warning to output if a default mode is used for a class declaration. *) val warn_default_mode : ?loc:Loc.t -> (GlobRef.t * Hints.hint_mode list) -> unit
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.