Closed vpetro closed 8 years ago
Probable cause: ‘dataD’ is applied to too few arguments
It seems to be a versioning issue with template-haskell
(i.e. the code generation for the API).
I can have a look at it, if you can tell me the GHC and template-haskell
version you are using.
In any case, I've used stack for most my Haskell development needs since I wrote the documentation and I think it's easier to set up. I should probably adjust the documentation to reflect that. The curated set of packages helps a lot with finding the right version bounds (i.e. nothing has to be done :-)).
Recently, I found out that all dependencies are on stackage, so I can add this one to stackage relatively easy, unless the binary dependency to neovim is a problem.
The script from the instructions should work for stack as well, so instead of the cabal commands, you can do:
stack setup
stack install
Still, assuming you're using a bleeding edge version of GHC, I should probably add some version bounds or #ifdef
the bits of code to make it compile on most recent GHC version.
Building with stack
worked perfectly. Thanks.
As for versions:
oss/nvim-hs master λ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
oss/nvim-hs master λ ghc-pkg list | grep template-haskell
template-haskell-2.11.0.0
Thanks for the version information! Since it's the new hot stuffI should definitely #ifdef
that code.
Following the instructions in the docs with a clean clone of nvim-hs, I get the following errors when running
cabal install
:Any thoughts on what is going wrong?