A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/commercialhaskell/stack/issues/2790 below:

Stack ghci on a component of a package does not cause the library component to be built · Issue #2790 · commercialhaskell/stack · GitHub

Repro: Run stack ghci :store-test on store (after stack clean)

Result:

store-0.3: configure (lib)
Configuring store-0.3...
store-0.3: initial-build-steps (lib)
The following GHC options are incompatible with GHCi and have not been passed to it: -O2 -threaded
Configuring GHCi with the following packages: store
Using main module: 1. Package `store' component test:store-test with main-is file: /home/mgsloan/fpco/store/test/Spec.hs
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
<command line>: cannot satisfy -package store-0.3
    (use -v for more information)

The issue is that it needs to build the library in order to be able to load these auxiliary components.

For now, the workaround is to either do a stack build first, or load both the library and the component into ghci.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4