Skip to content

Fix hd-view package-qualified imports bypassing home-unit#284

Merged
alt-romes merged 3 commits into
masterfrom
wip/romes/283
Apr 23, 2026
Merged

Fix hd-view package-qualified imports bypassing home-unit#284
alt-romes merged 3 commits into
masterfrom
wip/romes/283

Conversation

@alt-romes

Copy link
Copy Markdown
Collaborator

See Note [Do not package-qualify imports for home units]

Fixes #283

loaded, is not installed

2) a package-import of a loaded unit succeeds, because a unit with the same
name (but not necessarily the same unit-id!), is installed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe clarify that you mean import "haskell-debugger-view" ... can be ambiguous, at it's not a full unitId. But we use the full unitIdString in the RawPkgQual which sould be unambiguous?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's us, but a user can use a package-qualified import without it being the specific unit-id.

Sorry, I missed this comment before merging.

@alt-romes alt-romes merged commit c3caebc into master Apr 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package-qualified imports bypass home units

2 participants