mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Define Live.delete tacitly.
This commit is contained in:
parent
67c633f3b0
commit
3b315112dc
@ -17,7 +17,7 @@ singleton :: Address l v -> Live l v
|
|||||||
singleton = Live . Set.singleton
|
singleton = Live . Set.singleton
|
||||||
|
|
||||||
delete :: Ord l => Address l v -> Live l v -> Live l v
|
delete :: Ord l => Address l v -> Live l v -> Live l v
|
||||||
delete addr (Live s) = Live (Set.delete addr s)
|
delete addr = Live . Set.delete addr . unLive
|
||||||
|
|
||||||
difference :: Ord l => Live l v -> Live l v -> Live l v
|
difference :: Ord l => Live l v -> Live l v -> Live l v
|
||||||
difference = fmap Live . (Set.difference `on` unLive)
|
difference = fmap Live . (Set.difference `on` unLive)
|
||||||
|
Loading…
Reference in New Issue
Block a user