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

Allow only part of a module to be imported #194

Open
dorchard opened this issue Feb 6, 2023 · 1 comment
Open

Allow only part of a module to be imported #194

dorchard opened this issue Feb 6, 2023 · 1 comment

Comments

@dorchard
Copy link
Member

dorchard commented Feb 6, 2023

We should extend imports to only allow certain definitions to be included, e.g.,

    import Prelude(if0)

This would be a relatively simple change, adding this syntax to parser, which would then get serialised into the AST and used to control what is included (but note this would also require chasing dependencies of if0).

@dorchard dorchard assigned dorchard and buggymcbugfix and unassigned dorchard Feb 6, 2023
@buggymcbugfix
Copy link
Member

If the main itch this scratches for now is the speed of type checking, then perhaps caching the checker state per module would do that?

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

No branches or pull requests

2 participants