Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
66b17554
Commit
66b17554
authored
Jul 31, 2008
by
batterseapower
Browse files
Follow FastString changes in Pretty
parent
befdf6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/utils/Pretty.lhs
View file @
66b17554
...
...
@@ -162,7 +162,7 @@ module Pretty (
empty, isEmpty, nest,
text, char
, ftext, ptext,
char, text
, ftext, ptext,
int, integer, float, double, rational,
parens, brackets, braces, quotes, doubleQuotes,
semi, comma, colon, space, equals,
...
...
@@ -531,7 +531,6 @@ union_ p q = Union (LOCAL_ASSERT( _ok p ) p) (LOCAL_ASSERT( _ok q ) q)
_ok _ = False
\end{code}
Notice the difference between
* NoDoc (no documents)
* Empty (one empty document; no height and no width)
...
...
@@ -557,7 +556,7 @@ text s = case iUnbox (length s) of {sl -> textBeside_ (Str s) sl Empty}
ftext :: FastString -> Doc
ftext s = case iUnbox (lengthFS s) of {sl -> textBeside_ (PStr s) sl Empty}
ptext :: LitString -> Doc
ptext s_= case iUnbox (
strL
ength s) of {sl -> textBeside_ (LStr s sl) sl Empty}
ptext s_= case iUnbox (
l
ength
LS
s) of {sl -> textBeside_ (LStr s sl) sl Empty}
where s = {-castPtr-} s_
#if defined(__GLASGOW_HASKELL__)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment