| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusTx.Test.THPretty
Description
Custom width-aware pretty-printer for Template Haskell declarations.
Replaces TH.pprint + formatTHOutput for golden test output, using the
prettyprinter library's Wadler/Lindig algorithm to produce readable output
that respects a configurable page width (default 100 columns).
Synopsis
- pprintDecs ∷ [Dec] → String
Documentation
pprintDecs ∷ [Dec] → String Source #
Pretty-print a list of TH declarations with width-aware layout.