1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

Use the Data.Align instances for generic alignment of lists and ordered maps.

This commit is contained in:
Rob Rix 2016-07-11 13:54:04 -04:00
parent f1f542cc2c
commit 119c2350d4

View File

@ -90,6 +90,6 @@ instance (Traversable f, Applicative f, GAlign g) => GAlign (f :.: g) where
instance GAlign ((,) a) where
galign (_, a) (k, b) = Just (k, These a b)
instance GAlign []
instance GAlign (OrderedMap key)
instance GAlign [] where galign a = Just . align a
instance Eq key => GAlign (OrderedMap key) where galign a = Just . align a
instance GAlign (Syntax a)