Search code examples
haskellubuntuyesod

How to upgrade Yesod to the latest version?


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.


Solution

  • 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