installing haskell

First you need to install GHCup by running:

Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { Invoke-Command -ScriptBlock Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing)) -ArgumentList $true } catch { Write-Error $_ }

The haskell-language-server seems mostly optional, especially if your IDE will install extension support as a plug-in (in my case vscode). For stack, it's an alternative to cabal but is sometimes needed. In my case I'll install it. Take the defaults for the rest unless you want to not have it on your desktop, and it should install.

Right after this, do

cabal install hlint

This will let you do linting. All of this installation might take a while (and open up MinGW x64), so in the meantime look at ide support.