1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Spell out the reference to the heap.

This commit is contained in:
Rob Rix 2018-05-15 21:51:46 -04:00
parent 46a44854b4
commit 8f23e1653c

View File

@ -42,7 +42,7 @@ cachingConfiguration :: (Cacheable term location (Cell location) value, Members
-> TermEvaluator term location value effects value
cachingConfiguration configuration values action = do
modify' (cacheSet configuration values)
result <- (,) <$> action <*> get
result <- (,) <$> action <*> TermEvaluator getHeap
fst result <$ modify' (cacheInsert configuration result)
putCache :: Member (OutCache term location value) effects