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

Commit c00f666

Browse files
committed
Rename variables.
1 parent 5f3221a commit c00f666

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

semantic-analysis/src/Analysis/Module.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ instance Semigroup (ModuleSet a) where
2222
m1 <> m2 = ModuleSet ((link m2 <$> getModuleSet m1) <> (link m1 <$> getModuleSet m2))
2323

2424
link :: ModuleSet a -> Module a -> Module a
25-
link (ModuleSet ms) m = Module b' (imports m Set.\\ Map.keysSet ms) (exports m) u' where
26-
(u', b') = foldl' (\ (u, b) -> resolve u b . exports) (unknown m, body m) (Map.restrictKeys ms (imports m))
27-
resolve u b e = (u Set.\\ Map.keysSet e, b . mappend (Map.restrictKeys e u))
25+
link (ModuleSet ms) m = Module body' (imports m Set.\\ Map.keysSet ms) (exports m) unknown' where
26+
(unknown', body') = foldl' (\ (unknown', body') -> resolve unknown' body' . exports) (unknown m, body m) (Map.restrictKeys ms (imports m))
27+
resolve unknown body exports = (unknown Set.\\ Map.keysSet exports, body . mappend (Map.restrictKeys exports unknown))

0 commit comments

Comments
 (0)