1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

📝 the Entry constructors.

This commit is contained in:
Rob Rix 2017-05-10 10:27:50 -04:00
parent d21c408af3
commit 4f0fee6d2c

View File

@ -55,8 +55,8 @@ data Summarizable
-- | An entry in a table of contents. -- | An entry in a table of contents.
data Entry a data Entry a
= Unchanged a = Unchanged a -- ^ An entry for an unchanged portion of a diff (i.e. a diff node not containing any patches).
| Changed (Either a (Patch a)) | Changed (Either a (Patch a)) -- ^ Either an entry for a diff node contianing changes, or an entry for a node in a patch.
deriving (Eq, Show) deriving (Eq, Show)
-- | Compute a table of contents for a diff characterized by a function mapping relevant nodes onto values in Maybe. -- | Compute a table of contents for a diff characterized by a function mapping relevant nodes onto values in Maybe.