Module Unit_info

type intf_or_impl =
  1. | Intf
  2. | Impl
type modname = string
type filename = string
type file_prefix = string
type error =
  1. | Invalid_encoding of filename
exception Error of error
val modulize : string -> modname
val normalize : string -> string
val lax_modname_from_source : filename -> modname
val strict_modname_from_source : filename -> modname
val is_unit_name : modname -> bool
type t
val source_file : t -> filename
val prefix : t -> file_prefix
val modname : t -> modname
val kind : t -> intf_or_impl
val check_unit_name : t -> unit
val make : ?check_modname:bool -> source_file:filename -> intf_or_impl -> file_prefix -> t
module Artifact : sig ... end
val cmi : t -> Artifact.t
val cmo : t -> Artifact.t
val cmx : t -> Artifact.t
val obj : t -> Artifact.t
val cmt : t -> Artifact.t
val cmti : t -> Artifact.t
val annot : t -> Artifact.t
val companion_obj : Artifact.t -> Artifact.t
val companion_cmt : Artifact.t -> Artifact.t
val companion_cmi : Artifact.t -> Artifact.t
val mli_from_source : t -> filename
val mli_from_artifact : Artifact.t -> filename
val is_cmi : Artifact.t -> bool
val find_normalized_cmi : t -> Artifact.t