Issues with setting up HLS + Vim

This page summarizes the projects mentioned and recommended in the original post on /r/haskellquestions

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.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • coc.nvim

    Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

  • 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.

  • haskell-language-server

    Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.

  • 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.

  • 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.

    SurveyJS logo
  • direnv

    unclutter your .profile

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts