[ANNOUNCE] GHCup 0.1.15-rc2 Windows pre-release

Thanks to many people helping me out on Windows, MSys2 etc.

This is a pre-release, so especially on Windows, you may run into issues.

Changes

  • Add windows support wrt #130
  • Add stack support
  • Warn when /tmp doesn’t have 5GB or more of disk space
  • Allow to compile GHC from git repo wrt #126
  • Allow to set custom ghc version when running ‘ghcup compile ghc’ wrt #136

How to test the pre-release

On Windows

Download https://downloads.haskell.org/ghcup/windows-bootstrap/bootstrap-haskell-1.0.1.exe and run it as user, then follow the on-screen instructions.

Note: the executable isn’t signed yet, but windows defender should not get triggered.

On Linux/Mac/FreeBSD

ghcup -s https://www.haskell.org/ghcup/data/ghcup-0.0.4-rc2.yaml upgrade

Where to report problems

12 Likes

Thanks hausefell! I want to point out for those that haven’t been following the development details that this work has been very careful and thorough and in the process helped stress-test GHC on windows full stop, including some tricky longstanding issues with linking and msys that have been problems in the past for all ways to install GHC on windows – so this is not just providing a nice new clean path for windows installation, but also helping to solidify the platform more directly as a whole (and as I’m following along, I see the process on freebsd is leading to some improvements as well).

3 Likes

Right, here are some of the tickets that happened in the process:

  1. https://gitlab.haskell.org/ghc/ghc/-/issues/19945
  2. https://gitlab.haskell.org/ghc/ghc/-/issues/19948

ghcup running on Windows is fantastic! Great stuff!

1 Like

As a side not: there’s no tui on windows, because brick depends on unix. If anyone has an idea how to create something similar under windows… speak up.

1 Like

I know only ansi-terminal but that is way lower level. Making brick and vty work on windows is also overdue in my opinion (this is not meant as complaint to the maintainers). Maybe that can also be guided, for lack of a better word, by the foundation. I don’t think there are fundamental problems why vty cannot be ported to windows.

3 Likes

ansi-terminal-game is not properly TUI itself (rather, does more than you would like, I suspect).

I have written it with cross compatibility in mind and it works; I can decouple the needed features if it is useful. Windows support and Windows testing is always a pain in the proverbial butt, Haskell community lacks Win users!

1 Like

The release is final now at 0.1.15.1

On windows, run:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-WebRequest -UseBasicParsing https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 | Invoke-Expression
2 Likes