
8 Mar
2013
8 Mar
'13
4:31 p.m.
On Sat, 9 Mar 2013, Ivan Lazar Miljenovic wrote:
The pretty-printer is doing what it _should_ be doing here (namely indenting everything in that block); to get rid of unneeded trailing whitespace the only thing I can think of is to post-process the output (e.g.: unlines . reverse . dropWhile isSpace . reverse . lines).
You certainly mean unlines . map (reverse . dropWhile isSpace . reverse) . lines Btw. (dropWhileRev isSpace) would be lazier: http://hackage.haskell.org/packages/archive/utility-ht/0.0.8/doc/html/Data-L...