1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Define a copy helper.

This commit is contained in:
Rob Rix 2017-09-09 11:54:29 +01:00
parent 69cba8430f
commit 30fe4d520b

View File

@ -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