Run Windows PowerShell (not as Administrator unless specifically required by your security policy).
GHCup will also offer to install MSYS2, which provides the Unix-like environment and C-toolchain (like gcc ) that Haskell needs to compile on Windows.
Copy and paste the following official command into your terminal: powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { & ([ScriptBlock]::Create((Invoke-WebRequest https://get-ghcup.haskell.org -UseBasicParsing))) } catch { Write-Error $_ } Use code with caution.
Close your terminal and open a new one. Type the following commands to ensure everything is working: ghc --version (Check the compiler) ghci (Open the interactive REPL; type :q to exit) cabal --version (Check the package manager) Why the Haskell Platform was Deprecated
The installer will ask if you want to install GHC , Cabal , Stack , and the Haskell Language Server (HLS) . For a complete experience equivalent to the old "Haskell Platform," choose to install all of them.
The Haskell Platform followed a "batteries included" philosophy similar to Python. However, it became difficult to maintain because it bundled specific versions of libraries that often conflicted with newer projects. The new approach with allows you to: Downloads - Haskell.org
Press Enter to accept the default location (usually C:\ghcup ).