mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
Use galignAlign explicitly.
This commit is contained in:
parent
45c0a582b8
commit
ee60b4be7a
@ -17,8 +17,8 @@ class Functor f => GAlign f where
|
||||
|
||||
-- Types with 'Data.Align.Align' instances can (and probably should) reuse them.
|
||||
|
||||
instance GAlign [] where galign a = Just . align a
|
||||
instance Eq key => GAlign (OrderedMap key) where galign a = Just . align a
|
||||
instance GAlign [] where galign = galignAlign
|
||||
instance Eq key => GAlign (OrderedMap key) where galign = galignAlign
|
||||
|
||||
galignAlign :: Align f => f a -> f b -> Maybe (f (These a b))
|
||||
galignAlign a = Just . align a
|
||||
|
Loading…
Reference in New Issue
Block a user