
21 Dec
2007
21 Dec
'07
9:18 a.m.
Ketil Malde
Georg Sauthoff
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.' ;)