1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00

Rename the cache binding.

This commit is contained in:
Rob Rix 2017-12-21 14:59:29 -05:00
parent a9fca0db5f
commit 6723936881

View File

@ -122,13 +122,13 @@ fixCache ev' yield e = do
store <- getStore
roots <- askRoots
let c = Configuration e roots env store :: Configuration (LocationFor v) t v
pairs <- mlfp (\ dollar -> do
cache <- mlfp (\ dollar -> do
putCache (mempty :: Cache (LocationFor v) t v)
putStore store
reset 0
_ <- localCache (const dollar) (collect point (ev' yield e) :: m (Set.Set v))
getCache) mempty
asum . flip map (maybe [] toList (cacheLookup c pairs)) $ \ (value, store') -> do
asum . flip map (maybe [] toList (cacheLookup c cache)) $ \ (value, store') -> do
putStore store'
pure value