Menu

1 / 4

Setting Up Haskell Development in Neovim

DEV Community: haskell·l3o6·5 days ago
#KD0IdJS0
#devtohaskell#devto#dev#haskell#install
Reading 0:00
15s threshold

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

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.