-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build from source with 8.10.7: ‘coreExprToBCOs’ is applied to too few arguments #2860
Comments
How did you install GHC? In GHC 8.10.7, coreExprToBCOs has type Can you start a GHCi session with |
Also hitting this issue with haskell.nix, and indeed, the type is different:
So this seems like a haskell.nix issue as it uses slightly patched GHCs. I opened input-output-hk/haskell.nix#1455 to track this. |
It seems like the culprit is haskell.nix: https://github.com/input-output-hk/haskell.nix/blob/a5b74bf002bee3ee41012c8f5e48105150892eee/overlays/patches/ghc/ghc-8.10.5-ubxt.patch This is a downstream issue since we can't conceivably support all custom distributions of GHC. |
Turns out Among other things it has this: @@ -155,23 +167,25 @@ literals:
-- Returns: the root BCO for this expression
coreExprToBCOs :: HscEnv
-> Module
- -> CoreExpr
+ -> Id
+ -> StgRhs
-> IO UnlinkedBCO
-coreExprToBCOs hsc_env this_mod expr
+coreExprToBCOs hsc_env this_mod bndr expr Do you maybe know corresponding upstream MR? I could not find any reference in haskell.nix repository :/
|
@amesgen thanks for reporting this to haskell.nix! |
For anyone interested, I was able to patch HLS source to compile with haskell.nix's compiler. Going to test this setup. https://gist.github.com/maksbotan/8c7a8f531163c58da9983fbc48d45fff |
This is Maxim Koltsov's work around for building `haskell-language-server` with the haskell.nix compilers that include unboxed tuple patch. See haskell/haskell-language-server#2860 (comment)
This is Maxim Koltsov's work around for building `haskell-language-server` with the haskell.nix compilers that include unboxed tuple patch. See haskell/haskell-language-server#2860 (comment)
The patch by @maksbotan is now part of haskell.nix, see input-output-hk/haskell.nix#1457 |
Closing as this is a downstream packaging issue. |
Your environment
Which OS do you use:
macOS 11.6.2
Which LSP client (editor/plugin) do you use:
neovim + coc-nvim
Describe your project (alternative: link to the project):
Not relevant
Steps to reproduce
Basically, I did
git checkout 1.7.0.0
cabal new-build exe:haskell-language-server
I have
cabal
andghc
8.10.7 in my$PATH
, installed fromhaskell.nix
.Expected behaviour
I expect
cabal
to build me ahaskell-language-server
exe.Actual behaviour
Building of
ghcide
package breaks with this error:Include debug information
I attach
cabal.project.freeze
generated bycabal new-freeze
just in case.cabal.project.freeze.txt
The text was updated successfully, but these errors were encountered: