Skip to content

stack ghci doesn't work while stack build does #665

@Fuuzetsu

Description

@Fuuzetsu

I have a project here where stack build works happily but stack ghci does not. I would expect that if stack build can build the project, stack ghci should have no problem giving me a repl. I inline the description of the particular issue from the mailing list:

We have a test with

#include <Rversion.h>

This is provided by the R language. On my system, the R/lib is in a
non-standard location.

Nevertheless, my CPP/gcc are wrapped in a script which uses NIX_LDFLAGS
env var which amongst other things has
-L/nix/store/jvvpcckvzybr7y0zmj1x5psb5sy7ipa7-R-3.2.1/lib

So everything works when I stack build.

But when I try to use ‘stack ghci’ on the project, I get

     fatal error: Rversion.h: No such file or directory
     #include <Rversion.h>

Is there anything I can do so ‘stack ghci’ just works like ‘stack build’
does?

In my case it is about CPP being used but this is a bit of a general question.

Using stack from a day or so old git checkout.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions