Logo Xantham

OpaqueHandleSubstitution Module

Functions and values

Function or value Description

erasedTopsOf recipe

Full Usage: erasedTopsOf recipe

Parameters:
Returns: string list

The top-level module names owned by erase-with-advisory dependency rules: the package-name derivation plus any recipe-declared `modules` overrides (namespace-derived module names the derivation cannot see). References rooted at these rewrite to the `Erased.` advisory aliases; the modules themselves are dropped at emission with ledger entries.

recipe : Recipe
Returns: string list

handlesOf recipe

Full Usage: handlesOf recipe

Parameters:
Returns: (string * string) list

(topModule, handleTypeName) for every recipe entry under the opaque-handle policy WITH an overlay to land on. Handle name convention: Type ("Zod" -> "ZodType"), matching the hand-shaped overlay fragment.

recipe : Recipe
Returns: (string * string) list

rewriteTypePath handles erasedTops typePath

Full Usage: rewriteTypePath handles erasedTops typePath

Parameters:
    handles : (string * string) list
    erasedTops : string list
    typePath : TypePath

Returns: TypePath

Rewrite any TypePath rooted under an opaque-handle package's top module to the handle's path, and any path rooted under an erased top module to its `Erased.` advisory alias. Idempotent: handle and Erased paths rewrite to themselves.

handles : (string * string) list
erasedTops : string list
typePath : TypePath
Returns: TypePath

Type something to start searching.