1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +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.
data Entry a
= Unchanged a
| Changed (Either a (Patch 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)) -- ^ Either an entry for a diff node contianing changes, or an entry for a node in a patch.
deriving (Eq, Show)
-- | Compute a table of contents for a diff characterized by a function mapping relevant nodes onto values in Maybe.