mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Define a copy helper.
This commit is contained in:
parent
69cba8430f
commit
30fe4d520b
@ -66,6 +66,8 @@ deleting :: Term syntax ann -> Diff syntax ann
|
||||
deleting = Diff . Patch . Delete
|
||||
|
||||
|
||||
copy :: Both ann -> syntax (Diff syntax ann) -> Diff syntax ann
|
||||
copy = (Diff .) . Copy
|
||||
|
||||
|
||||
instance Apply1 Pretty1 fs => Pretty1 (Diff (Union fs)) where
|
||||
|
Loading…
Reference in New Issue
Block a user