Make showSDoc and friends respect -dppr-cols
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 10 Jan 2014 18:14:57 +0000 (18:14 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 10 Jan 2014 18:16:52 +0000 (18:16 +0000)
commit08a3536e4246e323fbcd8040e0b80001950fe9bc
tree2fd2cb3479cbebaf0cde382f0cba81c8633ae9b4
parent17a3dacba03f7a800444c135e93ce1b81a89e158
Make showSDoc and friends respect -dppr-cols

Previously they just used a fixed width of 100, ignoring
-dppr-cols.  I think this dates back to a time when
the flag didn't exist, or wasn't conveniently available.

Thanks to Andrew Gibiansky for pointing this out.
compiler/main/DynFlags.hs
compiler/utils/Outputable.lhs
compiler/utils/Pretty.lhs