Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant