mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Fix docs.
This commit is contained in:
parent
84a448ad4f
commit
6722f2f9da
@ -13,7 +13,7 @@ import Data.Bitraversable
|
||||
import Data.Functor.Classes
|
||||
import GHC.Generics (Generic, Generic1)
|
||||
|
||||
-- | An operation to compare, insert, or delete an item.
|
||||
-- | The deletion, insertion, or comparison of values.
|
||||
data Edit a b
|
||||
= Delete a
|
||||
| Insert b
|
||||
@ -21,7 +21,7 @@ data Edit a b
|
||||
deriving (Eq, Foldable, Functor, Generic, Generic1, Ord, Show, Traversable)
|
||||
|
||||
|
||||
-- | Return both sides of a patch.
|
||||
-- | Return both sides of an edit.
|
||||
edit :: (l -> a) -> (r -> a) -> (l -> r -> a) -> Edit l r -> a
|
||||
edit delete insert compare = \case
|
||||
Delete a -> delete a
|
||||
|
Loading…
Reference in New Issue
Block a user