feat: add Haskell language support - #1561
Open
mightybyte wants to merge 1 commit into
Open
Conversation
Add full Haskell (.hs, .lhs) support to CodeGraph's extraction pipeline: - Functions with multi-clause grouping, type signatures, and Haddock docs - Type classes as traits, instances with implements edges - Algebraic data types as structs, constructors as enum_members, record fields - Type synonyms, newtypes - Module imports with dotted module names (Data.List, etc.) - Call edges: local calls, qualified calls (Mod.fn), data constructor instantiations, and infix operator calls (user-defined operators only) - where-clause helper extraction Grammar: vendored tree-sitter-haskell 0.23.1 wasm (ABI 14) from the npm package — tree-sitter-wasms doesn't ship Haskell. Validated on three repos by size tier: - xmonad/xmonad (small, 41 files, 1222 nodes, 2208 edges) - PostgREST/postgrest (medium, 192 files, 5531 nodes, 9386 edges) - jgm/pandoc (large, 599 files, 23126 nodes, 52180 edges) All 630 extraction tests pass (19 new Haskell tests + 611 existing).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add full Haskell (.hs, .lhs) support to CodeGraph's extraction pipeline:
Grammar: vendored tree-sitter-haskell 0.23.1 wasm (ABI 14) from the npm package — tree-sitter-wasms doesn't ship Haskell.
Validated on three repos by size tier:
All 630 extraction tests pass (19 new Haskell tests + 611 existing).