mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
Require Ord instances for LocationFor.
This commit is contained in:
parent
a391268efe
commit
97a1d5adb6
@ -117,11 +117,11 @@ type CellFor value = Cell (LocationFor value) value
|
||||
type LiveFor value = Live (LocationFor value) value
|
||||
|
||||
|
||||
class Eq (LocationFor value) => AbstractValue value where
|
||||
class Ord (LocationFor value) => AbstractValue value where
|
||||
-- | The location type (the body of 'Address'es) which should be used for an abstract value type.
|
||||
type LocationFor value :: *
|
||||
|
||||
instance Eq location => AbstractValue (Value location term) where
|
||||
instance Ord location => AbstractValue (Value location term) where
|
||||
type LocationFor (Value location term) = location
|
||||
|
||||
instance AbstractValue Type.Type where
|
||||
|
Loading…
Reference in New Issue
Block a user