{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/581","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/581/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/581/events","html_url":"https://github.com/commercialhaskell/stack/issues/581","id":94873488,"number":581,"title":"stack failed to install ghc but broke my backups","user":{"login":"pushcx","id":6262,"avatar_url":"https://avatars.githubusercontent.com/u/6262?v=3","gravatar_id":"","url":"https://api.github.com/users/pushcx","html_url":"https://github.com/pushcx","followers_url":"https://api.github.com/users/pushcx/followers","following_url":"https://api.github.com/users/pushcx/following{/other_user}","gists_url":"https://api.github.com/users/pushcx/gists{/gist_id}","starred_url":"https://api.github.com/users/pushcx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushcx/subscriptions","organizations_url":"https://api.github.com/users/pushcx/orgs","repos_url":"https://api.github.com/users/pushcx/repos","events_url":"https://api.github.com/users/pushcx/events{/privacy}","received_events_url":"https://api.github.com/users/pushcx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-14T05:52:31Z","updated_at":"2015-07-14T19:13:45Z","closed_at":"2015-07-14T18:42:58Z","body":"I'm a [newbie Haskell programmer](https://plus.google.com/+MichaelSnoyman/posts/BEqbGbjiBpa). I removed my Arch Linux install of Haskell and installed Slack from the AUR. Tinkering around to get helloworld.hs running in ghci or as a binary, I followed the README.\r\n\r\n1. `stack build` told me to run `stack new`.\r\n2. `stack new` vomited a tree of files all over the current directory (thanks?), then downloaded something. It didn't suggest any next step.\r\n3. I ran `stack build` again and it suggested `stack setup`.\r\n4. `stack setup` claimed to download and install GHC, but `ghc` and `ghci` just return \"command not found\". It did say \"Would add the following to PATH:\" but it seems nuts to have to edit my PATH for every single project I have, so I don't know what to do with that.\r\n5. `stack build` again? It compiled new-template. Still no `ghc` or `ghci` commands.\r\n6. None of the files `stack new` left for me provide any hints. The README suggests running `stack path` and `stack`, The [wiki](https://github.com/commercialhaskell/stack/wiki) pointed me back to the README, but none of the other pages explain why ghc didn't get installed.\r\n7. `stack build` now does nothing and says nothing.\r\n8. Backing up my home directory failed (**!**) because there's a new 1.4GB of files in ~ hiding in .slack. The directory mixes a config file I'd want to back up (~/.slack/global/stack.yaml) with caching, packaging, and binaries that I'd never want to back up. Nothing in the wiki or man page explains how to get this garbage out of my dotfiles.\r\n9. Looking for more info, I learn the word \"stack\" is ungoogleable. Did y'all know that \"stack\" is already a programming term? I give up.\r\n\r\nI suppose I have four issues:\r\n1. Somewhere in here there's a missing step required for installing ghc.\r\n2. There's no documentation of the files `stack new` left in my working directory.\r\n3. Installing `stack` does not magically increase my bandwidth so much that I don't notice an extra 1.4GB prentending to be dotfiles. Breaking my backups is a huge problem.\r\n4. \"stack\" is not a searchable name."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/121345745","html_url":"https://github.com/commercialhaskell/stack/issues/581#issuecomment-121345745","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/581","id":121345745,"user":{"login":"pushcx","id":6262,"avatar_url":"https://avatars.githubusercontent.com/u/6262?v=3","gravatar_id":"","url":"https://api.github.com/users/pushcx","html_url":"https://github.com/pushcx","followers_url":"https://api.github.com/users/pushcx/followers","following_url":"https://api.github.com/users/pushcx/following{/other_user}","gists_url":"https://api.github.com/users/pushcx/gists{/gist_id}","starred_url":"https://api.github.com/users/pushcx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushcx/subscriptions","organizations_url":"https://api.github.com/users/pushcx/orgs","repos_url":"https://api.github.com/users/pushcx/repos","events_url":"https://api.github.com/users/pushcx/events{/privacy}","received_events_url":"https://api.github.com/users/pushcx/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T19:13:45Z","updated_at":"2015-07-14T19:13:45Z","body":"I thought \"setup\" was a global installation command because nothing implied it wasn't. There were no pointers to run `stack ghc` and it's not documented in the readme or wiki.\r\n\r\nCan ~/.stack be safely symlinked so it's not mixed in with dotfiles? That'd be a good note to have in the FAQ. Cabal dumping binaries in personal files is not a relevant reason for stack breaking backups, but at least there'd be a fix. I'd rather leave the undocumented global config file mixed in there not backed up than back up nothing in my home directory.\r\n\r\nThere were two other issues unaddressed here: there's no docs anywhere for the files left by `stack new` and the name 'stack' is not searchable."}}