The manual says that after installing the stack from the repository (OS - ubuntu 18.04), you need to run the following command:

stack upgrade --binary 

After the upgrade was complete, stack reported that its new version is in ~ / .local / bin . Now I have two versions: one - on the above path, the other - in / usr / bin .

    1 answer 1

    There is no need in this case to stack from the repository. You can immediately install the current version by downloading the installer, as described here: https://docs.haskellstack.org/en/stable/install_and_upgrade/

    Now, after the update, you can safely remove the package:

     sudo apt remove haskell-stack 

    Do not forget to add the path ~/.local/bin to your PATH .

    • Thanks Eugene! - isnullxbh