{"action":"created","issue":{"url":"https://api.github.com/repos/haskell-lang/haskell-lang/issues/35","repository_url":"https://api.github.com/repos/haskell-lang/haskell-lang","labels_url":"https://api.github.com/repos/haskell-lang/haskell-lang/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/haskell-lang/haskell-lang/issues/35/comments","events_url":"https://api.github.com/repos/haskell-lang/haskell-lang/issues/35/events","html_url":"https://github.com/haskell-lang/haskell-lang/issues/35","id":153123967,"number":35,"title":"Detect the client plateform for Stack installation instructions","user":{"login":"ThibaudDauce","id":1770543,"avatar_url":"https://avatars.githubusercontent.com/u/1770543?v=3","gravatar_id":"","url":"https://api.github.com/users/ThibaudDauce","html_url":"https://github.com/ThibaudDauce","followers_url":"https://api.github.com/users/ThibaudDauce/followers","following_url":"https://api.github.com/users/ThibaudDauce/following{/other_user}","gists_url":"https://api.github.com/users/ThibaudDauce/gists{/gist_id}","starred_url":"https://api.github.com/users/ThibaudDauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThibaudDauce/subscriptions","organizations_url":"https://api.github.com/users/ThibaudDauce/orgs","repos_url":"https://api.github.com/users/ThibaudDauce/repos","events_url":"https://api.github.com/users/ThibaudDauce/events{/privacy}","received_events_url":"https://api.github.com/users/ThibaudDauce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell-lang/haskell-lang/labels/Behaviour","name":"Behaviour","color":"bfdadc"},{"url":"https://api.github.com/repos/haskell-lang/haskell-lang/labels/Enhancement","name":"Enhancement","color":"c2e0c6"},{"url":"https://api.github.com/repos/haskell-lang/haskell-lang/labels/P1:%20Must","name":"P1: Must","color":"b60205"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-05-04T21:54:33Z","updated_at":"2016-05-06T12:45:53Z","closed_at":null,"body":"Hi,\r\n\r\nI think it could be great to detect the OS of the visitor to reduce the huge list \"Instructions for Windows, Mac OS X, Ubuntu, Debian, CentOS / Red Hat / Amazon Linux, Fedora, openSUSE / SUSE Linux Enterprise, Arch Linux, NixOS, Linux (general), FreeBSD (unofficial)\". If the user agent is not correct, the visitor can still click on the general \"View the full Stack installation page\".\r\n\r\nA little bit like the homepage of Rust (https://www.rust-lang.org/), one link \"Install\" and if the user agent is not correct \"Other Downloads\" but instead of the simple \"Install\", show a list of matching OS instructions.\r\n\r\nI'm not sure it's possible to really reduce the list for Linux users (my ArchLinux just send Linux in user agent…) but at least for Windows and OS X."},"comment":{"url":"https://api.github.com/repos/haskell-lang/haskell-lang/issues/comments/217429599","html_url":"https://github.com/haskell-lang/haskell-lang/issues/35#issuecomment-217429599","issue_url":"https://api.github.com/repos/haskell-lang/haskell-lang/issues/35","id":217429599,"user":{"login":"borsboom","id":2164261,"avatar_url":"https://avatars.githubusercontent.com/u/2164261?v=3","gravatar_id":"","url":"https://api.github.com/users/borsboom","html_url":"https://github.com/borsboom","followers_url":"https://api.github.com/users/borsboom/followers","following_url":"https://api.github.com/users/borsboom/following{/other_user}","gists_url":"https://api.github.com/users/borsboom/gists{/gist_id}","starred_url":"https://api.github.com/users/borsboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borsboom/subscriptions","organizations_url":"https://api.github.com/users/borsboom/orgs","repos_url":"https://api.github.com/users/borsboom/repos","events_url":"https://api.github.com/users/borsboom/events{/privacy}","received_events_url":"https://api.github.com/users/borsboom/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T12:45:53Z","updated_at":"2016-05-06T12:45:53Z","body":"You might just want to point most people toward the shell-script installer rather than the distro packages, since those may actually involve more steps to get working (getting the key, adding the deb/rpm repo, etc.).  The shell script installer could also figure out the distro and use the appropriate package, but that would require `sudo`."}}