-
Notifications
You must be signed in to change notification settings - Fork 50
Provide externs to rebuildModule #224
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely a step in the right direction, but I’m curious about a) whether initEnv is used, and b) if we can get unused bindings to emit errors which cause CI to fail. Ideally this would have been caught before it was merged in the first place.
It's used in the |
This sounds like a separate PR to me. Perhaps we should follow the hlint warnings that |
No need to bring hlint in for that - GHC is already capable of generating warnings for unused bindings, and then -Werror / —pedantic will cause the build to fail if there are warnings. |
By the way, we could also keep the initNamesEnv around and use |
I would but |
Ah, I see, thanks. I think that might be unintentional. It would definitely be useful in cases like this one when you’re using the compiler from Haskell. |
I've submitted a PR to export it. |
Closes #222. When implementing #209 I accidentally provided an empty array to
rebuildModule
for the externs; this fix properly threads the externs through. As @JordanMartinez noticed in #222 we also can remove theinitNamesEnv
argument as it is no longer used.Evidence that things work once again: