{"action":"closed","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/656","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/656/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/656/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/656","id":58500187,"number":656,"title":"[Haskell layer] Autocompletion breaks with Cabal versions > 1.20.0.6","user":{"login":"bjarkevad","id":1748368,"avatar_url":"https://avatars.githubusercontent.com/u/1748368?v=3","gravatar_id":"","url":"https://api.github.com/users/bjarkevad","html_url":"https://github.com/bjarkevad","followers_url":"https://api.github.com/users/bjarkevad/followers","following_url":"https://api.github.com/users/bjarkevad/following{/other_user}","gists_url":"https://api.github.com/users/bjarkevad/gists{/gist_id}","starred_url":"https://api.github.com/users/bjarkevad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjarkevad/subscriptions","organizations_url":"https://api.github.com/users/bjarkevad/orgs","repos_url":"https://api.github.com/users/bjarkevad/repos","events_url":"https://api.github.com/users/bjarkevad/events{/privacy}","received_events_url":"https://api.github.com/users/bjarkevad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/contrib","name":"contrib","color":"207de5"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/documentation%20:-%3E","name":"documentation :->","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-22T11:54:24Z","updated_at":"2015-10-21T20:51:07Z","closed_at":"2015-10-21T20:51:07Z","body":"There's an issue with `ghc-mod` which causes `company-ghc` to break when using Cabal versions > 1.20.0.6. \r\nThis is a known issue, and it should be fixed with the release of GHC 7.10, but for now it might be a good idea to warn Spacemacs users of the issue.\r\nA solution to this problem is to have an isolated \"emacs cabal\" sandbox where the layer dependencies are installed:\r\n```\r\nmkdir ~/.cabal-emacs\r\ncd ~/.cabal-emacs\r\ncabal sandbox init\r\ncabal install cabal-install-1.20.0.6  #install the latest supported cabal\r\ncabal install stylish-haskell hlint ghc-mod-5.2.1.2 #install our dependencies\r\n```\r\n(Note that the ghc-mod version has to explicit, for some reason cabal tries to install a very old version otherwise)\r\nand then in `~/.spacemacs`:\r\n```elisp\r\n(add-to-list 'exec-path \"~/.cabal-emacs/.cabal-sandbox/bin/\")\r\n```\r\n"}}