1
1
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:
Rob Rix 2017-12-01 14:24:38 -05:00
parent 0402253012
commit de9bdc3e34

View File

@ -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)