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

Commit 34da6ad

Browse files
committed
Rename a couple of copy-pasta’d variables.
1 parent a04ccbb commit 34da6ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

semantic-core/src/Analysis/ImportGraph.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ importGraphAnalysis = Analysis{..}
103103
bind _ _ m = m
104104
lookupEnv = pure . Just
105105
deref addr = gets (Map.lookup addr >=> nonEmpty . Set.toList) >>= maybe (pure Nothing) (foldMapA (pure . Just))
106-
assign addr ty = modify (Map.insertWith (<>) addr (Set.singleton ty))
106+
assign addr v = modify (Map.insertWith (<>) addr (Set.singleton v))
107107
abstract _ name body = do
108108
loc <- ask
109109
pure (Value (Closure loc name body) mempty)

semantic-core/src/Analysis/ScopeGraph.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ scopeGraphAnalysis = Analysis{..}
9393
local (Map.insert name loc) m
9494
lookupEnv = pure . Just
9595
deref addr = gets (Map.lookup addr >=> nonEmpty . Set.toList) >>= maybe (pure Nothing) (foldMapA (pure . Just))
96-
assign addr ty = modify (Map.insertWith (<>) addr (Set.singleton ty))
96+
assign addr v = modify (Map.insertWith (<>) addr (Set.singleton v))
9797
abstract eval name body = do
9898
addr <- alloc name
9999
assign name (mempty @ScopeGraph)

0 commit comments

Comments
 (0)