Skip to content

Commit 6a308eb

Browse files
author
Albin a12l Otterhäll
committed
Add LSP support for Haskell
1 parent 2d7215f commit 6a308eb

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

data/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ lsp.roots = ["melos.yaml", "pubspec.yaml"]
144144
[filetypes.graphql]
145145
extensions = ["graphql"]
146146

147+
[filetypes.haskell]
148+
extensions = ["hs"]
149+
lsp.command = "haskell-language-server-wrapper"
150+
lsp.args = ["--lsp"]
151+
lsp.roots = ["Setup.hs", "stack.yaml", "*.cabal"]
152+
147153
[filetypes.json]
148154
extensions = ["json"]
149155

data/config_tests/valid-ftypes.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ lsp.roots = ["melos.yaml", "pubspec.yaml"]
1212
[graphql]
1313
extensions = ["graphql"]
1414

15+
[haskell]
16+
extensions = ["hs"]
17+
lsp.command = "haskell-language-server-wrapper"
18+
lsp.args = ["--lsp"]
19+
lsp.roots = ["Setup.hs", "stack.yaml", "*.cabal"]
20+
1521
[json]
1622
extensions = ["json"]
1723

data/config_tests/valid/all-inline.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ lsp.roots = ["melos.yaml", "pubspec.yaml"]
7979
[filetypes.graphql]
8080
extensions = ["graphql"]
8181

82+
[filetypes.haskell]
83+
extensions = ["hs"]
84+
lsp.command = "haskell-language-server-wrapper"
85+
lsp.args = ["--lsp"]
86+
lsp.roots = ["Setup.hs", "stack.yaml", "*.cabal"]
87+
8288
[filetypes.json]
8389
extensions = ["json"]
8490

data/lib/ftype-comment-chars.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bash #
22
c //
33
dart //
44
graphql #
5+
haskell --
56
just #
67
make #
78
plumbingrules #

0 commit comments

Comments
 (0)