GHCi and line numbers (with ghc-7.4.1)

Simon Hengel sol at
Tue Mar 20 21:12:02 CET 2012

ghc --interactive now behaves different in regards to line numbers in
error messages than previous versions.

They are now incremented with each evaluated expression.

    $ ghc --interactive -ignore-dot-ghci
    Prelude> foo

    <interactive>:2:1: Not in scope: `foo'
    Prelude> bar

    <interactive>:3:1: Not in scope: `bar'

Is there a way to disable this (or alternatively reset the counter for a
running session)?


More information about the Glasgow-haskell-users mailing list