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

Commit fdb6398

Browse files
committed
Evaluate in the right order.
1 parent 71d067c commit fdb6398

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ runFile eval subterms file = traverse run file
6969
$ runReader (fileRef file)
7070
$ A.runEnv @Unit
7171
$ runFail
72-
$ convergeTerm (A.runStore @Unit . runDomain . fix (cacheTerm . eval . evalDead))
72+
$ convergeTerm (A.runStore @Unit . runDomain . fix (cacheTerm . evalDead))
7373
$ term
74-
evalDead eval subterm = do
74+
evalDead eval' subterm = do
7575
modify (Set.delete subterm)
76-
eval subterm
76+
eval eval' subterm
7777

7878

7979
data Unit = Unit

0 commit comments

Comments
 (0)