-
Hi, please apologize if I have missed something, but I'm not sure if there is a way to get HLS running in conjunction with a cross-compiled GHC (e.g. to use the javascript backend). I failed and I tracked this down to - regardless of HIE configuration, etc. - HLS always tries to use GHC interactively - which requires a stage2 compiler. haskell-language-server/exe/Wrapper.hs Line 169 in f8379bb As far as I interpret https://gitlab.haskell.org/ghc/ghc/-/issues/19174 and related issues to compile a cross compiler to stage2 and therefor it is currently not possible to have HLS working with the javascript backend? Or is it somehow possible to run HLS in conjunction with the GHC javascript compiler? Thanks in advance for any hint! Best regards, Andreas |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think the answer is probably "nobody has really tried". I suspect there are many places where we rely on things that are tricky in cross-compiler territory. Certainly, we rely on calling |
Beta Was this translation helpful? Give feedback.
I think the answer is probably "nobody has really tried". I suspect there are many places where we rely on things that are tricky in cross-compiler territory. Certainly, we rely on calling
cabal repl
to get compilation flags, I don't even know if that works.