GHCi and line numbers (with ghc-7.4.1)

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


Hi,
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)?

Cheers,
Simon



More information about the Glasgow-haskell-users mailing list