mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Eta-reduce the openLine definition.
This commit is contained in:
parent
b8e843a505
commit
a9c744a54c
@ -277,7 +277,7 @@ openElement (Div _ elements) = openElement =<< maybeLast elements
|
||||
openElement h = Just h
|
||||
|
||||
openLine :: [Line HTML] -> Maybe (Line HTML)
|
||||
openLine lines = openLineBy openElement lines
|
||||
openLine = openLineBy openElement
|
||||
|
||||
openLineBy :: (a -> Maybe a) -> [Line a] -> Maybe (Line a)
|
||||
openLineBy _ [] = Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user