aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOllie Charles2023-04-21 03:51:17 +0000
committerGitHub2023-04-21 03:51:17 +0000
commit5aedf11493d83c97cd2cad1d1ac0488b9d1f5f36 (patch)
treecf89221c5d6019fbe680b54f976a6340e2339acd
parentc3e2db77f7d1d268856e0c3cba328e9fbd0cc71f (diff)
Replace `*.cabal` in Haskell `roots` with `cabal.project` (#6828)
`roots` doesn't support wildcards. As such this root is dropped, and `cabal.project` is added, which is probably the best we can do for Cabal-based projects for now.
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index dc4d1023..953a23fc 100644
--- a/languages.toml
+++ b/languages.toml
@@ -875,7 +875,7 @@ name = "haskell"
scope = "source.haskell"
injection-regex = "haskell"
file-types = ["hs", "hs-boot"]
-roots = ["Setup.hs", "stack.yaml", "*.cabal"]
+roots = ["Setup.hs", "stack.yaml", "cabal.project"]
comment-token = "--"
language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
indent = { tab-width = 2, unit = " " }