Reputation: 1456
After I did a
cabal install yesod
I did a
yesod version
But it outputs 0.10.2.1. The latest version I believe is 1.3
How do I upgrade to the latest version? I'm trying to set yesod on an Ubuntu server.
Upvotes: 2
Views: 708
Reputation: 375685
Add cabal installed packages to your path:
export PATH="$HOME/.cabal/bin":$PATH
into the terminal.
This means you can run yesod as yesod
rather than:
~/.cabal/bin/yesod
Upvotes: 0
Reputation: 6738
To deal with installed packages there is ghc-pkg, so to remove yesod
ghc-pkg unregister yesod
This don't remove executables, so
rm ~/.cabal/bin/yesod
Then update the package list
cabal update
Then cabal install will select the latest version compatible (based on the "base" package dependency) with your ghc version (if I am not wrong)
cabal install yesod
Upvotes: 2