Re: [Haskell] Data.Generics.gzip3 anyone?

2009-08-08 Thread David Fox
Ok, here is another piece of the three way merging puzzle. The gzip3 function can do three way merging when there are no conflicts that need to be resolved manually. When there are such conflicts we need a user interface which displays the common ancestor, the two alternative edits, and provides

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-08-08 Thread David Fox
On Sat, Aug 8, 2009 at 4:05 PM, David Fox dds...@gmail.com wrote: Ok, here is another piece of the three way merging puzzle. The gzip3 function can do three way merging when there are no conflicts that need to be resolved manually. When there are such conflicts we need a user interface

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-05 Thread David Fox
I definitely think these functions should be added to syb. I certainly could not have written them myself without hours, perhaps days, of study. 2009/6/2 José Pedro Magalhães j...@cs.uu.nl Hello, Would there be interest in having this function added to the SYB library? Thanks, Pedro On

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-03 Thread David Fox
Wait, its much funnier than that. It wouldn't merge the three revisions because they always differed in one field - the revision number! On Tue, Jun 2, 2009 at 4:57 PM, David Fox dds...@gmail.com wrote: On Tue, Jun 2, 2009 at 1:13 PM, David Fox dds...@gmail.com wrote: On Mon, Jun 1, 2009

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-02 Thread José Pedro Magalhães
Hello, Would there be interest in having this function added to the SYB library? Thanks, Pedro On Tue, Jun 2, 2009 at 00:40, Ralf Laemmel rlaem...@gmail.com wrote: Thank you! What I have in mind is three way merging - you have two revisions based on the same original value, and you need

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-02 Thread David Fox
On Mon, Jun 1, 2009 at 3:40 PM, Ralf Laemmel rlaem...@gmail.com wrote: Thank you! What I have in mind is three way merging - you have two revisions based on the same original value, and you need to decide whether they can be merged automatically or they need to be merged by a user. You

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-02 Thread David Fox
On Tue, Jun 2, 2009 at 1:13 PM, David Fox dds...@gmail.com wrote: On Mon, Jun 1, 2009 at 3:40 PM, Ralf Laemmel rlaem...@gmail.com wrote: Thank you! What I have in mind is three way merging - you have two revisions based on the same original value, and you need to decide whether they can

[Haskell] Data.Generics.gzip3 anyone?

2009-06-01 Thread David Fox
Is there a Scrap Your Boilerplate guru out there who could whip up a three argument version of gzip for me? ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-01 Thread Ralf Laemmel
On Mon, Jun 1, 2009 at 8:20 PM, David Fox da...@seereason.com wrote: Is there a Scrap Your Boilerplate guru out there who could whip up a three argument version of gzip for me? This can be done of course (untested but type-checked code follows). Left wondering what the scenario might be :-)

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-01 Thread Ralf Laemmel
Thank you!  What I have in mind is three way merging - you have two revisions based on the same original value, and you need to decide whether they can be merged automatically or they need to be merged by a user.  You only have a real conflict when both revisions differ from the original and

Re: [Haskell] Data.Generics.gzip3 anyone?

2009-06-01 Thread David Fox
On Mon, Jun 1, 2009 at 3:40 PM, Ralf Laemmel rlaem...@gmail.com wrote: Thank you! What I have in mind is three way merging - you have two revisions based on the same original value, and you need to decide whether they can be merged automatically or they need to be merged by a user. You