haskell-tree-sitter
haskell-tree-sitter copied to clipboard
Haskell bindings for tree-sitter
Right now, all parsing assumes you have the entire source file paged into memory as a strict ByteString. I would love to see an option that incorporated `streaming-bytestring`, which is...
It occurred to me that `Language`, `Parser`, etc. could have a (phantom) type parameter for the AST they relate to: ```haskell -- in TreeSitter.Language data Language a -- in the...
Can't peek Tree from Ptr since Tree does not implement Storable typeclass. Is there some other proper way to do it? I am pretty new in Haskell so it might...
The `TSNode` type has cryptic field names, and uses accessor functions for `start_byte()` and `start_point()`, but in reality, these two fields correspond directly to fields on the node: * [`ts_node_start_byte`](https://github.com/tree-sitter/tree-sitter/blob/4151a428ec9059b70f3a7beecba8384b649eb621/lib/src/node.c#L36-L38)...
When `stack` tries to download this repository via git clone it complains about a missing `../.ghci` file from the symlinks removed in this PR.
This PR updates the CI setup a bit: * The `tested-with` stanza of the cabal file is updated to reflect a canonical list of GHC versions that are being actively...
With GHC 9.0.2, `ts_parser_parse_string` seems to hang if the parsing fails. Reproduce: ``` ❯ ghci GHCi, version 9.0.2: https://www.haskell.org/ghc/ :? for help ghci> import Foreign ghci> import TreeSitter.Haskell ghci> import...
[tree-sitter-haskell/examples/Demo.hs](https://github.com/tree-sitter/haskell-tree-sitter/blob/master/tree-sitter-haskell/examples/Demo.hs) fails to compile with the following error: ``` • Couldn't match expected type ‘Node -> TSPoint’ with actual type ‘TSPoint’ • In the pattern: TSPoint {..} In a pattern...
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4. Release notes Sourced from actions/cache's releases. v4.0.0 What's Changed Update action to node20 by @takost in actions/cache#1284 feat: save-always flag by @to-s in actions/cache#1242...
I couldn't find `grammar.json` in this repository. And a problem downstream https://github.com/github/semantic/issues/717 make me believe that the problem could be here. Please have a look at the downstream issue for...