tweag / cooked-validators

MIT License
39 stars 11 forks source link

Improve printing experience in the REPL #272

Closed florentc closed 1 year ago

florentc commented 1 year ago

This works around #266 by providing convenience functions (printCooked and printCookedOpt) to work in the REPL despite the lack of Show instances.

It makes it possible to use printCooked $ runMockChainFrom foo bar for instance.

It also implements PrettyCooked for the return type of runMockChain: Show a = > Either MockChainError (a, UtxoState).