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?
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With