package odig

  1. Overview
  2. Docs

cmt files.

Cmt

type t = cmt

The type for cmt files.

val read : Fpath.t -> (cmt, [ `Msg of string ]) Pervasives.result

read f reads a cmt file from f.

val name : cmt -> string

name cmt is the name of the module interface.

val cmi_digest : cmt -> digest

cmi_digest cmt is the digest of the module interface of the implementation.

val cmi_deps : cmt -> dep list

cmi_deps cmt is the list of imported module interfaces names with their digest, if known.

val path : cmt -> Fpath.t

path cm is the file path to the cmt file.