1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Derive Ord instance for Comment

This commit is contained in:
Rick Winfrey 2017-10-10 13:18:01 -07:00
parent 8bcf23b647
commit 881bf62755

View File

@ -12,7 +12,7 @@ import GHC.Generics
-- | An unnested comment (line or block).
newtype Comment a = Comment { commentContent :: ByteString }
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Show, Traversable)
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable)
instance Eq1 Comment where liftEq = genericLiftEq
instance Ord1 Comment where liftCompare = genericLiftCompare