Skip to content

Commit

Permalink
somewhat unrelated TODO: revisit comparing kinds up to holes
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Price <[email protected]>
  • Loading branch information
brprice committed Sep 7, 2023
1 parent ea93b72 commit 7cfe2e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions primer/src/Primer/Typecheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ consistentTypes x y = uncurry eqType $ holepunch x y
holepunch (TForall _ n k s) (TForall _ m l t) =
let (hs, ht) = holepunch s t
in -- Perhaps we need to compare the kinds up to holes also?
-- TODO: this needs revisiting, as we can now write
-- foo : ∀a:*.? ; foo = ? : ∀a:?.?
-- and SH puts the def into a hole, as the kinds on the foralls do not exactly match.
-- I'm not yet sure what the right thing to do is, I need to think about the metatheory!
(TForall () n k hs, TForall () m l ht)
holepunch s t = (s, t)

Expand Down

0 comments on commit 7cfe2e4

Please sign in to comment.