languages/haskell.nix: address PR comments

- Rename hls -> haskell-language-server to match the nixpkgs name
- Remove unneeded injection
- Only set lsp filetypes in the language module, not the preset
- Remove unneeded `mkDefault`
- Use `root_markers` instead of yucky inline Lua
This commit is contained in:
dathegreat 2026-04-27 10:16:08 -06:00 committed by Ching Pei Yang
commit a97aa7d724
5 changed files with 38 additions and 48 deletions

View file

@ -204,9 +204,9 @@
[dathegreat](https://github.com/dathegreat):
- Fixed invalid keys in the haskell-tools configuration
- Changed the default haskell formatter to
[fourmolu](https://github.com/fourmolu/fourmolu), matching the
[haskell-tools default](https://github.com/mrcjkb/haskell-tools.nvim/blob/9ea030aa67f3875753e70e1eb59701f7020479a0/lua/haskell-tools/config/internal.lua#L131)
- Split haskell configuration into `lsp/presets/haskell-language-server.nix` and
`languages/haskell.nix`
- Made the haskell LSP and formatter configurable
[alfarel](https://github.com/alfarelcynthesis):