mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Generalize rowFromMaybeRows.
This commit is contained in:
parent
cbc1240946
commit
b351f1b29d
@ -221,7 +221,7 @@ textElements :: Range -> String -> [HTML]
|
||||
textElements range source = elementAndBreak Text =<< actualLines s
|
||||
where s = substring range source
|
||||
|
||||
rowFromMaybeRows :: Maybe HTML -> Maybe HTML -> Row HTML
|
||||
rowFromMaybeRows :: Maybe a -> Maybe a -> Row a
|
||||
rowFromMaybeRows a b = Row (maybe EmptyLine (Line False . (:[])) a) (maybe EmptyLine (Line False . (:[])) b)
|
||||
|
||||
maybeLast :: Foldable f => f a -> Maybe a
|
||||
|
Loading…
Reference in New Issue
Block a user