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:
24dc6d3
)
[project @ 2002-02-11 14:52:11 by simonmar]
author
simonmar
<unknown>
Mon, 11 Feb 2002 14:52:11 +0000
(14:52 +0000)
committer
simonmar
<unknown>
Mon, 11 Feb 2002 14:52:11 +0000
(14:52 +0000)
fromInt ==> fromIntegral
ghc/compiler/utils/Pretty.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/Pretty.lhs
b/ghc/compiler/utils/Pretty.lhs
index
c033683
..
08b3671
100644
(file)
--- a/
ghc/compiler/utils/Pretty.lhs
+++ b/
ghc/compiler/utils/Pretty.lhs
@@
-920,7
+920,7
@@
fullRender mode line_length ribbons_per_line txt end doc
best_doc = best hacked_line_length ribbon_length (reduceDoc doc)
hacked_line_length, ribbon_length :: Int
- ribbon_length = round (fromInt line_length / ribbons_per_line)
+ ribbon_length = round (fromIntegral line_length / ribbons_per_line)
hacked_line_length = case mode of { ZigZagMode -> MAXINT; other -> line_length }
display mode IBOX(page_width) IBOX(ribbon_width) txt end doc