{"action":"closed","issue":{"url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/54","labels_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/54/comments","events_url":"https://api.github.com/repos/atom-haskell/haskell-ghc-mod/issues/54/events","html_url":"https://github.com/atom-haskell/haskell-ghc-mod/issues/54","id":107115702,"number":54,"title":"how to / some way to set different per-project paths to ghc-mod","user":{"login":"wolftune","id":2801853,"avatar_url":"https://avatars.githubusercontent.com/u/2801853?v=3","gravatar_id":"","url":"https://api.github.com/users/wolftune","html_url":"https://github.com/wolftune","followers_url":"https://api.github.com/users/wolftune/followers","following_url":"https://api.github.com/users/wolftune/following{/other_user}","gists_url":"https://api.github.com/users/wolftune/gists{/gist_id}","starred_url":"https://api.github.com/users/wolftune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolftune/subscriptions","organizations_url":"https://api.github.com/users/wolftune/orgs","repos_url":"https://api.github.com/users/wolftune/repos","events_url":"https://api.github.com/users/wolftune/events{/privacy}","received_events_url":"https://api.github.com/users/wolftune/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-18T02:10:11Z","updated_at":"2016-01-26T17:55:51Z","closed_at":"2016-01-26T17:55:51Z","body":"Since Stack supports having projects on the same system use multiple versions of GHC, it would be ideal for haskell-ghc-mod to recognize somehow which ghc-mod to use for a given project.\r\n\r\nPerhaps a dot file in the project directory could be used to pass info to haskell-ghc-mod? I'm not sure what other approach could make sense.\r\n\r\nThe process as I imagine it would be this, in the project directory: `stack build ghc-mod` then `stack exec which ghc-mod` will output the full path to the ghc-mod built for that project. Then, that path can be somehow used by haskell-ghc-mod when using the particular project and could vary when working on a different project, depending on if they use a different GHC etc.\r\n\r\n*Note* ghc-mod must be 5.4 or later for Stack, and I think that will be in LTS-3.6, so for any *older* projects using older snapshots, ghc-mod-5.4.0.0 (or some later version) will have to be added to stack.yaml*"}}