Skip to content

Commit f4d3dcd

Browse files
Merge pull request #90 from danelahman/master
Fix to the partial fix for #89 and updating workflow dependencies
2 parents cda74fd + de1d448 commit f4d3dcd

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313

1414
- name: Setup OCaml
15-
uses: ocaml/setup-ocaml@v2
15+
uses: ocaml/setup-ocaml@v3
1616
with:
1717
ocaml-compiler: 4.14.x
1818

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
- uses: actions/checkout@v2
1212

1313
- name: Setup OCaml
14-
uses: avsm/setup-ocaml@v1
14+
uses: ocaml/setup-ocaml@v3
15+
with:
16+
ocaml-compiler: 4.14.x
1517

1618
- name: Install Opam packages
1719
run: opam pin add -n .; opam install eff --deps-only

src/03-typechecker/unification.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ and dirt_omega_step ~loc sub resolved unresolved w dcons =
292292
{ effect_set = ops2; row = Dirt.Row.Param d2 } ) ->
293293
let w' = DirtCoercionParam.refresh w in
294294
let d2' = Dirt.Param.refresh d2 in
295+
let dirt_sub =
296+
Substitution.add_dirt_substitution_e d2
297+
{ effect_set = Effect.Set.diff ops1 ops2; row = Dirt.Row.Param d2' }
298+
in
295299
let w_ty' =
296300
( (* In case d1 = d2, we need to substitute d1 as well *)
297301
Substitution.apply_substitutions_to_dirt dirt_sub
@@ -302,8 +306,7 @@ and dirt_omega_step ~loc sub resolved unresolved w dcons =
302306
} )
303307
in
304308
let sub' =
305-
Substitution.add_dirt_substitution_e d2
306-
{ effect_set = Effect.Set.diff ops1 ops2; row = Dirt.Row.Param d2' }
309+
dirt_sub
307310
|> Substitution.add_dirt_var_coercion w
308311
(Coercion.unionDirt (ops1, Coercion.dirtCoercionVar w' w_ty'))
309312
in

0 commit comments

Comments
 (0)