Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install the latest Haskell Platform on debian?

I want to install the latest Haskell Platform on my Raspberry Pi.

Unfortunately my linux-fu is very weak. I can apt-get install haskell-platform which works, as far as it goes, but installs a very old version from the official package repository. Part of the code I want to compile only compiles against GHC 7.8.

like image 371
Doug McClean Avatar asked Aug 16 '14 19:08

Doug McClean


People also ask

How do I download Haskell on Linux?

Run the command "$ sudo apt-get install haskell-platform" and press Enter. It will automatically start downloading Haskell on your system after authenticating you with the root password. After installing, you will receive a confirmation message.

How do I know if I have Haskell installed?

If you have installed the Haskell Platform, open a terminal and type ghci (the name of the executable of the GHC interpreter) at the command prompt. Alternatively, if you are on Windows, you may choose WinGHCi in the Start menu. And you are presented with a prompt. The Haskell system now attentively awaits your input.


2 Answers

You can get the latest GHC Debian Packages from http://deb.haskell.org

Instructions for installation here

like image 137
katychuang Avatar answered Sep 27 '22 22:09

katychuang


As the comments discuss, the experimental suite contains (very) recent ghcs (including ghc release candidates).

You can install packages from there like so:

apt-get update
apt-get -t experimental install packagename

unstable also contains ghcs that are actually released.

And the generic linux binary platform also will work with debian.

like image 45
sclv Avatar answered Sep 27 '22 20:09

sclv