X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FInteractiveUI.hs;h=5f9f74fab62cbf02d7e715f8ba4ca2f7d873d6a2;hb=3d0ad8a75e9874e222e2e149b8914e2ed74af7b8;hp=4fb1ad34fe5ffc01606a0bf31a107667c44c096b;hpb=4a6a64b9f9437e40706368bf288d62f1aa5060a5;p=ghc-hetmet.git diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 4fb1ad3..5f9f74f 100644 --- 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 ]