mirror of
https://github.com/github/semantic.git
synced 2024-12-18 12:21:57 +03:00
More binding.
This commit is contained in:
parent
674301ce1f
commit
60b9e630a8
@ -239,7 +239,7 @@ openElement h = Just h
|
||||
openLine :: [Line] -> Maybe Line
|
||||
openLine [] = Nothing
|
||||
openLine (EmptyLine : rest) = openLine rest
|
||||
openLine (line : _) = const line <$> (join . maybeLast $ openElement <$> unLine line)
|
||||
openLine (line : _) = const line <$> (openElement =<< (maybeLast $ unLine line))
|
||||
|
||||
adjoin2Lines :: [Line] -> Line -> [Line]
|
||||
adjoin2Lines [] line = [line]
|
||||
|
Loading…
Reference in New Issue
Block a user