Skip to content
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

Expecting one more argument to ‘CPackageIndex ModuleName’ #80

Closed
decentral1se opened this issue Dec 23, 2017 · 2 comments
Closed

Expecting one more argument to ‘CPackageIndex ModuleName’ #80

decentral1se opened this issue Dec 23, 2017 · 2 comments

Comments

@decentral1se
Copy link

I noticed my NeoVim complaining when using neco-ghc and then ran stack exec --no-stack-exe ghc-mod -- debug which gave me the following output:

➜  stack (cabal-parse-fixup) ✗ stack exec --no-stack-exe ghc-mod -- debug
[1 of 5] Compiling CabalHelper.Types ( CabalHelper/Types.hs, /home/lwm/.ghc-mod/cabal-helper/CabalHelper/Types.o )
[2 of 5] Compiling CabalHelper.Sandbox ( CabalHelper/Sandbox.hs, /home/lwm/.ghc-mod/cabal-helper/CabalHelper/Sandbox.o )
[3 of 5] Compiling CabalHelper.Licenses ( CabalHelper/Licenses.hs, /home/lwm/.ghc-mod/cabal-helper/CabalHelper/Licenses.o )

CabalHelper/Licenses.hs:56:8: error:
    • Expecting one more argument to ‘CPackageIndex ModuleName’
      Expected a type, but ‘CPackageIndex ModuleName’ has kind ‘* -> *’
    • In the type signature:
        findTransitiveDependencies :: CPackageIndex ModuleName
                                      -> Set CInstalledPackageId -> Set CInstalledPackageId
ghc-mod: readCreateProcess: /home/lwm/.stack/snapshots/x86_64-linux-nopie/lts-9.18/8.0.2/libexec/x86_64-linux-ghc-8.0.2/cabal-helper-0.7.3.0/cabal-helper-wrapper "--with-ghc=/home/lwm/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin/ghc" "--with-ghc-pkg=/home/lwm/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin/ghc-pkg" "--with-cabal=cabal" "/home/lwm/stack" "/home/lwm/stack/.stack-work/dist/x86_64-linux-nopie/Cabal-1.24.2.0" "package-db-stack" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed

I guess it might be related to the version of Cabal I'm using:

➜  stack (cabal-parse-fixup) ✗  stack exec -- cabal --version
cabal-install version 2.0.0.1
@decentral1se
Copy link
Author

Oh woops, I meant to report this over at ghc-mod, not here - will close!

@decentral1se
Copy link
Author

Ah yes, it's over here - DanielG/ghc-mod#905.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant