mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Reformat the signature for gc.
This commit is contained in:
parent
580ab01134
commit
1389e22fe5
@ -27,7 +27,10 @@ evCollect ev0 ev' yield e = do
|
|||||||
pure v
|
pure v
|
||||||
|
|
||||||
-- | Collect any addresses in the store not rooted in the given 'Live' set.
|
-- | Collect any addresses in the store not rooted in the given 'Live' set.
|
||||||
gc :: (Ord (LocationFor a), Foldable (Cell (LocationFor a)), ValueRoots (LocationFor a) a) => Live (LocationFor a) a -> Store (LocationFor a) a -> Store (LocationFor a) a
|
gc :: (Ord (LocationFor a), Foldable (Cell (LocationFor a)), ValueRoots (LocationFor a) a)
|
||||||
|
=> Live (LocationFor a) a
|
||||||
|
-> Store (LocationFor a) a
|
||||||
|
-> Store (LocationFor a) a
|
||||||
gc roots store = storeRestrict store (reachable roots store)
|
gc roots store = storeRestrict store (reachable roots store)
|
||||||
|
|
||||||
reachable :: (Ord (LocationFor a), Foldable (Cell (LocationFor a)), ValueRoots (LocationFor a) a) => Live (LocationFor a) a -> Store (LocationFor a) a -> Live (LocationFor a) a
|
reachable :: (Ord (LocationFor a), Foldable (Cell (LocationFor a)), ValueRoots (LocationFor a) a) => Live (LocationFor a) a -> Store (LocationFor a) a -> Live (LocationFor a) a
|
||||||
|
Loading…
Reference in New Issue
Block a user