"options are incompatible" error when running 'stack ghci' -
i running command $ stack ghci azara-api:azara-test
, trying enter ghci
repl while importing tests. (my project name azara-api
, test suite name azara-test
.)
$ stack ghci azara-api:azara-test azara-api-0.1.0.0: configure (lib + exe) configuring azara-api-0.1.0.0... azara-api-0.1.0.0: initial-build-steps (lib + exe) following ghc options incompatible ghci , have not been passed it: -threaded -o0 configuring ghci following packages: azara-api using main module: 1. package `azara-api' component test:azara-test main-is file: /home/matthew/backup/azara_work/platform/api/test/spec.hs ghci, version 8.0.2: http://www.haskell.org/ghc/ :? <command line>: cannot satisfy -package azara-api-0.1.0.0 (use -v more information)
i not know how past error. what error mean?
i on nixos 17.03.
unfortunately, known bug - https://github.com/commercialhaskell/stack/issues/2790 . seems trivial know, surprisingly tricky fix due how things implemented.
the workaround either load library ghci - stack ghci azara-api:lib azara-api:azara-test
, or more stack ghci --test
.
the other option first build library via stack build
. stack ghci
ought work properly
Comments
Post a Comment