Open johannesgerer opened 10 years ago
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.
Eq would help for tests also
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...