projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9c54ee0
)
eliminate a crash when trying to use :break on a compiled module (test: break007)
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 9 May 2007 13:24:24 +0000
(13:24 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 9 May 2007 13:24:24 +0000
(13:24 +0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
4fb1ad3
..
5f9f74f
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-1793,7
+1793,7
@@
mkTickArray ticks
[ (line, (nm,span)) | (nm,span) <- ticks,
line <- srcSpanLines span ]
where
- max_line = maximum (map GHC.srcSpanEndLine (map snd ticks))
+ max_line = foldr max 0 (map GHC.srcSpanEndLine (map snd ticks))
srcSpanLines span = [ GHC.srcSpanStartLine span ..
GHC.srcSpanEndLine span ]