Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Haskell on Ubuntu 12

Tags:

haskell

ubuntu

I skimmed some tutorials about installing Haskell on Ubuntu. They basically told about Ubuntu 11 and mentioned that it took a lot of effort. I found nothing about installing Haskell on Ubuntu 12.

Is there any tutorial or something about how to do it? Is there an installer for Ubuntu 12 x64?

like image 975
Alan Coromano Avatar asked Dec 20 '12 03:12

Alan Coromano


3 Answers

I think

sudo aptitude install haskell-platform

should do the trick.

On second thoughts, if you do not have aptitude installed, you can do the same with

sudo apt-get install haskell-platform

From there, you can access the REPL by invoking ghci from the command line.

like image 77
Edwin Dalorzo Avatar answered Oct 22 '22 08:10

Edwin Dalorzo


On Ubuntu 13.04, I had to do the following and I wanted to install herbalizer haml -> erb converter.

sudo apt-get install ghc6 ghc6-prof ghc6-doc cabal-install
cabal update
cabal install herbalizer
sudo ln ~/.cabal/bin/herbalizer /usr/bin/herbalizer
like image 39
Zoltan Avatar answered Oct 22 '22 08:10

Zoltan


Well all you need to run Haskell is to install GHCI by typing these commands:

sudo apt-get install ghc-ghci

Now you can run it by writing ghci in your terminal. You can compile your files by the following command once in the ghci prompt:

:load File

Hope this will help

like image 1
Habchi Avatar answered Oct 22 '22 06:10

Habchi