1
1
mirror of https://github.com/github/semantic.git synced 2025-01-05 05:58:34 +03:00

Derive Eq, Ord, & Show instances for FeatureVector.

This commit is contained in:
Rob Rix 2017-09-14 11:49:41 -04:00
parent cd3d579bd0
commit f126756672

View File

@ -43,6 +43,7 @@ type Label f fields label = forall b. TermF f (Record fields) b -> label
type ComparabilityRelation syntax ann1 ann2 = forall a b. TermF syntax ann1 a -> TermF syntax ann2 b -> Bool
newtype FeatureVector = FV { unFV :: UArray Int Double }
deriving (Eq, Ord, Show)
-- | A term which has not yet been mapped by `rws`, along with its feature vector summary & index.
data UnmappedTerm syntax ann = UnmappedTerm