{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2709","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2709/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2709/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2709/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/2709","id":102280649,"number":2709,"title":"Haskell-mode error: ghc-mod: unknown command: `map-file'","user":{"login":"IanQS","id":6968573,"avatar_url":"https://avatars.githubusercontent.com/u/6968573?v=3","gravatar_id":"","url":"https://api.github.com/users/IanQS","html_url":"https://github.com/IanQS","followers_url":"https://api.github.com/users/IanQS/followers","following_url":"https://api.github.com/users/IanQS/following{/other_user}","gists_url":"https://api.github.com/users/IanQS/gists{/gist_id}","starred_url":"https://api.github.com/users/IanQS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanQS/subscriptions","organizations_url":"https://api.github.com/users/IanQS/orgs","repos_url":"https://api.github.com/users/IanQS/repos","events_url":"https://api.github.com/users/IanQS/events{/privacy}","received_events_url":"https://api.github.com/users/IanQS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-21T02:30:45Z","updated_at":"2015-08-22T00:19:01Z","closed_at":null,"body":"Sorry, Haskell-mode meaning the Haskell stuff listed here https://github.com/syl20bnr/spacemacs/tree/master/contrib/!lang/haskell#install"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/133594452","html_url":"https://github.com/syl20bnr/spacemacs/issues/2709#issuecomment-133594452","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2709","id":133594452,"user":{"login":"ocecaco","id":7738878,"avatar_url":"https://avatars.githubusercontent.com/u/7738878?v=3","gravatar_id":"","url":"https://api.github.com/users/ocecaco","html_url":"https://github.com/ocecaco","followers_url":"https://api.github.com/users/ocecaco/followers","following_url":"https://api.github.com/users/ocecaco/following{/other_user}","gists_url":"https://api.github.com/users/ocecaco/gists{/gist_id}","starred_url":"https://api.github.com/users/ocecaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocecaco/subscriptions","organizations_url":"https://api.github.com/users/ocecaco/orgs","repos_url":"https://api.github.com/users/ocecaco/repos","events_url":"https://api.github.com/users/ocecaco/events{/privacy}","received_events_url":"https://api.github.com/users/ocecaco/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T00:19:01Z","updated_at":"2015-08-22T00:19:01Z","body":"@IanQS I don't think it's possible to do using Cabal, since the newest version on Hackage is 5.3.0.\r\n\r\nWhat I did was remove the `.cabal` and `.ghc` directories to delete all my existing Cabal packages. (Not sure if there's an easy way to remove only ghc-mod). Then I ran\r\n\r\n```\r\ngit clone https://github.com/kazu-yamamoto/ghc-mod\r\ncd ghc-mod\r\ncabal sandbox init\r\ncabal install --only-dependencies\r\ncabal build\r\n```\r\n\r\nAfter this there is a `ghc-mod` and `ghc-modi` binary in `ghc-mod/dist/ghc-mod` and `ghc-mod/dist/ghc-modi` directories respectively. You can either modify your PATH such that those directories are included, or just move the binaries to some directory in your PATH. (Personally I put them in `~/.cabal/bin`). There's no need to keep the `ghc-mod` directory created when cloning the ghc-mod repo after you've copied the executables to some other directory.\r\n\r\nAlso I'm not sure if the Emacs package which talks to `ghc-mod` is separate from `ghc-mod` itself, but you might have luck with @Ikyushii 's suggestion if you just reinstall the Emacs package and leave the ghc-mod from Cabal alone. (I don't really know enough about Emacs to judge if this would work)"}}