mirror of
https://github.com/github/semantic.git
synced 2024-12-15 01:51:39 +03:00
Use insertFrame in insertFrameLink.
This commit is contained in:
parent
c23b587f80
commit
de416fa88c
@ -337,7 +337,7 @@ insertFrameLink label linkMap = do
|
||||
let newCurrentFrame = currentFrame {
|
||||
Heap.links = Map.alter (\val -> val <> Just linkMap) label (Heap.links currentFrame)
|
||||
}
|
||||
modify (Heap.Heap . Map.insert frameAddress newCurrentFrame . Heap.unHeap)
|
||||
modify (Heap.insertFrame frameAddress newCurrentFrame)
|
||||
|
||||
|
||||
-- | Write a value to the given frame address in the 'Heap'.
|
||||
|
@ -11,6 +11,7 @@ module Data.Abstract.Heap
|
||||
, deleteSlot
|
||||
, initFrame
|
||||
, newFrame
|
||||
, insertFrame
|
||||
, heapLookup
|
||||
, heapLookupAll
|
||||
, heapSize
|
||||
|
Loading…
Reference in New Issue
Block a user