Unit_info.Artifact(3)
π Unit_info.Artifact β from the OCaml library π
okay bestie, this is the Unit_info.Artifact page from the OCaml library, and it's literally all about build artifacts. no cap, it's short and iconic β¨
β¨ NAME β¨
Unit_info.Artifact β Build artifacts π οΈπ
π§Έ Module π§Έ
the module line is exactly Module Unit_info.Artifact β main character energy, fr fr π
π Documentation π
the docs open with exactly:
Module Artifact : sig end
π Build artifacts π
type t
t is the metadata for a single compilation artifact, and the metadata includes these exact three lines, bestie β copied verbatim so nothing gets lost π:
-the module name associated to the artifact
-the filesystem path
-the input source file if it exists
so yes: the module name, the filesystem path, and the input source file if it exists. that's the whole vibe check πΈ
π val source_file : t -> Unit_info.filename option
source_file a is the source file of a if it exists. literally only if it exists β no guessing, no cap π
π¦ val prefix : t -> Unit_info.file_prefix
prefix a is the filename prefix of the compilation artifact. cute little prefix moment β¨
π val filename : t -> Unit_info.filename
filename u is the filesystem path for a compilation artifact. yes, it uses u in the docs β we keep it exactly, periodt π
π val modname : t -> Unit_info.modname
modname a is the module name of the compilation artifact. iconic, short, slay π
π val from_filename : Unit_info.filename -> t
from_filename filename reconstructs the module name lax_modname_from_source filename associated to the artifact filename . yes, that space before the period is exactly how it's written β we don't "fix" it, bestie ππ
xoxo, your Unix bestie π
β from OCamldoc, dated 2026-06-22, for Unit_info.Artifact(3) π«Άβ¨
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms