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

public exports #125

Open
NickSeagull opened this issue Sep 27, 2024 · 0 comments
Open

public exports #125

NickSeagull opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request syntax

Comments

@NickSeagull
Copy link
Contributor

There's a common pattern which is having a folder with modules inside, and then, outside that folder, a module named in the same way as the folder, which exposes the public API of the folder's modules. E.g.

.
├── Build
│   ├── Event.hs
│   ├── State.hs
│   └── View.hs
└── Build.hs

A possibility would be to have a keyword, or decorator, that would tell the compiler that the marked symbol should be reexported through that module outside, removing the need of creating that superfluous module.

@NickSeagull NickSeagull added enhancement New feature or request syntax labels Sep 27, 2024
@NickSeagull NickSeagull self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request syntax
Projects
Status: No status
Development

No branches or pull requests

1 participant