Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve printing experience in the REPL #272

Merged
merged 3 commits into from
Feb 15, 2023
Merged

Conversation

florentc
Copy link
Member

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).

@florentc florentc requested a review from gabrielhdt February 15, 2023 11:39
@florentc florentc force-pushed the fc/repl-print-convenience branch from bb1ad0e to 8c9c60e Compare February 15, 2023 11:56
@florentc florentc force-pushed the fc/repl-print-convenience branch from 8c9c60e to 08de093 Compare February 15, 2023 11:57
Copy link
Contributor

@gabrielhdt gabrielhdt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and hurray for unicode

@florentc florentc merged commit e2ae26f into main Feb 15, 2023
@florentc florentc deleted the fc/repl-print-convenience branch February 15, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants