{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/577","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/577/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/577/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/577","id":103892370,"number":577,"title":"ghc-mod cannot find installed dependency","user":{"login":"TheCrafter","id":7687018,"avatar_url":"https://avatars.githubusercontent.com/u/7687018?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCrafter","html_url":"https://github.com/TheCrafter","followers_url":"https://api.github.com/users/TheCrafter/followers","following_url":"https://api.github.com/users/TheCrafter/following{/other_user}","gists_url":"https://api.github.com/users/TheCrafter/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCrafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCrafter/subscriptions","organizations_url":"https://api.github.com/users/TheCrafter/orgs","repos_url":"https://api.github.com/users/TheCrafter/repos","events_url":"https://api.github.com/users/TheCrafter/events{/privacy}","received_events_url":"https://api.github.com/users/TheCrafter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-30T01:03:25Z","updated_at":"2015-08-31T07:47:41Z","closed_at":null,"body":"I use the latest ghc-mod (I downloaded and compiled the master branch). Before I describe the problem here is some information about my environment:\r\nPlatform: `Windows 8.1 x64`\r\ncabal: `version 1.22.6.0 using version 1.22.4.0 of Cabal library`\r\nghc: `version 7.10.2`\r\n\r\nHere is my code:\r\n```\r\nimport qualified  Data.ByteString.Lazy as ByteString\r\nimport qualified  Codec.Compression.GZip as GZip\r\nimport System.Directory\r\n\r\n\r\ntempPath :: FilePath\r\ntempPath = \"D:/Code\"\r\n\r\n\r\nmain :: IO()\r\nmain = do\r\n  Directory.getDirectoryContents tempPath\r\n```\r\n\r\nAnd ghc-mod reports that cannot find the `System,Directory` and it recommends me to add it on depends field of my `.cabal` file. The thing is that I have already inserted it on my `.cabal`file.\r\n\r\nThings get more weird by this fact: Before I tried to install `directory` I installed `zlib` and it worked fine. ghc-mod doesn't complain about that.\r\n\r\nNote that I used a sandbox for both installs.\r\n\r\nAlso note that when I am just trying to compile with cabals i have no problems with the imports.\r\n\r\nFinally I would like to report 2 more problems which may or may not be related.\r\n\r\n* When I try to close emacs, emacs crashes. (Of course that's happening only when `ghc-mod` is initialized, so when I have tried to open at least 1 `.hs`file)\r\n\r\n* I cannot move to next and previous error in emacs. It says `No further notes from Haskell compiler`. (When I move manually my cursor on those errors I can use M-? to inspect them)."},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/136290229","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/577#issuecomment-136290229","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/577","id":136290229,"user":{"login":"TheCrafter","id":7687018,"avatar_url":"https://avatars.githubusercontent.com/u/7687018?v=3","gravatar_id":"","url":"https://api.github.com/users/TheCrafter","html_url":"https://github.com/TheCrafter","followers_url":"https://api.github.com/users/TheCrafter/followers","following_url":"https://api.github.com/users/TheCrafter/following{/other_user}","gists_url":"https://api.github.com/users/TheCrafter/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCrafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCrafter/subscriptions","organizations_url":"https://api.github.com/users/TheCrafter/orgs","repos_url":"https://api.github.com/users/TheCrafter/repos","events_url":"https://api.github.com/users/TheCrafter/events{/privacy}","received_events_url":"https://api.github.com/users/TheCrafter/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T07:47:41Z","updated_at":"2015-08-31T07:47:41Z","body":"It appears that the issue resolved itself after deleting everything from project (including sandbox) and reinstalling them again a couple of times.\r\n\r\nHowever, the last 2 more problems with emacs crashing and the next/previous error not working still remain.\r\n\r\nI will try to install ghc-mod release and not build it from master to see what happens."}}