mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Derive a Foldable instance for Patch.
This commit is contained in:
parent
465c1f9ab7
commit
ddeb3f9063
@ -7,7 +7,7 @@ data Patch a =
|
||||
Replace a a
|
||||
| Insert a
|
||||
| Delete a
|
||||
deriving (Functor, Show, Eq)
|
||||
deriving (Foldable, Functor, Show, Eq)
|
||||
|
||||
-- | Return the item from the after side of the patch.
|
||||
after :: Patch a -> Maybe a
|
||||
|
Loading…
Reference in New Issue
Block a user