Open effectfully opened 5 years ago
Add a separate pretty printing pass for golden testing.
@effectfully was the pretty printing library released?
Nope, but we can directly depend on the prettyprinter-configurable
subfolder of the Plutus repo.
Urgh, got hit by https://github.com/commercialhaskell/stack/issues/5004
Do you have anything against git submodules?
Currently we just dump expressions as
String
s using some custom functions. We should use a proper pretty-printing library and be agnostic about the final string type. Precedence and associativity of operators should also be taken into account.I've started writing a suitable library (mostly by extracting various pieces from the
plutus-core
codebase).