cvs commit: fptools/libraries/base/GHC Real.lhs
Simon Peyton Jones
simonpj at glass.cse.ogi.edu
Tue May 25 03:11:58 EDT 2004
simonpj 2004/05/25 02:11:58 PDT
Remove spaces around the "%" when showing ratios.
This is not absolutely strictly according to the H98 report,
but it was suggested by Doug McIlroy
According to the standard prelude, a list of Ratios prints like
this: [1 % 1,1 % 2,1 % 3,1 % 4], which strongly suggests the
grouping [1 % (1,1) % (2,1) % (3,1) % 4].
Even standing alone outside of lists, the style is at odds with
mathematical custom. When did you last see 1/2 written as 1 / 2?
Revision Changes Path
1.11 +2 -1 fptools/libraries/base/GHC/Real.lhs
More information about the Cvs-libraries