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

compilePrimitive doesn't load module in special case #422

Closed
martijnbastiaan opened this issue Nov 21, 2018 · 0 comments
Closed

compilePrimitive doesn't load module in special case #422

martijnbastiaan opened this issue Nov 21, 2018 · 0 comments
Assignees
Labels

Comments

@martijnbastiaan
Copy link
Member

See

Hint.setImports [ "Clash.Netlist.BlackBox.Types", qualMod]
. It should use loadModule in order to prevent 'module not loaded errors'. We should also check if we omit loadModule in other places.

@martijnbastiaan martijnbastiaan self-assigned this Nov 21, 2018
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 22, 2018
martijnbastiaan added a commit that referenced this issue Nov 22, 2018
martijnbastiaan added a commit that referenced this issue Nov 23, 2018
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.
martijnbastiaan added a commit that referenced this issue Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant