[Haskell-cafe] Re: How to make Prelude.read: no parse more verbose
g_sauthoff at web.de
Fri Dec 21 09:18:27 EST 2007
Ketil Malde <ketil+haskell at ii.uib.no> wrote:
> Georg Sauthoff <g_sauthoff at web.de> writes:
>> Well, how do I compile a Haskell program in such a way, that I
>> get a useful error message from read? I mean, like the
>> filename/linenumber of the calling expression for starters.
> It's dirty, it's mean, but you can use CPP. (On one line, and with
> ghc -cpp):
Thanks! Indeed, it looks mean, but it helps, because I am
currently using ghc < 6.8 ...
Fortune : 'Real programmers don't comment their code.
It was hard to write, it should be hard to understand.' ;)
More information about the Haskell-Cafe