1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 12:21:57 +03:00

More binding.

This commit is contained in:
Rob Rix 2015-12-10 16:43:34 -05:00
parent 674301ce1f
commit 60b9e630a8

View File

@ -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]