Make showSDoc and printDoc use the same default width (100)
authorSimon Marlow <marlowsd@gmail.com>
Mon, 14 Jul 2008 08:36:54 +0000 (08:36 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 14 Jul 2008 08:36:54 +0000 (08:36 +0000)
For some reason they were different (100/120), which made some tests
produce different output when I moved from showSDoc to printDoc for
error messages.

compiler/utils/Pretty.lhs

index 5219484..9041803 100644 (file)
@@ -994,7 +994,7 @@ spaces n | n <=# _ILIT(0) = ""
 
 \begin{code}
 pprCols :: Int
-pprCols = 120 -- could make configurable
+pprCols = 100 -- could make configurable
 
 -- NB. printDoc prints FastStrings in UTF-8: hPutFS below does no decoding.
 -- This is what we usually want, because the IO library has no encoding