Skip to content

2b3a. Install Haskell on Windows Natively

You’re probably better using Haskell on WSL2, as it is much faster, but if for any reason you prefer running natively on Windows:

Just use GHCup. Use the official command, which would be a variation of:

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

Install to the default locations to avoid conflicts and whatsoever.

It gets stuck in Merging file tree from "C:/ghcup\tmp\ghcup-d97ad327d759c2c1\ghc-9.4.8-x86_64-unknown-mingw32" to "C:/ghcup\ghc\9.4.8" but wait a while, for me it took 15 minutes.