-
Notifications
You must be signed in to change notification settings - Fork 147
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
compilePrimitive
doesn't load module in special case
#422
Labels
Comments
martijnbastiaan
added a commit
that referenced
this issue
Nov 22, 2018
Hint offers no (obvious?) way to inspect which modules are present in currently loaded package databases. As a consequence, we can't easily detect whether we should explicitly load a (local) module of a blackbox function or not. The implemented solution simply tries both and sees approach one succeeds.
martijnbastiaan
added a commit
that referenced
this issue
Nov 28, 2018
Hint offers no (obvious?) way to inspect which modules are present in currently loaded package databases. As a consequence, we can't easily detect whether we should explicitly load a (local) module of a blackbox function or not. The implemented solution simply tries both and sees approach one succeeds.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See
clash-compiler/clash-lib/src/Clash/Driver.hs
Line 345 in 6dbf3b7
loadModule
in order to prevent 'module not loaded errors'. We should also check if we omitloadModule
in other places.The text was updated successfully, but these errors were encountered: