Questions tagged [ghcup]

Questions about GHCup, an officially supported installer for Haskell, including the GHC compiler and key development tools.

24 questions
6
votes
0 answers

GHCup installed with HLS (latest) doesn't work with VS Code HLS Extension for Intellisense

Context: I run a Windows machine, and I've installed the Haskell Toolchain using GHCup. Initially, I selected "Y" to all the options mentioned during setup. Stack, Cabal, ghc (8.10.7 - recommended) worked and were/are on path (installation…
5
votes
1 answer

ghcup install: Permission denied when writing to ~/.ghcup/cache directory

I'm attempting to install ghcup on Ubuntu with: curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh using the default options (prepend to .bashrc, don't install HLS, dont install Stack). The problem is that I'm receiving a…
Austin T
  • 121
  • 3
4
votes
1 answer

GHCi cannot find documentations

I installed Haskell on Windows using ghcup. While using GHCi, ":doc name" answers back with an error message. Some examples are: ghci> :doc (++) ghc-9.2.5.exe: Can't find any documentation for GHC.Base. This is probably because the module was…
aaay
  • 67
  • 5
4
votes
1 answer

Installing GHCup vs vanilla GHC for haskell

I want to run Haskell programs(Mostly compiling binaries) but I don't need the other, dare I say, bloat along with the compiler. I just want to install the compiler and start writing code. Just like you would do with something like C/C++. You…
Tony
  • 81
  • 9
3
votes
1 answer

How to do unattended Haskell installation?

I've tried the following command curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh -s install ghcup ghc cabal stack hls but it just runs the standard interactive installer.
Richard
  • 14,798
  • 21
  • 70
  • 103
3
votes
0 answers

Troubles getting the Haskell extension for VS Code to work

I am using VS Code 1.68.1 on Windows 10 and have installed the Haskell language support plugin. I tried to install ghcup but the installation script just fails with no error message and the IRC channel #ghcup wasn't able to help so I've given up on…
Motorhead
  • 928
  • 6
  • 16
3
votes
3 answers

How do I fix this error when installing GHC with ghcup?

I'm trying to install GHC with ghcup on an windows laptop running an Ubuntu subsystem. I keep getting the same error and I don't even really know what is going wrong. Here are the error messages: [ Info ] verifying digest of:…
NFTLevi
  • 43
  • 1
  • 5
2
votes
1 answer

can't install ghc in nixos

I installed minimal edition of nixos on vm, and then install some pkgs like i3, firefox, code, ... but when i want to install ghc compiler of haskell i encounter with a problem i used ghcup from its offical site for installing haskell ecosystem it…
xmoooz
  • 411
  • 5
  • 8
1
vote
1 answer

Unknown architecture when attempting to install GHCup on Red Hat linux

I would like to install Cabal on my POWER8 RHEL 7.9 system. Instructions here and then here suggested to run this command. curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh Upon running this I answered all the questions with…
Morag Hughson
  • 7,255
  • 15
  • 44
1
vote
2 answers

How to get a working Haskell VS Code setup with ghcup?

I installed Haskell via ghcup I have installed the HLS via ghcup I have ghcup set 9.6.1 I have the VS Code extension: https://marketplace.visualstudio.com/items?itemName=haskell.haskell When I open the project in VS Code I get the following…
Anentropic
  • 32,188
  • 12
  • 99
  • 147
1
vote
1 answer

Can't update ghc on Windows

Trying to update ghcup with ghc (ghcup install ghc 9.4.3) results in an error: [ Warn ] New cabal version available. To upgrade, run 'ghcup install cabal 3.8.1.0' [ Info ] verifying digest of: gs.exe [ Info ] downloading:…
orsnmkhl
  • 11
  • 1
1
vote
1 answer

`Haskell` extension for `VSCode` not working on `Linux`

I installed ghcup and: Stack 2.9.1 HLS 1.8.0 cabal 3.6.2 GHC 9.2.5 All of them are the recommended versions(I verified it using ghcup tui). Then I installed the Haskell extension in VSCode. Unfortunately, it doesn't work. I get syntax highlighting…
1
vote
2 answers

How do I fix this error when tring to install ghc from ghcub?

Here is the error message: [ Info ] Merging file tree from "C:\ghcup\tmp\ghcup-d5bf0fe7341a" to "C:\ghcup\ghc\8.10.7" [ Warn ] Couldn't remove build dir C:\ghcup\tmp\ghcup-d5bf0fe734as:…
ali_r
  • 11
  • 5
1
vote
0 answers

ghcup install fails when trying to install cabal

When trying to install ghcup using curl from the official page, it throws the following error. curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh Ubuntu: Debug: Identified Platform as: Linux Ubuntu, 20.04 Debug: last access was…
Orelvis15
  • 306
  • 4
  • 11
0
votes
0 answers

curl: (60) error on installation of GHCup for Haskell on Mac High Sierra 10.13.6

I am a beginner looking to learn basics of Haskell before my first term at university. I recently installed GHCup for Haskell (mac) using the terminal window command curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh However,…
1
2