{"action":"created","issue":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/554","labels_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/554/labels{/name}","comments_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/554/comments","events_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/554/events","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/554","id":101528103,"number":554,"title":"ghc-mod 5.3.0.0/master: Cannot add module to context: not interpreted","user":{"login":"lierdakil","id":7275622,"avatar_url":"https://avatars.githubusercontent.com/u/7275622?v=3","gravatar_id":"","url":"https://api.github.com/users/lierdakil","html_url":"https://github.com/lierdakil","followers_url":"https://api.github.com/users/lierdakil/followers","following_url":"https://api.github.com/users/lierdakil/following{/other_user}","gists_url":"https://api.github.com/users/lierdakil/gists{/gist_id}","starred_url":"https://api.github.com/users/lierdakil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lierdakil/subscriptions","organizations_url":"https://api.github.com/users/lierdakil/orgs","repos_url":"https://api.github.com/users/lierdakil/repos","events_url":"https://api.github.com/users/lierdakil/events{/privacy}","received_events_url":"https://api.github.com/users/lierdakil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-08-17T23:05:37Z","updated_at":"2015-08-20T04:58:12Z","closed_at":null,"body":"If I build project prior to running ghc-mod, I get the following error:\r\n\r\n```\r\n$ ghc-mod type pandoc-crossref.hs 13 11\r\nEXCEPTION: types:\r\n           Cannot add module References.Accessors to context: not interpreted\r\n```\r\n\r\nOn clean project, this is not the case:\r\n```\r\n$ cabal clean\r\ncleaning...\r\n$ ~/github/ghc-mod/.cabal-sandbox/bin/ghc-mod type pandoc-crossref.hs 13 11\r\n13 8 13 20 \"(Maybe Format -> Pandoc -> IO Pandoc) -> IO ()\"\r\n13 8 13 23 \"IO ()\"\r\n13 1 13 23 \"IO ()\"\r\n```\r\n\r\nYou can  find sources to reproduce this with at https://github.com/lierdakil/pandoc-crossref, although I suspect any built import will do."},"comment":{"url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/comments/132890590","html_url":"https://github.com/kazu-yamamoto/ghc-mod/issues/554#issuecomment-132890590","issue_url":"https://api.github.com/repos/kazu-yamamoto/ghc-mod/issues/554","id":132890590,"user":{"login":"DanielG","id":199218,"avatar_url":"https://avatars.githubusercontent.com/u/199218?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielG","html_url":"https://github.com/DanielG","followers_url":"https://api.github.com/users/DanielG/followers","following_url":"https://api.github.com/users/DanielG/following{/other_user}","gists_url":"https://api.github.com/users/DanielG/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielG/subscriptions","organizations_url":"https://api.github.com/users/DanielG/orgs","repos_url":"https://api.github.com/users/DanielG/repos","events_url":"https://api.github.com/users/DanielG/events{/privacy}","received_events_url":"https://api.github.com/users/DanielG/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T04:58:12Z","updated_at":"2015-08-20T04:58:12Z","body":"I basically just added a `    print $ isNothing $ maybeGlobalRdrEnv rdr_env` in MkIface.hs:323 btw."}}