[Haskell-cafe] Re: how do you debug programs?
David Roundy
droundy at darcs.net
Wed Sep 6 14:08:05 EDT 2006
On Wed, Sep 06, 2006 at 09:56:17AM -0700, Jason Dagit wrote:
> Or maybe even more extreme you could use template haskell or the c
> preprocessor to fill in the line number + column.
Which is precisely what darcs does for fromJust (which we use a lot):
we define a C preprocessor macro fromJust. It's ugly, but beats any
other choice I'm aware of. I wish that built in functions that call
error could be automatically this way...
--
David Roundy
More information about the Haskell-Cafe
mailing list