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

Perform name lookup directly in TacticsM #1924

Merged
merged 4 commits into from
Jun 15, 2021

Conversation

isovector
Copy link
Collaborator

I'd managed to keep IO out of TacticsM thus far, but over time, it was beginning to creek. Rather than just looking up things like Monoid if they were needed, I'd build a big static map of everything that might need to be looked up (KnownThings). And then, since user code in the metaprograms would need to look things up in the module, I stuck the parser in IO, plus a bunch of tomfoolery to make everything work.

This PR just bites the bullet and puts some IO into TacticsM, allowing for runtime lookups. In doing so, it removes KnownThings and a bunch of cruft around the Parser. Everything is cleaner and there's a lot of red.

@isovector isovector added the merge me Label to trigger pull request merge label Jun 15, 2021
@mergify mergify bot merged commit 344c4cd into haskell:master Jun 15, 2021
@isovector isovector deleted the put-io-in-tacticsM branch July 19, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants