| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Elara.AST.Phases.Frontend.Pretty
Contents
Description
Round-trip pretty-printing for Frontend AST.
Pretty instances here produce fully-parenthesized output suitable for
property tests that check parse . pretty == id.
These are necessarily orphan instances (Frontend defined in parent module,
Pretty class defined in Elara.Data.Pretty).
Documentation
prettyExprRoundTrip :: PrettyPhaseLoc Frontend loc => Expr loc Frontend -> Doc AnsiStyle Source #
prettyPatternRoundTrip :: PrettyPhaseLoc Frontend loc => Pattern loc Frontend -> Doc AnsiStyle Source #