Skip to content

stack ghci does not recognise internal libraries #3926

Closed
@dbaynard

Description

@dbaynard

Relates to #3795 (and #3791) and also #3288.

I suspect the fix is to reproduce whatever #3288 did for the build command but for ghci.

Steps to reproduce

Easiest to check out dbaynard/issues@2530d18 (internal-libraries branch) and run stack ghci.

Alternatively, create a package which has an internal library module and attempt to import that into that package's own library or an executable (they have the same outcome).

Expected

stack ghci loads the repl.

Actual

Error message, for internal library named internal

<command-line>: cannot satisfy -package internal

Note, stack build is successful. Also, stack exec -- ghci loads correctly (though doesn't load the packages).

The full output is in the readme in the internal-libries directory at the dbaynard/issues github repo, above.

Stack version

I merged fix-ghci-autogen-path-3791 (030a442) into master (
27894ff) for the test.

$ stack --version
Version 1.7.0, Git revision 06bc6937b5c6263e7da46bb18355c338ebee92a5 \(5723 commits\) x86_64 hpack-0.27.0 

Method of installation

From git repo — see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions