Re: showing Ratios

2010-03-02 Thread Jon Fairbairn
Evan Laforge writes: > On Mon, Mar 1, 2010 at 1:29 AM, Jon Fairbairn > wrote: >> Iavor Diatchki >> writes: >> >>> Hi, >>> I am not sure about the rationale but if you need a program/library >>> which re-renders Show-able values with more spaces, so that they are >>> more human readable,  I wrot

Re: showing Ratios

2010-03-01 Thread Evan Laforge
On Mon, Mar 1, 2010 at 1:29 AM, Jon Fairbairn wrote: > Iavor Diatchki > writes: > >> Hi, >> I am not sure about the rationale but if you need a program/library >> which re-renders Show-able values with more spaces, so that they are >> more human readable,  I wrote one >> (http://hackage.haskell.o

Re: showing Ratios

2010-03-01 Thread Jon Fairbairn
Iavor Diatchki writes: > Hi, > I am not sure about the rationale but if you need a program/library > which re-renders Show-able values with more spaces, so that they are > more human readable, I wrote one > (http://hackage.haskell.org/package/pretty-show). I find it very > useful for debugging.

Re: showing Ratios

2010-02-28 Thread Evan Laforge
On Sun, Feb 28, 2010 at 7:56 PM, Iavor Diatchki wrote: > Hi, > I am not sure about the rationale but if you need a program/library > which re-renders Show-able values with more spaces, so that they are > more human readable,  I wrote one > (http://hackage.haskell.org/package/pretty-show).  I find

Re: showing Ratios

2010-02-28 Thread Iavor Diatchki
Hi, I am not sure about the rationale but if you need a program/library which re-renders Show-able values with more spaces, so that they are more human readable, I wrote one (http://hackage.haskell.org/package/pretty-show). I find it very useful for debugging. -Iavor On Sun, Feb 28, 2010 at 7:03

Re: showing Ratios

2010-02-28 Thread Evan Laforge
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

Re: showing Ratios

2010-02-25 Thread Ian Lynagh
On Thu, Feb 25, 2010 at 09:54:04AM -0500, Doug McIlroy wrote: > Very minor library change to promote readability of output: > eliminate spaces in the string representation of Ratios. > > Currently, a Ratio appears as a pair separated by " % ". > The spaces that flank "%" make for confusing output.

showing Ratios

2010-02-25 Thread Doug McIlroy
Very minor library change to promote readability of output: eliminate spaces in the string representation of Ratios. Currently, a Ratio appears as a pair separated by " % ". The spaces that flank "%" make for confusing output. Example: [1 % 2,1 % 3,1 % 4,1 % 5,1 % 6] The spaces suggest t