Skip to content

stack ghci attempts to load a removed module #1805

Closed
@UnkindPartition

Description

@UnkindPartition

If you remove a module from a project and erase all mentions of it from the cabal file and other source files, stack ghci may still attempt to load it (and fail).

This happens because Stack.Package.getDependencies will resurrect the dead module name from a stale interface file.

I don't really know what to do about this, but it sure was annoying and took me quite some time to figure out.

% stack --version
Version 1.0.3, Git revision 3f7b50fe598ec83eda5d393fe5b08a99ce5ac1e9 (dirty) (3212 commits) x86_64

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions