improve break-by-coordinate
authorSimon Marlow <simonmar@microsoft.com>
Fri, 18 May 2007 13:45:56 +0000 (13:45 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 18 May 2007 13:45:56 +0000 (13:45 +0000)
commite560c6b5a0c2ef4437ebca0c78c1775a09ba31c9
tree99cd5c71741b881f7d6ca3c74315df1fc9ec7f40
parent180e4344fab89e3e2c1aaaaaf1509c79f4bdb562
improve break-by-coordinate
when setting a breakpoint by coordinate, if there are no spans
covering the specified coordinate, then we take the leftmost of the
spans to the right of the coordinate.  This means that ':break c' will
work if c is not a function, because the first span will be on c's
right hand side.
compiler/ghci/InteractiveUI.hs