-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load interface for 'Prelude' when invoking GHCi with test target #1222
Comments
Living without REPL sometimes can be quite painful. Is there something I can do to use REPL with non-default build target? |
@mrkkrp I figured that your repro case is Can you please close this issue if the latest stack version fixes the issue? |
@mgsloan, It works now! Thank you very much. |
I have the same issue. How did you upgrade your version of stack? I did "stack upgrade" but it said I'm at the latest. I have a workaround for now. I just ":l test/test.hs", but it would be nice to just load my test suite directly. |
@mac10688 |
* master: (106 commits) Fix ghci -package-id for lib dep from test #1222 Fix passing of include dirs to GHCI #1222 Minor change to some local var naming Fix a copy-o which breaks ghci test targets #1222 Only ask for commit count once when compiling Move Windows installers above manual download Import all modules after loading them (#995) replace if then else with case matching (multiway if) Control/Concurrent/Execute.hs : redundant do Use stack setup so you can ignore most of the output Don't cache the GHC folder Strip -static before passing to GHCi (#1094) Fix: unlisted files in tests and benchmarks trigger extraneous second build (fixes #838) Don't fail when registering/looking up library for executable-only packages #1232 Fix help for default true bool flag's enable hint Rebuild when cabal file is changed watched command: show files, not directories Update changelog Fix: Haddocks not copied for dependencies (fixes #1105) Remove redundant Version from InstalledMap ...
I'm trying to switch to Stack completely and so I need to use it to run REPL. As I understand
stack ghci
is the correct command for this. I have a project with a library, two test suites and a benchmark. This command works OK:Then I can use
:m
to load file of interest (otherwise all modules are loaded at once, given that some of them are intended to be imported qualified, it's not what I usually want). However, when I need to work with tests, I get this:How is that? The test suite specifies
base >= 4.6 && < 5
in Cabal file, so it cannot be hidden. I would normally think that this is sort of problem with my configuration, butstack test
and other commands work fine.The text was updated successfully, but these errors were encountered: