19 Dec 17:53
How to make Prelude.read: no parse more verbose ...
Georg Sauthoff <g_sauthoff <at> web.de>
2007-12-19 16:53:18 GMT
2007-12-19 16:53:18 GMT
Hi, I try to debug some existing Haskell-Code. Out of the blue I get a 'progname: Prelude.read: no parse' error message from GHC. Great. Well, the code includes # grep '\<read\>' *| wc -l 23 (sic!) calls to the read fn. 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. Really crazy would be the possibility to print out a backtrace, if some (library) function calls error ... Best regards Georg -- -- Fortune : 'Real programmers don't comment their code. It was hard to write, it should be hard to understand.' ;)
RSS Feed