-
coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
-
haskell-language-server
Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Hi Reddit, I'm a first time vim user trying to get Haskell working on it. I've installed coc.nvim, and added this to my coc configuration: json { "languageserver": { "haskell": { "command": "haskell-language-server-wrapper", "args": ["--lsp"], "rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"], "filetypes": ["haskell", "lhaskell"] } } } This runs single .hs files, hurray! Unfortunately though, if I want to use an external library (in my case using stack), I get hit with an error Could not find module .... I feel like this issue is due to HLS not knowing what the project root is, thus not loading my project.yaml and stack.yaml files, despite it being defined as a root pattern in the coc settings.
For the second question, if you use the compiled binaries, checkout the release page of HLS. For each version of HLS, there's a list of different GHC versions' binaries. You need to use a version with the same GHC version of your project.
If you need different GHC versions of HLS for different projects (as I often encounter), you can either use Nix or simply direnv to dynamically link the binary to the correct version of HLS.