Even if you have the Haskell Platform, you can absolutely install a newer version of cabal-install (the cabal
command line program). cabal install cabal-install
will place the newest version in your local cabal binaries directory, i.e. ~/.cabal/bin/cabal
. In order for this to take precedence over the cabal
that the Platform installed, make sure ~/.cabal/bin
is at the front of your path.
What others have said is correct though. The Haskell Platform is not meant to be a rolling release, and in particular base
should not be upgraded because it is tied to your version of GHC. If you find you need a newer version of a package, and it's not base
, just install that one package. If you keep having issues then upgrading Ubuntu to get a newer version of GHC and/or the Platform is recommended.