Josh Vera
|
df31170dc8
|
Merge pull request #107 from github/generalize-patch
Generalize Patch
|
2015-10-14 16:47:57 -04:00 |
|
Rob Rix
|
34258b98b8
|
Generalize Patch from Fix<A> to A .
|
2015-10-14 12:17:39 -04:00 |
|
Rob Rix
|
964204a3e6
|
Rename the PatchConvertible associated type to Element.
|
2015-10-14 12:02:57 -04:00 |
|
Rob Rix
|
7786b8c40f
|
Remove the Patch.cost property.
|
2015-10-13 18:20:11 -04:00 |
|
Rob Rix
|
5fc16e86f8
|
Patch has a JSON property when A is CustomJSONConvertible.
|
2015-10-09 09:06:06 -05:00 |
|
Rob Rix
|
ea29b2846a
|
Construct Patch.JSON using dictionary literals.
|
2015-10-09 08:43:57 -04:00 |
|
Rob Rix
|
4b2fea5d13
|
Change Patch’s JSON heading.
|
2015-10-09 08:41:08 -04:00 |
|
Rob Rix
|
341e18e84d
|
Patch encodes its cases inline.
|
2015-10-08 07:31:43 -04:00 |
|
Rob Rix
|
5610b9737c
|
Parametric JSON conversion for Patch.
|
2015-10-08 07:28:03 -04:00 |
|
Rob Rix
|
14a2d9bc1c
|
Patch is CustomDocConvertible.
|
2015-10-07 17:20:13 -04:00 |
|
Rob Rix
|
0af93b4c68
|
Patches have an inverse.
|
2015-10-07 08:41:54 -04:00 |
|
Rob Rix
|
85ac68d232
|
Document why PatchConvertible.
|
2015-10-06 21:25:21 -04:00 |
|
Rob Rix
|
6b3c66d801
|
Patch is trivially PatchConvertible.
|
2015-10-06 21:24:43 -04:00 |
|
Rob Rix
|
46f3f9431b
|
Add a PatchConvertible protocol to enable constrained extensions.
|
2015-10-06 21:24:01 -04:00 |
|
Rob Rix
|
4fdbcf948f
|
Patches have a cost.
This charges `Replace` patches at a higher cost than `Insert`/`Delete`
patches to avoid spurious replacements.
|
2015-10-06 17:07:16 -04:00 |
|
Rob Rix
|
ee8794fd81
|
Patch is CustomDebugStringConvertible.
|
2015-10-06 16:45:36 -04:00 |
|
Rob Rix
|
db63777dd9
|
Represent Insert/Delete explicitly in Patch.
Fixes #60.
|
2015-10-06 16:31:44 -04:00 |
|
Rob Rix
|
ebb3f1350f
|
Conveniences for constructing insertions & deletions.
|
2015-10-02 16:53:43 -04:00 |
|
Rob Rix
|
ae7f30e922
|
Parameterized Patch hashing.
|
2015-10-02 16:50:59 -04:00 |
|
Rob Rix
|
ca6392e636
|
Parameterized Patch equality.
|
2015-10-02 16:49:04 -04:00 |
|
Rob Rix
|
089bd51fb3
|
Rename the property.
|
2015-10-02 16:38:21 -04:00 |
|
Rob Rix
|
48c2112124
|
Add a property destructuring Patches.
|
2015-10-02 16:38:02 -04:00 |
|
Rob Rix
|
0c4fe23e78
|
Doc comment for Patch.
|
2015-10-02 16:36:05 -04:00 |
|
Rob Rix
|
5c10f5ccc9
|
Stub in Patch.
|
2015-10-02 16:34:00 -04:00 |
|