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

Commit a549039

Browse files
committed
Generalize heapValueGraph over the term type.
1 parent 021350b commit a549039

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
@@ -170,7 +170,7 @@ heapGraph vertex edge h = foldr (uncurry graph) G.empty (IntMap.toList h)
170170
Closure _ _ _ env -> foldr (G.overlay . edge (Left Lexical)) G.empty env
171171
Record frame -> foldr (G.overlay . uncurry (edge . Right)) G.empty (Map.toList frame)
172172

173-
heapValueGraph :: Heap (Term (Core.Ann :+: Core.Core) User) -> G.Graph (Concrete (Term (Core.Ann :+: Core.Core) User))
173+
heapValueGraph :: Heap term -> G.Graph (Concrete term)
174174
heapValueGraph h = heapGraph (const id) (const fromAddr) h
175175
where fromAddr addr = maybe G.empty G.vertex (IntMap.lookup addr h)
176176

0 commit comments

Comments
 (0)