Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify TI Monad #7

Merged
merged 1 commit into from
Sep 19, 2018
Merged

Simplify TI Monad #7

merged 1 commit into from
Sep 19, 2018

Conversation

choeger
Copy link

@choeger choeger commented Sep 18, 2018

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

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>
@mgrabmueller mgrabmueller merged commit 10a7bbd into mgrabmueller:master Sep 19, 2018
@mgrabmueller
Copy link
Owner

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 :)

@choeger
Copy link
Author

choeger commented Sep 20, 2018

Indeed I do. I am even getting paid to implement said algorithm in a functional language :D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants