[darcs-devel] [patch525] get rid of the ($-) operator (and 3 more)

Ganesh Sittampalam bugs at darcs.net
Tue Jan 4 23:20:28 UTC 2011


New submission from Ganesh Sittampalam <ganesh at earth.li>:

Hi,

I'm not going to self-screen this immediately (apart from the issue1988
cleanup), because I'd like some feedback on whether the change is a good
thing.

The basic idea is to make it easier to have repository operations
that aren't polymorphic on every kind of patch type. This need
comes up in the existing code, where for example convert currently
hacks around it with unsafeCoerce; and it's also something I want for
rebase.

So instead of the $- operator, callers of withRepoLock etc pass
in a "job". The old kind of polymorphic job is a "RepoJob", but
I then go on to add V1Job and V2Job to deal with what convert needs.

Cheers,

Ganesh

4 patches for repository http://darcs.net/screened:

Mon Dec 13 18:51:11 GMT 2010  Ganesh Sittampalam <ganesh at earth.li>
  * get rid of the ($-) operator
  
  Wrap up the Rank2 types of the repository handling operations in a
  datatype rather than requiring the specialised ($-). This helps with a
  planned change to add more functionality to these operations.
  

Mon Dec 13 19:02:59 GMT 2010  Ganesh Sittampalam <ganesh at earth.li>
  * generic job transformation function

Mon Dec 13 19:13:54 GMT 2010  Ganesh Sittampalam <ganesh at earth.li>
  * issue1988 cleanup: accept warning

Tue Dec 21 19:22:15 GMT 2010  Ganesh Sittampalam <ganesh at earth.li>
  * add new types of repository job to clean up Convert a bit
  Still not pretty, but at least the unsafeCoerce# is further down!

----------
files: get-rid-of-the-____-operator.dpatch, unnamed
messages: 13447
nosy: ganesh
status: needs-review
title: get rid of the ($-) operator (and 3 more)

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch525>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get-rid-of-the-____-operator.dpatch
Type: text/x-darcs-patch
Size: 154446 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20110104/bae9ef90/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed
Type: application/octet-stream
Size: 5 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20110104/bae9ef90/attachment-0001.obj>


More information about the darcs-devel mailing list