mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Define membership tests on live sets.
This commit is contained in:
parent
0402253012
commit
de9bdc3e34
@ -17,6 +17,9 @@ singleton = Live . Set.singleton
|
||||
delete :: Ord l => Address l v -> Live l v -> Live l v
|
||||
delete addr (Live s) = Live (Set.delete addr s)
|
||||
|
||||
member :: Ord l => Address l v -> Live l v -> Bool
|
||||
member addr = Set.member addr . unLive
|
||||
|
||||
|
||||
instance Generic1 (Live l) where
|
||||
type Rep1 (Live l)
|
||||
|
Loading…
Reference in New Issue
Block a user