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

Erase private type aliases from exports #164

Open
jmackie opened this issue Jan 6, 2023 · 0 comments
Open

Erase private type aliases from exports #164

jmackie opened this issue Jan 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jmackie
Copy link
Member

jmackie commented Jan 6, 2023

Similar to #157, but for type alias.

In this case we don't need to raise an error, we should just erase the alias from the relevant export.

For example:

module Example exports (
    five,  -- should have type `Float` because `Double` isn't exported
);

type Double = Float;

five : Double = 5.0;
@jmackie jmackie added the enhancement New feature or request label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant