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

instance Show for PackageName #694

Closed

Conversation

peterbecich
Copy link

@peterbecich peterbecich commented Jul 21, 2024

I think this will assist with any debugging that uses PackageName, for instance in Spago: purescript/spago#1253

@f-f
Copy link
Member

f-f commented Jul 21, 2024

Show instances were removed in #538, and while I sometimes do miss them myself, I think that having Debug instances would be best. But @thomashoneyman might have more input on this

We have unsafeLog for quickly printing things out in Spago, and that has been enough for my dev needs

@f-f f-f closed this Jul 21, 2024
@thomashoneyman
Copy link
Member

I'm happy to add Debug instances. We ran into several issues where we'd inadvertently Show data types in the registry when we really ought to have been pretty-printing them for display, so we removed it from the codebase. Pretty much everything of significance in the registry is accompanied by a print function for display and a JSON encoder/decoder , so I generally use those if I need to 'show' a value for debugging purposes. We also leverage functions like unsafeStringify for testing. Perhaps one of these is a suitable option for you?

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