Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify download page further #93

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 12 additions & 27 deletions downloads.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,25 @@ This page describes the installation of the Haskell toolchain, which consists of

* [haskell-language-server](https://github.com/haskell/haskell-language-server) (optional): A language server for developers to integrate with their editor/IDE

Select your platform to get more specific installation instructions:
**For a simple interactive installation, follow the instructions at [GHCup](https://www.haskell.org/ghcup/).**

* [Linux, OS X and FreeBSD](#linux-mac-freebsd)

* [Windows](#windows)

Alternative methods to install GHC are listed [here](#ghc-install-manual).

* * *

## Platform specific instructions

### Linux, OS X and FreeBSD { #linux-mac-freebsd }

1. Install GHC, cabal-install and haskell-language-server via [GHCup](https://www.haskell.org/ghcup/)
2. To install stack, follow the instructions [here](https://docs.haskellstack.org/en/stable/install_and_upgrade/)

*Note: Apple Silicon is not yet supported. You will have to install GHC in `arch -x86_64` compatibility mode using rosetta. See [here](https://derflounder.wordpress.com/2020/11/17/installing-rosetta-2-on-apple-silicon-macs/) and [here](https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/101) for more pointers.*

### Windows { #windows }

1. Install GHC and cabal-install via Chocolatey
- [Configure Chocolatey](https://chocolatey.org/install) on your machine
- At an elevated command prompt, run `choco install haskell-dev`, followed by `refreshenv`.
2. To install stack, follow the instructions [here](https://docs.haskellstack.org/en/stable/install_and_upgrade/#windows)
Alternative methods to install toolchain components are listed [below](#ghc-install-manual).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should combine this section with the next section, or rephrase this. saying "below" when it's literally the next line of text reads a little oddly to me.


* * *

## Alternative installation options { #ghc-install-manual }

* [Using a package manager on linux](#package-manager)
* [Using a package manager](#package-manager)

* [Official bindists](#bindists)

* [Building from source](#from-source)

* [Other options](#other-options)

### Using a package manager on Linux { #package-manager }
### Using a package manager { #package-manager }

#### Linux

Refer to your distribution package manager documentation. For convenience, below are a few distribution specific instructions, outlining 3rd party repository use as well.

Expand Down Expand Up @@ -165,11 +145,16 @@ sudo emerge --ask dev-lang/ghc dev-haskell/cabal-install

</div>

#### Windows

1. [Configure Chocolatey](https://chocolatey.org/install) on your machine
2. At an elevated command prompt, run `choco install haskell-dev haskell-stack`, followed by `refreshenv`.

### Official bindists { #bindists }

GHC bindists are binary packages built as part of the GHC release process and are guaranteed to have passed the test suite. The installation process is a bit manual, so this is meant for power users.

The [GHC download page](https://www.haskell.org/ghc/download.html) gives an extensive overview of available options. Navigate to the version you seek and click on **Binary packages**. You may also visit [downloads.haskell.org/~ghc](https://downloads.haskell.org/~ghc/) for the complete list. Likewise, to install cabal-install manually visit [downloads.haskell.org/~cabal](https://downloads.haskell.org/~cabal/cabal-install-latest/).
The [GHC download page](https://www.haskell.org/ghc/download.html) gives an extensive overview of available options. Navigate to the version you seek and click on **Binary packages**. You may also visit [downloads.haskell.org/~ghc](https://downloads.haskell.org/~ghc/) for the complete list. Likewise, to install cabal-install manually visit [downloads.haskell.org/~cabal](https://downloads.haskell.org/~cabal/cabal-install-latest/). Stack binaries can be found on the [release page](https://github.com/commercialhaskell/stack/releases).

Haskell-language-server binaries can be found [here](https://github.com/haskell/haskell-language-server/releases/).

Expand Down