mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
Generalize modifyHeap.
This commit is contained in:
parent
d073020526
commit
e4b611c5b6
@ -206,7 +206,7 @@ putHeap :: (Member (State (Heap location value)) effects, Evaluator location ter
|
||||
putHeap = raise . put
|
||||
|
||||
-- | Update the heap.
|
||||
modifyHeap :: MonadEvaluator location term value effects m => (Heap location value -> Heap location value) -> m effects ()
|
||||
modifyHeap :: (Member (State (Heap location value)) effects, Evaluator location term value m) => (Heap location value -> Heap location value) -> m effects ()
|
||||
modifyHeap = raise . modify'
|
||||
|
||||
-- | Look up the cell for the given 'Address' in the 'Heap'.
|
||||
|
Loading…
Reference in New Issue
Block a user