| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Keiki.Render.Pretty
Description
Pure, domain-readable pretty-printer for keiki's predicate, term,
and update syntax trees (HsPred, Term, Update). Produces
Text. No solver, no IO. Shared by the Mermaid behavioral
renderer (Mermaid) and the sibling edge-inspector /
multiline-label renderers.
Two things are deliberately marked rather than invented: applied opaque
Haskell functions render as fn(...), and explicit display-opaque literal
values render as lit. Ordinary TLit values use their retained Show
evidence.
Documentation
prettyUpdate :: forall (rs :: [Slot]) (w :: [Symbol]) ci. Update rs w ci -> Text Source #
Render an Update as domain-readable Text. UKeep renders
(keep); USet renders slot := term (the slot name comes from the
name-tagged IndexN via indexNName); UCombine joins comma-separated.