1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Derive Eq, Ord, & Show instances for LocatedValue.

This commit is contained in:
Rob Rix 2018-03-29 09:31:08 -04:00
parent e51d095372
commit 438c19dd50

View File

@ -13,6 +13,7 @@ data Located location = Located { provenance :: !Provenance, location :: locatio
deriving (Eq, Ord, Show)
newtype LocatedValue value = LocatedValue { getLocatedValue :: value }
deriving (Eq, Ord, Show)
instance AbstractValue (LocatedValue value) where
type LocationFor (LocatedValue value) = Located (LocationFor value)