aboutsummaryrefslogtreecommitdiffstats
path: root/anissue.cabal
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-15 07:40:33 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-18 05:26:24 +0100
commit0d96613d9aa41f93ebb440bb1aa383456b49f28f (patch)
tree8338371bcdeb58957f3b312517cebc9763b380ba /anissue.cabal
parent4013b920f51790a88b5afce5be72c52b8cb2adc6 (diff)
feat: drop haskell-tree-sitter
Drop haskell-tree-sitter in favor of custom bindings to tree-sitter. haskell-tree-sitter is outdated and seems unmaintained. The implementation add low-level bindings to tree-sitter and traverses the AST in Haskell. We suspect that many FFI calls are more expensive than performing just a single API call to a C function that does the traversal. This will be addressed in upcoming commits. @prerequisite-for add-languages-elm-shell-nix
Diffstat (limited to 'anissue.cabal')
-rw-r--r--anissue.cabal7
1 files changed, 5 insertions, 2 deletions
diff --git a/anissue.cabal b/anissue.cabal
index 74c1478..7043c79 100644
--- a/anissue.cabal
+++ b/anissue.cabal
@@ -95,8 +95,11 @@ executable anissue
Render
Settings
Text.Diff.Extra
+ TreeSitter
Tuple
+ extra-libraries: tree-sitter tree-sitter-haskell
+
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
@@ -124,8 +127,6 @@ executable anissue
terminal-size,
text,
time,
- tree-sitter,
- tree-sitter-haskell,
typed-process,
xdg-basedir,
yaml
@@ -152,3 +153,5 @@ executable anissue
RecordWildCards
TypeFamilies
ViewPatterns
+
+ c-sources: app/TreeSitter/bridge.c