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:
parent
8bcf23b647
commit
881bf62755
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user