Rewrote using unification-fd. Heavily inspired (aka copied) from:
https://byorgey.wordpress.com/2021/09/08/implementing-hindley-milner-with-the-unification-fd-library/
This commit is contained in:
parent
f1b77a7efa
commit
eafe0fea0b
5 changed files with 314 additions and 21 deletions
|
|
@ -1 +1,3 @@
|
|||
test f x = f x
|
||||
apply w x = \y. \z. w + x + y + z ;
|
||||
|
||||
main = apply 1 2 3 4 ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue