Description
Actual ways to get a working hls executable:
- Install it with
brew
- Install it with
ghcup
- Installing and enabling rosetta 2 in the terminal
- Download the binaries used in ghcup directly from releases artifacts (for example https://github.com/haskell/haskell-language-server/releases/download/1.5.1/haskell-language-server-macOS-aarch64-1.5.1.tar.xz)
Issue to track the support of hls for this new macOS version
- From the original issue in ghcup (https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/175#note_363910):
We use github environments to build the binaries and we depend on its supported arch/os versions. Actually we are building macos binaries with this env: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md (macos-latest aka macos 10.15)
Not an expert in mac envs but it seems M1 need Big Sur, which is macos 11.00. Github envs has an env for 11.0 but i guess it will be incompatible with older version of macos, so we would have to maintain two macos version in the test and build ci workflows (which has already a big load). In any case it worths to have an issue in the project to track progress in the support of the new version.
Anyways does the official ghc version works for big sur? the download page talks about macOS X: https://www.haskell.org/ghc/distribution_packages.html#macosx
It seems it works with some caveats: https://www.reddit.com/r/haskell/comments/k9r2cy/workaround_for_haskell_woes_on_macos_11_big_sur/
so maybe the hls version buils for maOS 10.15 would work for 11.x?
UPDATE from #1896
What do we need in order to create and distribute Apple M1 binaries?
- GHC 8.10.7 available in the Haskell Github Action
- Apple M1 hardware available in the GA free tier - Support for VMs on Apple M1 actions/runner-images#2187
- Haskell VSCode extension able to detect the M1 hardware and download the right binaries - Automatic downloading of macos arm (aarch64/M1) hls version vscode-haskell#458
//cc @Jaxan