Closed choeger closed 6 years ago
Thanks for the PR and the kind words. I don't recall why I made it that complicated in the first place...
BTW, hope you are doing well, Christoph :)
Indeed I do. I am even getting paid to implement said algorithm in a functional language :D.
I think the state only actually uses the supply and I do not see any reason why it should be an environment reader (although one could probably refactor the actual type inference function accordingly). Since this code might be the best step-by-step implementation of algorithm W, let us not complicate matters with unnecessary haskellisms.
Signed-off-by: Christoph Höger christoph.hoeger@celeraone.com