
13 Feb
2008
13 Feb
'08
2:43 a.m.
On Feb 13, 2008 7:45 AM, Henning Thielemann
There seems to be the need for (at least) two classes for showing values in Haskell: One class that outputs values in a way that can be copied and pasted into Haskell programs. This is useful in GHCi. Another class (say Pretty) that shows values in a prettily formatted way. Current libraries use the Show class for both applications depending on the taste of the author. A third class would be useful for outputting values with markup, say HTML or LaTeX.
I've started to do this for my own code now. I use Show as an equivalent of Python's 'repr' and pretty for displaying things to users. -- Johan