Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrade Cabal on Ubuntu 14.04

When I install Haskell/GHC+cabal via sudo apt-get I installed cabal version 1.16. This is obviously not the most up to date version. How would I go about upgrade to at least version 1.18? I tried doing sudo apt-get update and sudo apt-get upgrade.

Edit:

Also when I run cabal install cabal-install it appears to "install" version 1.20 but when I run cabal -V it says cabal 1.16.0

like image 712
Sleep Deprived Bulbasaur Avatar asked Sep 18 '14 01:09

Sleep Deprived Bulbasaur


1 Answers

Fixed it by adding the following line to my ~/.profile: export PATH=$(HOME)/.cabal/bin:$PATH

like image 159
Sleep Deprived Bulbasaur Avatar answered Jan 06 '23 00:01

Sleep Deprived Bulbasaur