1
1
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:
Rob Rix 2016-04-11 16:50:48 -04:00
parent 465c1f9ab7
commit ddeb3f9063

View File

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