The Haskell Tool Stack is a great tool for reliably building Haskell projects. Unfortunately its latest release deprecated the stack image command, a vital part of my build process. I needed to keep my CI working until I have time to wrangle a replacement for the command, but I couldn’t find an easy way to install an older version of Stack.

I ended up using the raw install script from a previous GitHub release just like I would use the script hosted at https://get.haskellstack.org. The following let me install Stack 1.9.3:

sudo curl -sSL https://raw.githubusercontent.com/commercialhaskell/stack40cf7b37526b86d1676da82167ea8758a854953b/etc/scripts/get-stack.sh | sh &&