aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOllie Charles2022-11-18 14:36:40 +0000
committerGitHub2022-11-18 14:36:40 +0000
commiteada6d534e022b66e1c1d631670dc1ccbe922b9e (patch)
tree36802a39ac6ee9c29dd3da853b488c0c9f18f824
parent58e7e1c5e3754cbfe9a6a9e9843c05ef1055b85f (diff)
Match `.hs-boot` files to Haskell (#4800)
Haskell source files are now either `.hs` (as before) or `.hs-boot`, which is a type of Haskell file that only contains type declarations (https://downloads.haskell.org/ghc/latest/docs/users_guide/separate_compilation.html#how-to-compile-mutually-recursive-modules)
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 927c5a0e..c40b0d50 100644
--- a/languages.toml
+++ b/languages.toml
@@ -732,7 +732,7 @@ source = { git = "https://github.com/ikatyang/tree-sitter-yaml", rev = "0e36bed1
name = "haskell"
scope = "source.haskell"
injection-regex = "haskell"
-file-types = ["hs"]
+file-types = ["hs", "hs-boot"]
roots = ["Setup.hs", "stack.yaml", "*.cabal"]
comment-token = "--"
language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }