showing Ratios

Evan Laforge qdunkan at gmail.com
Sun Feb 28 22:03:44 EST 2010


This must be explained somewhere, but I can't find it.  I've always
been curious why ghc's Show avoids all unnecessary spaces.  It's
contrary to how most people format source so it can't be pasted into
source, and can be hard to read.  Other languages tend to put in
spaces.  I don't see anything in
http://www.haskell.org/onlinereport/basic.html specifying the
whitespace usage of Show.  I notice that the examples don't use
spaces, but those are just examples, right?

What's the rationale?


More information about the Haskell-prime mailing list