Skip to content

Support Hadrian bindists

Alpine bindist releases (e.g. ghc-8.10.1-x86_64-alpine3.10-linux-integer-simple) are now generated via GitLab CI using the Hadrian build system.

GHCup currently relies on bin/ghc being a symlink to a versioned ghc binary (e.g. ghc-8.10.1) but this is not the case when using a Hadrian bindist:

https://gitlab.haskell.org/ghc/ghc/-/blob/4898df1cc25132dc9e2599d4fa4e1bbc9423cda5/hadrian/bindist/Makefile#L19

It looks like GHCup is doing this to only find executable without a version suffix. Luckily Hadrian builds don't have version suffixes in the bin directory, so we should be able to remove the filter completely if there's no symlink:

https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/8f4ef488917838c3760749f83d418e694c9b2720/lib/GHCup/Utils.hs#L420-426

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