blaze-html icon indicating copy to clipboard operation
blaze-html copied to clipboard

Instance Show Html ?

Open johannesgerer opened this issue 10 years ago • 2 comments

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

johannesgerer avatar Jun 11 '14 21:06 johannesgerer

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.

jaspervdj avatar Jun 12 '14 09:06 jaspervdj

Eq would help for tests also

ghost avatar May 16 '17 06:05 ghost