On 11/14/06, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote:

So, further work:

   * have 'assert' respected when -O is on

   * think up a technique for splicing in 'assert' via rewrite rules (or TH
   ...) such that the src locations are expanded after the rewrite, and
   correctly reflect the location of the splice point.

Any ideas?

Overall I like what you've said.  But when I read it, I wondered, "Why
do I have to fix every function which calls error?  Why can't we just
fix error?"  We discussed this a bit in #haskell and it was pointed
out that, that would only give us the line number of where error is
defined.  Someone mentoined stack traces aren't so great in haskell,
but Cale sugested we try to get a "cost-center trace" plus line
numbers?

Even though __FILE__ and __LINE__ are a bit simplistic in C they are
quite handy for things like this.

$0.02,
Jason
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to