package rocq-runtime

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Names.DirPathSource

Sourcetype t

Type of directory paths. Essentially a list of module identifiers. The order is reversed to improve sharing. E.g. A.B.C is "C";"B";"A"

Sourceval equal : t -> t -> bool

Equality over directory paths.

Sourceval compare : t -> t -> int

Comparison over directory paths.

Sourceval hash : t -> int

Hash over directory paths.

Sourceval make : Id.t list -> t

Create a directory path. (The list must be reversed).

Sourceval repr : t -> Id.t list

Represent a directory path. (The result list is reversed).

Sourceval empty : t

The empty directory path.

Sourceval is_empty : t -> bool

Test whether a directory path is empty.

Sourceval dummy : t

Used in Safe_typing.empty_environment and similar

Sourceval hcons : t Hashcons.f

Hashconsing of directory paths.

Sourceval to_string : t -> string

Print non-empty directory paths as "root.module.submodule"

Sourceval print : t -> Pp.t