mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Revert "Add a maybeUnionRanges function."
This reverts commit 183d77173ea6a9250092710996c066d3af19d816.
This commit is contained in:
parent
e1ea26206a
commit
9529d3aab0
@ -72,9 +72,6 @@ unionRanges = unionRangesFrom (Range 0 0)
|
||||
unionRangesFrom :: Foldable f => Range -> f Range -> Range
|
||||
unionRangesFrom range = fromMaybe range . maybeConcat
|
||||
|
||||
maybeUnionRanges :: (Functor f, Foldable f) => f Range -> Maybe Range
|
||||
maybeUnionRanges ranges = getOption $ foldl mappend mempty $ Option . Just <$> ranges
|
||||
|
||||
instance Monoid (Option Range) where
|
||||
mempty = Option Nothing
|
||||
mappend (Option (Just a)) (Option (Just b)) = Option (Just (unionRange a b))
|
||||
|
Loading…
Reference in New Issue
Block a user