TL;DR: Here are the commands in a concise form:
apt update && apt upgrade -y
apt install build-essential libnuma1 libnuma-dev libtinfo-dev libtinfo5 libtinfo6 libc6-dev
apt install llvm* # all the packages (runtimes, tools, linkers avaiable for llvm 9 through 12)
apt install clang ninja-build # I have doubts here but installed these two packages anyway
apt install haskell-stack
stack update # just updating the packages took half an hour or more using an sd card
stack upgrade # it took a couple (close to 3) hours (with a ssd but I believe this process is mostly cpu bound so be prepared for a solid 5 hours with a sd card to complete)
Output for stack --version afterwards
I hope this helps.
Editted:
- Rebooted the pi and ensured that $PATH pointed to /home/$username/.local/bin
-
stack --versionoutput log - Uptime after concluding
stack upgradewas 4 hours. (overclocked pi at 2.0GHz) - Ram usage went a little over 4gb during
Progress 143/168: aeson, mono-traversable - Trashed initial post