Skip to content

Help needed installing ghcup via WSL2 on surface pro

Screenshot__3_

lilgrass@DESKTOP-G3BFDR1:/mnt/c/WINDOWS/system32$ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Welcome to Haskell!

This script will download and install the following binaries:

  • ghcup - The Haskell toolchain installer
  • ghc - The Glasgow Haskell Compiler
  • cabal - The Cabal build tool for managing Haskell software
  • stack - (optional) A cross-platform program for developing Haskell projects
  • hls - (optional) A language server for developers to integrate with their editor/IDE

ghcup installs only into the following directory, which can be removed anytime: /home/lilgrass/.ghcup

Press ENTER to proceed or ctrl-c to abort. Note that this script can be re-run at any given time.


Detected bash shell on your system... Do you want ghcup to automatically add the required PATH variable to "/home/lilgrass/.bashrc"?

[P] Yes, prepend [A] Yes, append [N] No [?] Help (default is "P").

p

Do you want to install haskell-language-server (HLS)? HLS is a language-server that provides IDE-like functionality and can integrate with different editors, such as Vim, Emacs, VS Code, Atom, ... Also see https://github.com/haskell/haskell-language-server/blob/master/README.md

[Y] Yes [N] No [?] Help (default is "N").

n

Do you want to install stack? Stack is a haskell build tool similar to cabal that is used by some projects. Also see https://docs.haskellstack.org/

[Y] Yes [N] No [?] Help (default is "N").

n % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 44.4M 100 44.4M 0 0 4335k 0 0:00:10 0:00:10 --:--:-- 4236k [ Info ] downloading: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.6.yaml as file /home/lilgrass/.ghcup/cache/ghcup-0.0.6.yaml [ Warn ] Could not get download info, trying cached version (this may not be recent!) [ ... ] If this problem persists, consider switching downloader via: [ ... ] ghcup config set downloader Wget [ Error ] JSON decoding failed with: YAML exception: [ ... ] Yaml file not found: /home/lilgrass/.ghcup/cache/ghcup-0.0.6.yaml [ ... ] Consider removing /home/lilgrass/.ghcup/cache/ghcup-0.0.6.yaml manually. [ ... ] "_eghcup upgrade" failed!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information