Haskell

Installation

Use ghcup. I tried using brew, but it seems that "brew install haskell-language-server" does not install the haskell-language-server-wrapper.

curl --proto '=https' --tlsv1.2 -sSf \
     https://get-ghcup.haskell.org \
    | sh

New Project

stack

stack new $name

cabal

A minimal cabal project is much more simple than a stack project.

mkdir $name && cd $name
cabal init \
      --minimal \
      --simple \
      --license=NONE \
      --synopsis "Test project" \
      --package-name $name

rm CHANGELOG.md
sed -i "" '/^extra-source-files/d' $name.cabal

Generates a project like this:

tree -F
#+RESULTS:
.
├── app
│   └── Main.hs
├── mylib.cabal
└── src
    └── MyLib.hs

2 directories, 3 files

Emacs note: projectile doesn't detect .cabal files by default. I added that ability in my Emacs config (e.g. here).