1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 21:01:35 +03:00

Use galignAlign explicitly.

This commit is contained in:
Rob Rix 2016-07-11 14:51:09 -04:00
parent 45c0a582b8
commit ee60b4be7a

View File

@ -17,8 +17,8 @@ class Functor f => GAlign f where
-- Types with 'Data.Align.Align' instances can (and probably should) reuse them. -- Types with 'Data.Align.Align' instances can (and probably should) reuse them.
instance GAlign [] where galign a = Just . align a instance GAlign [] where galign = galignAlign
instance Eq key => GAlign (OrderedMap key) where galign a = Just . align a instance Eq key => GAlign (OrderedMap key) where galign = galignAlign
galignAlign :: Align f => f a -> f b -> Maybe (f (These a b)) galignAlign :: Align f => f a -> f b -> Maybe (f (These a b))
galignAlign a = Just . align a galignAlign a = Just . align a