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

Commit 1f4fded

Browse files
committed
Substitute out free variables.
1 parent f3e46f3 commit 1f4fded

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

semantic-analysis/src/Analysis/Analysis/Exception.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ runFile eval = traverse run where
9595
exports <- gets @(A.MStore ExcSet) (fmap Foldable.fold . Map.mapKeys A.getMAddr . A.getMStore)
9696
let set = Foldable.fold sets
9797
imports = Set.fromList (map extractImport msgs)
98-
pure (Module (const set) imports exports (freeVariables set))
98+
pure (Module (Foldable.foldl' (flip (uncurry subst)) set . Map.toList) imports exports (freeVariables set))
9999
extractImport (A.Import components) = name (Text.intercalate (Text.pack ".") (Foldable.toList components))
100100

101101
newtype ExcC m a = ExcC { runExcC :: m a }

0 commit comments

Comments
 (0)