package odig

  1. Overview
  2. Docs

cmo files.

Cmo

type t = cmo

The type for cmo files.

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

read f reads a cmo file from f.

val name : cmo -> string

name cmo is the name of the module implementation.

val cmi_digest : cmo -> digest

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

val cmi_deps : cmo -> dep list

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

val cma : cmo -> cma option

cma cmo is an enclosing cma file (if any).

val path : cmo -> Fpath.t

path cmo is the file path to the cmo file. Note that this is a cma file if cma cmo is Some _.

Derived information

val to_cmi_dep : cmo -> dep

to_cmi_dep cmo is cmo as a cmi dependency.