Skip to content

Commit

Permalink
docs(hls): init HLS doc; document how to disable HLS
Browse files Browse the repository at this point in the history
A start to #245
  • Loading branch information
shivaraj-bh committed May 14, 2024
1 parent 988a785 commit d9c75b0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ order: -9
- [[settings]]#
- [[defaults]]#
- [[devshell]]#
- [[hls]]#
- [[package-set]]#
- [[modules]]#
- [[debugging]]#
Expand Down
32 changes: 32 additions & 0 deletions doc/hls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
order: -8
---

# haskell-language-server

haskell-flake enables [haskell-language-server](https://github.com/haskell/haskell-language-server) and [a few other tools by default](https://github.com/srid/haskell-flake/blob/988a78590c158c5fa0b4893de793c9c783b9d7e9/nix/modules/project/defaults.nix#L23-L29).
{#disable}
## Disabling haskell-language-server

> [!note]
> Only applicable if `haskellProjects.<proj-name>.defaults.enable = true;`
You can set your own `devShell.tools` defaults, that does not include `haskell-language-server`, as follows:

```nix
{
haskellProjects.<proj-name> = {
defaults.devShell.tools = hp: with hp; {
inherit
cabal-install
ghcid;
};
};
}
```

{#disable-plugins}
## Disabling plugins

>[!warning] TODO
> See here for current status: <https://github.com/srid/haskell-flake/issues/245>

0 comments on commit d9c75b0

Please sign in to comment.