projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d502cd0
)
Make showSDoc and printDoc use the same default width (100)
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 14 Jul 2008 08:36:54 +0000
(08:36 +0000)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/compiler/utils/Pretty.lhs
b/compiler/utils/Pretty.lhs
index
5219484
..
9041803
100644
(file)
--- a/
compiler/utils/Pretty.lhs
+++ b/
compiler/utils/Pretty.lhs
@@
-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