Skip to main content

Module join

Module join 

Source
Expand description

Per-module exports and joining them back into one.

Functions§

hash
Hex blake3 of an export’s bytes, as per-module metas name their imports.
join
Join per-module files into one export on sink, in the order order gives. Names, levels and expressions two modules share appear once per module, a declaration two modules make appears once.
join_in
Join files in an order order gave, or one view gave for root.
join_view
Join the files view picks for root.
meta
The meta object of an NDJSON or blean export, read from its first record.
order
The order to join per-module files in, imports first. Fails unless every import of every file is among them with the hash it was exported against, or is the module whose interface has that hash.
split
Export every module of env to its own file in dir, named after the module.
split_each
split or split_interfaces, calling each after every file written.
split_interfaces
Like split, with each module written against what the module system shows it and its interface in dir/public.
view
The files to join for root as Lean showed it its imports, imports first.