GHCi and line numbers (with ghc-7.4.1)

Simon Marlow marlowsd at gmail.com
Thu Mar 22 12:13:48 CET 2012


On 20/03/2012 20:12, Simon Hengel wrote:
> 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)?

Sorry, there's no way to reset it at the moment.  What do you need that for?

Cheers,
	Simon



More information about the Glasgow-haskell-users mailing list