Closed tymmej closed 3 months ago
I mostly run it on an x86_64 linux, but I do all my development on an M1 mac, so it definitely works, but probably depends on where your tooling came from.
The gpmf lib thing is interesting. That's a function used in a demo app that's deprecated in stackage LTS (which is on 9.0.4) and I suppose has been removed. I'll fix that, but that's a different library.
I've been getting my toolchain from nix since before the M1 came out, so I'm not sure how else things come about. I've just tried forgetting nix in a shell and building with ghcup and the compiler doesn't work at all, so I'm guessing that's not what you're running into.
Can you describe how you got stack at least this functional?
I tried brew install haskell-stack
and curl -sSL https://get.haskellstack.org/ | sh
(with brew version uninstalled) - both ended with same result.
I've read bug report again and found another workaround: https://gitlab.haskell.org/ghc/ghc/-/issues/20592#note_403426
I added extra-include-dirs
to stack.yaml
and now it works on LTS GHC 👍
Oh weird. I've not used homebrew in a while. I'm glad you made some progress and sorry the tooling is a bit complicated.
I see ghcup recommended quite often, but I've not been able to get that work. nix has been the easiest thing for me for a while now, but not everyone uses it.
During
stack install
I get same issue as in https://gitlab.haskell.org/ghc/ghc/-/issues/20592I see that it is fixed on newer GHC version so I pass
--resolver ghc-9.2.4
(I also have triednightly
).Then I get multiple errors about dependencies:
So I do as recommended.
Finally, I get following error:
Is it possible to use this script on Mac OS with M1 processor? I installed it on x86_64 Linux without problem but I prefer Mac OS.