1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Define Live.delete tacitly.

This commit is contained in:
Rob Rix 2017-12-01 14:28:28 -05:00
parent 67c633f3b0
commit 3b315112dc

View File

@ -17,7 +17,7 @@ singleton :: Address l v -> Live l v
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)
delete addr = Live . Set.delete addr . unLive
difference :: Ord l => Live l v -> Live l v -> Live l v
difference = fmap Live . (Set.difference `on` unLive)