An example project setup for Haskell using VSCode. Fire those commands hoping for the best.
Install stack
wget -qO- https://get.haskellstack.org/ | sh
Install tools system wide (cd ~)
stack install hlint phoityne-vscode hspec-discover
Build this project
stack build
stack test
You have to export Stack installed binaries if not already in your path
export PATH=$PATH:~/.local/bin
Install nix
bash <(curl https://nixos.org/nix/install)
Install cachix client
nix-env -iA cachix -f https://cachix.org/api/v1/install
Cache hie binaries
cachix use all-hies
Install some HIE for lts-14.21(ghc-8.6.5)
nix-env -iA selection --arg selector 'p: { inherit (p) ghc865; }' -f https://github.com/infinisil/all-hies/tarball/master