{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack-ide/issues/59","labels_url":"https://api.github.com/repos/commercialhaskell/stack-ide/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack-ide/issues/59/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack-ide/issues/59/events","html_url":"https://github.com/commercialhaskell/stack-ide/issues/59","id":104127358,"number":59,"title":"Bug? Stack-ide cannot see an instance declared in another module","user":{"login":"drwebb","id":178769,"avatar_url":"https://avatars.githubusercontent.com/u/178769?v=3","gravatar_id":"","url":"https://api.github.com/users/drwebb","html_url":"https://github.com/drwebb","followers_url":"https://api.github.com/users/drwebb/followers","following_url":"https://api.github.com/users/drwebb/following{/other_user}","gists_url":"https://api.github.com/users/drwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/drwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwebb/subscriptions","organizations_url":"https://api.github.com/users/drwebb/orgs","repos_url":"https://api.github.com/users/drwebb/repos","events_url":"https://api.github.com/users/drwebb/events{/privacy}","received_events_url":"https://api.github.com/users/drwebb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-31T20:23:36Z","updated_at":"2015-08-31T21:16:19Z","closed_at":null,"body":"I have two modules, one, call it \"Foo\" that is declaring an instance of `ToJSON` for a datatype, the other module \"Bar\" is using the `encode` method. For some strange reason, stack-mode is complaining that I haven't declared the ToJSON instance by showing an error in \"Bar\", yet stack when run from the cli it compiles as I expect. When I copy-paste the instance declaration from \"Foo\" to \"Bar\" it compiles in stack-mode, but obviously stack from the cli reports a duplicate instance declaration. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack-ide/issues/comments/136503480","html_url":"https://github.com/commercialhaskell/stack-ide/issues/59#issuecomment-136503480","issue_url":"https://api.github.com/repos/commercialhaskell/stack-ide/issues/59","id":136503480,"user":{"login":"bitemyapp","id":320177,"avatar_url":"https://avatars.githubusercontent.com/u/320177?v=3","gravatar_id":"","url":"https://api.github.com/users/bitemyapp","html_url":"https://github.com/bitemyapp","followers_url":"https://api.github.com/users/bitemyapp/followers","following_url":"https://api.github.com/users/bitemyapp/following{/other_user}","gists_url":"https://api.github.com/users/bitemyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/bitemyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitemyapp/subscriptions","organizations_url":"https://api.github.com/users/bitemyapp/orgs","repos_url":"https://api.github.com/users/bitemyapp/repos","events_url":"https://api.github.com/users/bitemyapp/events{/privacy}","received_events_url":"https://api.github.com/users/bitemyapp/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T21:16:19Z","updated_at":"2015-08-31T21:16:19Z","body":"We've been getting this too, I end up running `stack clean` and then rebuilding/restarting the REPL to fix it."}}