File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import GHC.Generics
22
22
-- inefficiently. 'PatchOrReplacement' can be used as an escape hatch:
23
23
-- when the change as a patch would be too big, just provide a new value
24
24
-- to replace the old one with instead.
25
+ --
26
+ -- @since 0.0.6
25
27
data PatchOrReplacement p
26
28
= PatchOrReplacement_Patch p
27
29
| PatchOrReplacement_Replacement (PatchTarget p )
@@ -37,8 +39,8 @@ completePatchOrReplacement = \case
37
39
PatchOrReplacement_Replacement t -> Just t
38
40
PatchOrReplacement_Patch _ -> Nothing
39
41
40
- -- | 'PatchOrReplacement p' is a patch when we can apply the patch or
41
- -- replace the old value with the new replacement value .
42
+ -- | To apply a 'PatchOrReplacement p' apply the the underlying 'p' or
43
+ -- substitute the replacement 'PatchTarget p' .
42
44
instance Patch p => Patch (PatchOrReplacement p ) where
43
45
type PatchTarget (PatchOrReplacement p ) = PatchTarget p
44
46
apply = \ case
You can’t perform that action at this time.
0 commit comments