mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Define an Ord instance for Label.
This commit is contained in:
parent
067b354cb3
commit
f38d2520e5
@ -169,4 +169,6 @@ instance Hashable1 syntax => Hashable (Label syntax) where hashWithSalt salt (La
|
||||
|
||||
instance Eq1 syntax => Eq (Label syntax) where Label a == Label b = liftEq (const (const True)) a b
|
||||
|
||||
instance Ord1 syntax => Ord (Label syntax) where Label a `compare` Label b = liftCompare (const (const EQ)) a b
|
||||
|
||||
instance Show1 syntax => Show (Label syntax) where showsPrec d (Label syntax) = liftShowsPrec (const (const id)) (const id) d syntax
|
||||
|
Loading…
Reference in New Issue
Block a user