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

Importing an inductive type should by default also import the associated module #3339

Open
lukaszcz opened this issue Feb 20, 2025 · 0 comments
Labels
Milestone

Comments

@lukaszcz
Copy link
Collaborator

For example, writing

import Stdlib.Prelude using {List} open;

should make both the type List and the associated module List available. Perhaps ordinary using should import all identifiers with a given name (definitions, modules, fixities, whatever)? This is what I would expect most users to expect, and it's the most common use-case. If you want to specify that only a given sort of identifiers should be imported, there should be explicit syntax for it (but it will be rarely used):

import Stdlib.Prelude using {definition List; module List} open;
@lukaszcz lukaszcz added this to the 0.6.10 milestone Feb 20, 2025
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