Simon Marlow ([EMAIL PROTECTED]) wrote:
: You're right in saying that errors can be generated at certain points in the
: source file, but these points (the beginning of a definition, a case branch,
: a type signature, a guard, an 'if' expression, etc.) have nothing to do with
: definition vs. call-sites. If you have an example of an error message that
: is being wrongly attributed, could you send it please?
I did not (mean to) say that errors were wrongly attributed.
Sorry if I caused confusion.
: Actually, when using cpp, the __LINE__ and __FILE__ macros should expand to
: the right thing (this is what GHC itself uses to generate accurate locations
: for assertion failures).
That's cool. I'll try that. BTW when I wrote my email
I wasn't aware of fact that ghc had assertions. I think
that they would suit me perfectly well for my needs.
Thanks.
Regards,
Marc