[darcs-devel] Logging
Eric Y. Kow
eric.kow at gmail.com
Mon Sep 11 11:55:25 PDT 2006
> >I'd rather avoid putting an Int into verbose, as in my experience this
> >makes it hard to keep consistent levels of verbosity than otherwise.
> >I'd go with something more like
I have no opinion on whether having multiple levels of verbosity is a
good thing or not.
If we were to implement such a thing, though, I wonder if having as many
instances of Verbose for the degree of verbosity we want would be a sane
and workable solution.
Then we can still say stuff like
when (Verbose `elem` opts) $ blah blah
And use something like this for more degrees of verbosity
verbosity :: [DarcsFlag] -> Int
verbosity = length . filter (== Verbose)
But this might be bad for other reasons.
--
Eric Kow http://www.loria.fr/~kow
PGP Key ID: 08AC04F9 Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20060911/78431f93/attachment.pgp
More information about the darcs-devel
mailing list