Fix off-by-one error in GHCi line reporting (Trac #10578)
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Thu, 16 Jul 2015 22:06:28 +0000 (00:06 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 16 Jul 2015 22:08:10 +0000 (00:08 +0200)
commita5e9da8feb5110ab8ee8fe3821e6b6d53946f983
treeec6959c47ef3eb67bec380b09a9e661c51e82f79
parent2c9de9c9a3df8e855c883139b0cb2fd41801bd67
Fix off-by-one error in GHCi line reporting (Trac #10578)

Test Plan: I couldn't add tests because apparently line number
reporting was already working correctly when loading script files. I
don't know how to test by running commands using stdin, is this
supported?

Reviewers: austin, thomie, bgamari

Reviewed By: thomie, bgamari

Subscribers: hvr, thomie

Differential Revision: https://phabricator.haskell.org/D1067
48 files changed:
ghc/InteractiveUI.hs
testsuite/tests/ghci.debugger/scripts/break003.stderr
testsuite/tests/ghci.debugger/scripts/break006.stderr
testsuite/tests/ghci.debugger/scripts/print019.stderr
testsuite/tests/ghci/prog009/ghci.prog009.stderr
testsuite/tests/ghci/prog013/prog013.stderr
testsuite/tests/ghci/scripts/Defer02.stderr
testsuite/tests/ghci/scripts/T10248.stderr
testsuite/tests/ghci/scripts/T2182ghci.stderr
testsuite/tests/ghci/scripts/T2182ghci2.stderr
testsuite/tests/ghci/scripts/T2816.stderr
testsuite/tests/ghci/scripts/T4127a.stderr
testsuite/tests/ghci/scripts/T5564.stderr
testsuite/tests/ghci/scripts/T6027ghci.stdout
testsuite/tests/ghci/scripts/T7730.stdout
testsuite/tests/ghci/scripts/T7872.stdout
testsuite/tests/ghci/scripts/T7873.stdout
testsuite/tests/ghci/scripts/T8485.stderr
testsuite/tests/ghci/scripts/T8579.stdout
testsuite/tests/ghci/scripts/T8649.stderr
testsuite/tests/ghci/scripts/T8959.stderr
testsuite/tests/ghci/scripts/T9140.stdout
testsuite/tests/ghci/scripts/T9293.stderr
testsuite/tests/ghci/scripts/ghci012.stdout
testsuite/tests/ghci/scripts/ghci040.stdout
testsuite/tests/ghci/scripts/ghci041.stdout
testsuite/tests/ghci/scripts/ghci042.stdout
testsuite/tests/ghci/scripts/ghci044.stderr
testsuite/tests/ghci/scripts/ghci047.stderr
testsuite/tests/ghci/scripts/ghci048.stderr
testsuite/tests/ghci/scripts/ghci050.stderr
testsuite/tests/ghci/scripts/ghci051.stderr
testsuite/tests/ghci/scripts/ghci051.stdout
testsuite/tests/ghci/scripts/ghci052.stderr
testsuite/tests/ghci/scripts/ghci053.stderr
testsuite/tests/ghci/scripts/ghci057.stderr
testsuite/tests/ghci/should_run/T9914.stdout
testsuite/tests/ghci/should_run/T9915.stderr
testsuite/tests/patsyn/should_run/ghci.stderr
testsuite/tests/patsyn/should_run/ghci.stdout
testsuite/tests/safeHaskell/ghci/p10.stderr
testsuite/tests/safeHaskell/ghci/p13.stderr
testsuite/tests/safeHaskell/ghci/p14.stderr
testsuite/tests/safeHaskell/ghci/p16.stderr
testsuite/tests/safeHaskell/ghci/p4.stderr
testsuite/tests/safeHaskell/ghci/p6.stderr
testsuite/tests/safeHaskell/ghci/p9.stderr
testsuite/tests/th/T7276a.stdout