Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 28404ae

Browse files
committed
foldrWithKey.
🎩 @patrickt.
1 parent dd6d9a0 commit 28404ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semantic-core/src/Analysis/Concrete.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ heapGraph vertex edge h = foldr (uncurry graph) G.empty (IntMap.toList h)
164164
Bool _ -> G.empty
165165
String _ -> G.empty
166166
Closure _ _ _ env -> foldr (G.overlay . edge (Left Lexical)) G.empty env
167-
Record frame -> foldr (G.overlay . uncurry (edge . Right)) G.empty (Map.toList frame)
167+
Record frame -> Map.foldrWithKey (\ k -> G.overlay . edge (Right k)) G.empty frame
168168

169169
heapValueGraph :: Heap -> G.Graph Concrete
170170
heapValueGraph h = heapGraph (const id) (const fromAddr) h

0 commit comments

Comments
 (0)