[cvs-nhc98] patch applied (hat): When pretty-printing string expressions, avoid the appearance of [...]

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:20:35 EDT 2006


Fri Jul 19 08:31:57 PDT 2002  malcolm
  * When pretty-printing string expressions, avoid the appearance of [...]
  due to cutoff depth, for instance in the following:
      ["one","tw...","t...",[...],...]
  The solution is to peek one character ahead of the cutoff depth in order
  to decide between string/list sugaring.  The example above becomes:
      ["one","two","th..","f...",...]
  given the same cutoff depth.

    M ./src/hattools/SExp.hs -56 +66


More information about the Cvs-nhc98 mailing list