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 Html ? #87

Open
johannesgerer opened this issue Jun 11, 2014 · 2 comments
Open

Instance Show Html ? #87

johannesgerer opened this issue Jun 11, 2014 · 2 comments

Comments

@johannesgerer
Copy link

Just wanted to start a discussion about a possible show instance for Html. I think it would be nice for debugging and interactive programming in ghci...

@jaspervdj
Copy link
Owner

Right. The problem is that the straightforward instance (dumping the tree with the constructors) would not be very readable at all (but perhaps useful for debugging).

I usually just use Text.Blaze.Html.Renderer.Pretty.renderHtml in GHCi. I would reckon that would also make a better Show instance... this requires moving a lot of code around to avoid orphans though.

@ghost
Copy link

ghost commented May 16, 2017

Eq would help for tests also

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

No branches or pull requests

2 participants