1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00

Generalize Line and unLine over a.

This commit is contained in:
Rob Rix 2015-12-21 09:58:02 -05:00
parent f714e83b62
commit 3424df075a

View File

@ -112,11 +112,11 @@ instance ToMarkup a => ToMarkup (Line a) where
toMarkup (Line changed html) = codeTd changed . Just . mconcat $ toMarkup <$> html
data Line a =
Line Bool [HTML]
Line Bool [a]
| EmptyLine
deriving Eq
unLine :: Line a -> [HTML]
unLine :: Line a -> [a]
unLine EmptyLine = []
unLine (Line _ elements) = elements