This module adds Haskell support, powered by LSP (haskell-language-server).
1.1. Module flags
- Enables LSP support for
haskell-modeutilizing haskell-language-server. Requires :tools lsp.
It is recommended to install the haskell tooling using ghcup. Only ghc is needed for basic functionality:
To use Dante, you need cabal (the haskell package builder) and ghci (the compiler, syntax checker & repl):
but +lsp users should also install the language server:
haskell-mode provides support for hoogle, which can be installed through system package manager, cabal, or stack.
2.2. Haskell packages
You’ll need to install the following packages using
(Dante users) ghc-mod
And ensure the binaries for these packages are in your
3. TODO Usage
This module has no usage documentation yet. Write some?
This module integrates haskell packages into Doom by providing things such as REPL support, project root recognition, etc. It also provide the following keybindings:
|<localleader> b||Build the current cabal project|
|<localleader> c||Visit the .cabal file of the current buffer|
|<localleader> h||Toggle visibility of the form at point|
|<localleader> H||hides all top level functions|
After installing your preferred formatter, make sure to set lsp-haskell-formatting-provider to it.
Make sure to configure the lsp to use your perfered formatter, e.g.:
- Stack users: a
dist/setup-configfile in your project may cause ghc-mod to not work.
6. TODO Appendix
This module’s appendix is incomplete. Write more?