{"action":"closed","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/665","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/665/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/665/events","html_url":"https://github.com/commercialhaskell/stack/issues/665","id":96772933,"number":665,"title":"`stack ghci` doesn't work while `stack build` does","user":{"login":"Fuuzetsu","id":893115,"avatar_url":"https://avatars.githubusercontent.com/u/893115?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuuzetsu","html_url":"https://github.com/Fuuzetsu","followers_url":"https://api.github.com/users/Fuuzetsu/followers","following_url":"https://api.github.com/users/Fuuzetsu/following{/other_user}","gists_url":"https://api.github.com/users/Fuuzetsu/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuuzetsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuuzetsu/subscriptions","organizations_url":"https://api.github.com/users/Fuuzetsu/orgs","repos_url":"https://api.github.com/users/Fuuzetsu/repos","events_url":"https://api.github.com/users/Fuuzetsu/events{/privacy}","received_events_url":"https://api.github.com/users/Fuuzetsu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/blocked","name":"blocked","color":"fbca04"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/component:%20ghci","name":"component: ghci","color":"bfdadc"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"chrisdone","id":11019,"avatar_url":"https://avatars.githubusercontent.com/u/11019?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdone","html_url":"https://github.com/chrisdone","followers_url":"https://api.github.com/users/chrisdone/followers","following_url":"https://api.github.com/users/chrisdone/following{/other_user}","gists_url":"https://api.github.com/users/chrisdone/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdone/subscriptions","organizations_url":"https://api.github.com/users/chrisdone/orgs","repos_url":"https://api.github.com/users/chrisdone/repos","events_url":"https://api.github.com/users/chrisdone/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdone/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":96,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2015-11-05T06:45:32Z","due_on":"2015-12-31T08:00:00Z","closed_at":null},"comments":18,"created_at":"2015-07-23T09:44:18Z","updated_at":"2015-11-05T06:45:32Z","closed_at":"2015-11-05T06:45:32Z","body":"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:\r\n\r\n```\r\nWe have a test with\r\n\r\n#include <Rversion.h>\r\n\r\nThis is provided by the R language. On my system, the R/lib is in a\r\nnon-standard location.\r\n\r\nNevertheless, my CPP/gcc are wrapped in a script which uses NIX_LDFLAGS\r\nenv var which amongst other things has\r\n-L/nix/store/jvvpcckvzybr7y0zmj1x5psb5sy7ipa7-R-3.2.1/lib\r\n\r\nSo everything works when I stack build.\r\n\r\nBut when I try to use ‘stack ghci’ on the project, I get\r\n\r\n     fatal error: Rversion.h: No such file or directory\r\n     #include <Rversion.h>\r\n\r\nIs there anything I can do so ‘stack ghci’ just works like ‘stack build’\r\ndoes?\r\n```\r\n\r\nIn my case it is about CPP being used but this is a bit of a general question.\r\n\r\nUsing stack from a day or so old git checkout."}}