1
1
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:
Rob Rix 2018-12-06 10:47:27 -05:00
parent c23b587f80
commit de416fa88c
2 changed files with 2 additions and 1 deletions

View File

@ -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'.

View File

@ -11,6 +11,7 @@ module Data.Abstract.Heap
, deleteSlot
, initFrame
, newFrame
, insertFrame
, heapLookup
, heapLookupAll
, heapSize