From 0d96613d9aa41f93ebb440bb1aa383456b49f28f Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 15 Dec 2023 07:40:33 +0100 Subject: 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 --- anissue.cabal | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'anissue.cabal') 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 -- cgit v1.2.3