{"action":"created","issue":{"url":"https://api.github.com/repos/snoyberg/minghc/issues/18","labels_url":"https://api.github.com/repos/snoyberg/minghc/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/snoyberg/minghc/issues/18/comments","events_url":"https://api.github.com/repos/snoyberg/minghc/issues/18/events","html_url":"https://github.com/snoyberg/minghc/issues/18","id":53263647,"number":18,"title":"Order of path environment variable. ","user":{"login":"taekyunk","id":1862652,"avatar_url":"https://avatars.githubusercontent.com/u/1862652?v=3","gravatar_id":"","url":"https://api.github.com/users/taekyunk","html_url":"https://github.com/taekyunk","followers_url":"https://api.github.com/users/taekyunk/followers","following_url":"https://api.github.com/users/taekyunk/following{/other_user}","gists_url":"https://api.github.com/users/taekyunk/gists{/gist_id}","starred_url":"https://api.github.com/users/taekyunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taekyunk/subscriptions","organizations_url":"https://api.github.com/users/taekyunk/orgs","repos_url":"https://api.github.com/users/taekyunk/repos","events_url":"https://api.github.com/users/taekyunk/events{/privacy}","received_events_url":"https://api.github.com/users/taekyunk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-02T17:03:54Z","updated_at":"2015-01-03T21:39:00Z","closed_at":null,"body":"I tried 'minghc-7.8.3' for 64bit version on Windows 8.1.\r\n\r\nI noticed that the path for \"%APPDATA%\\cabal\\bin\" is added as the last one. Since updated cabal.exe will be installed there when we do `cabal install cabal-install`, I think it might be better to add %APPDATA%\\cabal\\bin as the first one. If not, windows will always find the old cabal.exe installed in ...\\MinGHC-7.8.3\\bin\\."},"comment":{"url":"https://api.github.com/repos/snoyberg/minghc/issues/comments/68610632","html_url":"https://github.com/snoyberg/minghc/issues/18#issuecomment-68610632","issue_url":"https://api.github.com/repos/snoyberg/minghc/issues/18","id":68610632,"user":{"login":"ndmitchell","id":1651197,"avatar_url":"https://avatars.githubusercontent.com/u/1651197?v=3","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T21:39:00Z","updated_at":"2015-01-03T21:39:00Z","body":"It's not a simple problem to solve. The user is more than likely to have an out-of-date `cabal` in their `%APPDATA%` before installing MinGHC, so we want the latest one we ship to take precedence. Of course, if the user does `cabal install cabal-install` we want that version to take precedence. Unfortunately there's no way to do that with the `%PATH%`, and on the assumption `cabal` changes rarely, our approach isn't bad (in practice, `cabal` has changed 4 times in the last week, so either it's not a good assumption, or it's not a good assumption over the festive period).\r\n\r\nWe always write to the user `%PATH%` because that's safer, and doesn't require admin access, and is always able to uninstall from. As @taekyunk says, I don't think that's a relevant factor here.\r\n\r\nNice catch on not expanding though, that should be easy to fix."}}