sudo apt update
sudo apt upgrade
# reboot machine
sudo apt install neovim haskell-stack libicu-dev libtinfo-dev libgmp-dev zlib1g-dev
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
sudo apt install nodejs
# This avoids installing npm first
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
mkdir ~/.config
# Add minimal config to another repository
git clone https://github.com/chiroptical/neovim-setup ~/.config/nvim
nvim -c ":PlugInstall" -es
stack upgrade --force-download
- Install haskell-language-server
git clone https://github.com/haskell/haskell-language-server.git --recurse-submodules
cd haskell-language-server/
git checkout 0.3.0
stack ./install.hs latest
cd ~
stack new hello-world --resolver=nightly-2020-06-29
cd hello-world
stack build
nvim app/Main.hs # Try `,cd` on `putStrLn`