[darcs-devel] darcs patch: allow submitting patches via HTTP POST in addition to ...
Eric Kow
eric.kow at gmail.com
Tue Apr 1 13:54:17 UTC 2008
> I actually really dislike how we pass [DarcsFlag] all over the place, as
> it's a very un-typed approach. You can't tell what information you're
> passing in, or why, or what effect it will have.
I wonder if the implicit parameters extension could be useful for
helping in such a cleanup?
http://www.cs.chalmers.se/~rjmh/Globals.ps
The idea is that we could have the granular ADTs as you suggest, but
pass them in via implicit parameters. Code written like this seems
like it would be a little bit easier to modify: we just chuck another
implicit parameter in the type signature [although this may go a far
up the chain of calling functions]).
And we could avoid making yet another monad. The extension seems
simple enough to understand anyway. At least, I could understand it,
which is a good sign.
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Implicit.hs
Type: text/x-haskell
Size: 173 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20080401/aa2ab64a/attachment.hs
More information about the darcs-devel
mailing list