Skip to content

stack does not allow using an external package from ghci #1557

@UnkindPartition

Description

@UnkindPartition

I have a library that I want to debug. For that, I need a package that's not among the library's dependencies (base16-bytestring). But stack ghci would not allow me to do that, even if I pass --package:

% stack ghci --package base16-bytestring presta-lib:lib 
The following GHC options are incompatible with GHCi and have not been passed to it: -O0
Configuring GHCi with the following packages: presta-lib
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
...
Ok, modules loaded: ...
> :m +Data.ByteString.Base16 Data.SafeCopy Data.Serialize

<no location info>:
    Could not find module ‘Data.ByteString.Base16’
    It is a member of the hidden package ‘base16-bytestring-0.1.1.6@base1_LGFgY5jaffY4IePNqJx55U’.

% stack --version
Version 0.1.11.0, Git revision 189d677ca6d63012ebe56083c9bee49f635bcc0d (dirty) (2919 commits) x86_64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions