Questions about GHCup, an officially supported installer for Haskell, including the GHC compiler and key development tools.
Questions tagged [ghcup]
24 questions
0
votes
0 answers
Issue downloading HERMIT, selecting old GHC in GHCup
I'm trying to download the HERMIT tool using the command cabal install hermit.
I dowloaded Haskell using GHCup. If I try to install with GHC 9.2.5 (recommended version by GHCup), I get errors like the…

broland
- 11
- 2
0
votes
0 answers
Trouble downloading GHCup on Windows
I am trying to download Haskell using GHCup on a Windows 10 laptop. I copy and pasted this command in a Windows PowerShell window:
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol =…

seeprogramer
- 3
- 1
0
votes
0 answers
How to fix InvalidAbsFile error from stack build
I seem to be getting a peculiar problem which is hard to even search up online.
I'm using stack and have already created a project from my professor but when I try to run it with stack build or stack run
I get this error:
InvalidAbsFile…

Raskolnikov
- 25
- 6
0
votes
0 answers
Ghcup installs stack as "stack-2.7.5.exe" and not "stack.exe" on windows
I have windows 11 and I installed haskell using ghcup. Ghcup installed me a "2.7.5" version of stack, ang in C:\ghcup\bin it's named as stack-2.7.5.exe and not stack.exe. Why is that so? Shouldn't there at least be a wrapper that uses installed…

Egor
- 1
- 1
0
votes
0 answers
Migrating ghcup from C:\ to D:\
I'm trying to migrate GHCUP from my C:\ drive to my D:\ drive. I have adjusted my environment variables for PATH and GHCUP_INSTALL_BASE_PREFIX to show the new drive. What else do I need to change so my IDE can find the runhaskell command. My IDE can…
0
votes
0 answers
What may cause alex package build failure?
So I was trying to set up a Haskell project (ghcup-hs to be precise) but all attempts at building it, be it just cabal run or using HLS in VSCode, fail at alex package. In the terminal, it says "Building", my computer gets hot and loud, and then I…

charrsky
- 11
- 2
0
votes
1 answer
Replacing an old version of ghc (installed with choco) with the newest ghc (installed with ghcup)
I had ghc 8.10.1 (on Windows 10) that I installed back when choco was the recommended installation option. Now I wanted to update ghc and heard that ghcup is the new preferred way to install. I used ghcup according to the instructions and, as far as…

Liisi
- 329
- 1
- 6
0
votes
0 answers
How to uninstall GHCup and cabal after windows reinstallation
Before reinstalling windows (both old and new are 10), I've run unins.exe file, but C:\Haskell_Platform folder was not deleted completely (C:\Haskell_Platform\cabal and C:\Haskell_Platform\ghcup-gho30eys.v5c 0.7 GB and 5.5 GB respectively) were…

FoxZ322
- 61
- 4
0
votes
1 answer
How to run ghc 8.10.7 installed via GHCup on Windows 10?
I have just installed GHC 8.10.7 via GHCup on my Windows 10. I have an earlier release already installed (ghc 9.2.1). After installing ghc 8.10.7 I got the following info:
In order to run ghc and cabal, you need to adjust your PATH variable.
To do…

ezyman
- 155
- 8