
On 07 November 2005 05:01, Ian Zimmerman wrote:
itz@unicorn:~/src/mindent$ ghci -ferror-spans ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.4, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help.
Loading package base-1.0 ... linking ... done. Prelude> :a SimpleHaskell Compiling Main ( SimpleHaskell.hs, interpreted )
SimpleHaskell.hs:3:0: parse error (possibly incorrect indentation) Failed, modules loaded: none. Prelude> Leaving GHCi.
wth?
It is in ghci where this option would be most useful, imho. Is it implemented?
Yes, it is implemented. Perhaps there was no reasonable span that GHC could determine for that particular error - can you show us the source file? Does 'ghc -ferror-spans' give a more detailed error? Cheers, Simon

SimpleHaskell.hs:3:0: parse error (possibly incorrect indentation)
Ian> It is in ghci where this option would be most useful, imho. Is it Ian> implemented? Simon> Yes, it is implemented. Perhaps there was no reasonable span Simon> that GHC could determine for that particular error - can you show Simon> us the source file? Does 'ghc -ferror-spans' give a more Simon> detailed error? You're right, ghc spits out the same thing. That means I have to deal with 3 possible formats of the locator :( -- A true pessimist won't be discouraged by a little success.
participants (2)
-
Ian Zimmerman
-
Simon Marlow