It is assumed that Neovim, lazy.nvim , and Telescope are already configured.
Install Haskell tools
curl --proto '=https' --tlsv1 .2 -sSf https://get-ghcup.haskell.org | sh
ghcup install ghc ghcup set ghc recommended ghcup install cabal ghcup install hls ghcup install stack
Enter fullscreen mode
Exit fullscreen mode
Restart your shell, then install Hoogle and generate the local Hoogle database:
cabal update cabal install hoogle hoogle generate
Enter fullscreen mode
Exit fullscreen mode
Verify the installation:
ghc --version cabal --version haskell-language-server-wrapper --version hoogle --version
Enter fullscreen mode
Exit fullscreen mode
haskell-tools.nvim uses haskell-language-server-wrapper for LSP and the local Hoogle database generated by the hoogle generate command.
Configuring Haskell IDE Support
HLS (Haskell Language Server) provides editor features such as diagnostics, type information, import resolution, and go-to-definition.…