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:
parent
f714e83b62
commit
3424df075a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user