We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d77b245 commit 54ab317Copy full SHA for 54ab317
1 file changed
README.md
@@ -1,3 +1,13 @@
1
## Patch
2
3
Infrastructure for writing patches which act on other types.
4
+
5
+A `Patch` type represents a kind of change made to a datastructure.
6
7
+```haskell
8
+class Patch p where
9
+ type PatchTarget p :: *
10
+ -- | Apply the patch p a to the value a. If no change is needed, return
11
+ -- 'Nothing'.
12
+ apply :: p -> PatchTarget p -> Maybe (PatchTarget p)
13
+```
0 commit comments