8.1. Tools¶
Install the mentioned Haskell tools.
8.1.1. Installing the compiler¶
Method 1 - platform first
- Install the correct Haskell platform distribution for your system (for instance the package
cabal-install). - Install stack. Either from source with
cabal install stackor by downloading it from the website.
Advantages:
With this approach you’ll have the
ghcandghcias well ascabalandhaddockcommands directly available to you on the command line after installation.Disadvantages:
You’ll have to keep your installation of these tools up to date. If you later run
stack install haddockto get a newer version of haddock it will shadow the previously globally installed tool.- Install the correct Haskell platform distribution for your system (for instance the package
Method 2 - stack first
- Install stack from the website.
- Use the
stack setupcommand on the command line to have stack install ghc for you.
Advantages:
No stray
ghcetc. executables.Disadvantages:
You have to separately install haddock with
stack install haddockif you need haddock directly.Make sure the stack executable is on your
$PATH.Stack can update itself (if you want to). In this case it’ll always install the new version in some user-local binary directory (
~/.local/binon UNIX). Therefore you also have to ensure this directory is on your$PATH. This is also important as all other executables which you install with stack are placed in this directory (including the ones you wrote yourself).
8.1.2. Install some Haskell support for your favourite editor¶
You may ask for help for finding said support.
Also consider the website https://wiki.haskell.org/IDEs and https://wiki.haskell.org/Editors.