mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
Define Cell as an open type family.
This commit is contained in:
parent
8ac251c45b
commit
6dd03c72d5
@ -24,9 +24,9 @@ newtype Monovariant = Monovariant { unMonovariant :: Name }
|
||||
|
||||
|
||||
-- | The type into which stored values will be written for a given location type.
|
||||
type family Cell location = res | res -> location where
|
||||
Cell Precise = Latest
|
||||
Cell Monovariant = Set
|
||||
type family Cell location = (res :: * -> *) | res -> location
|
||||
type instance Cell Precise = Latest
|
||||
type instance Cell Monovariant = Set
|
||||
|
||||
|
||||
-- | A cell holding a single value. Writes will replace any prior value.
|
||||
|
Loading…
Reference in New Issue
Block a user