Is Haskell supported on Windows ARM?

I want to use Haskell on Windows running on Parallels on a Apple Silicon MacBook. I started by attempting to install ghcup and got this error:

3 Likes

Support for Windows ARM is currently experimental.

It seems that you can set it up from source as per #24603: Support for ARM64 Windows · Issues · Glasgow Haskell Compiler / GHC · GitLab, but there are still tickets to track better support for the platform #25974: Support for ARM64 Windows (Wine builds, native compiler, no cross) · Issues · Glasgow Haskell Compiler / GHC · GitLab.

That said, it isn’t readily available (packaged and distributed) and it isn’t tested in any way for now either.

@GulinSS has been doing a lot of work in that area, he’s the expert who can answer further :slight_smile:

3 Likes

Unfortunately this means it’s quite hard to setup. Being able to support it in a macOS VM is also a reason why I’m very interested in this work myself, but I don’t see myself trying it until it’s more easy to get.

3 Likes

MicroHs should work.

9 Likes

#24603: Support for ARM64 Windows · Issues · Glasgow Haskell Compiler / GHC · GitLab – this one is about how to create a cross-compiler to Windows AArch64 from Linux (and maybe MacOS). By the result of this task we have a new cross-compile target at Linux with a trivial Hello World test which is executed in Wine AArch64.

#25974: Support for ARM64 Windows (Wine builds, native compiler, no cross) · Issues · Glasgow Haskell Compiler / GHC · GitLab – this one is about a next step: create a non-cross Windows AArch64 compiler based on Windows x86-64 cross-compiler to AArch64 used as a bootstrap. All this is executed in Wine AArch64 with FEX to support x86 code. Currently it is in progress and this progress is very slow because I faced with Segfault which is a REALLY hard to debug.

2 Likes