Georg Sauthoff | 21 Dec 15:18
Picon

Re: How to make Prelude.read: no parse more verbose ...

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 ...

Best regards
Georg Sauthoff
--

-- 
Fortune : 'Real programmers don't comment their code.
           It was hard to write, it should be hard to understand.' ;)

Gmane