mirror of
https://github.com/github/semantic.git
synced 2025-01-05 05:58:34 +03:00
Generalize comparableByConstructor over the annotation types.
This commit is contained in:
parent
e0d36dc8e5
commit
67c6b12bb8
@ -113,5 +113,5 @@ comparableByCategory :: HasField fields Category => ComparabilityRelation syntax
|
||||
comparableByCategory (In a _) (In b _) = category a == category b
|
||||
|
||||
-- | Test whether two terms are comparable by their constructor.
|
||||
comparableByConstructor :: GAlign syntax => ComparabilityRelation syntax (Record fields) (Record fields)
|
||||
comparableByConstructor :: GAlign syntax => ComparabilityRelation syntax ann1 ann2
|
||||
comparableByConstructor (In _ a) (In _ b) = isJust (galign a b)
|
||||
|
Loading…
Reference in New Issue
Block a user