1
1
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:
Rob Rix 2017-09-14 11:18:41 -04:00
parent e0d36dc8e5
commit 67c6b12bb8

View File

@ -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)