Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install haskell 8 on ubuntu 16.04

I installed Haskell on ubuntu following the instructions on the Haskell platform website. But I ended up with version 7.10.3. How do I get Haskell 8 on Ubuntu?

like image 460
domoremath Avatar asked Jan 19 '17 10:01

domoremath


3 Answers

I think the de-facto standard for installing Haskell is now using stack.

Here's the official installation instructions.

like image 143
Stephane Rolland Avatar answered Oct 22 '22 22:10

Stephane Rolland


You can get GHC 8.0.2 from hvr's PPA: https://launchpad.net/~hvr/+archive/ubuntu/ghc

To get the latest GHC run:

sudo add-apt-repository ppa:hvr/ghc
sudo apt-get update
sudo apt-get install ghc-8.0.2

The PPA also contains other tools that you might need such as cabal.

like image 26
adamse Avatar answered Oct 22 '22 22:10

adamse


If you don't want to use stack follow these instructions.

Maybe afterwards you want to install the following additional packages:

  • alex
  • happy
  • haddock
  • hlint
  • pandoc

and more depending what you want to do.

If the library yout intstalle ghc, is in your path, you can the remove haskell-platform.

like image 2
Jogger Avatar answered Oct 22 '22 22:10

Jogger