language support: Haskell

Open
#598 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@maciejpirog is already working on this.

Since Mar 9, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement

Hi,

We (Symbiotic Security) have a working Haskell integration in our fork and would like to upstream it.
Before opening a large PR, we'd like to align on approach/scope and how best to coordinate review.

What this adds

  • New language: haskell (.hs) recognized by language selection + filename guessing.
  • Target parsing + pattern parsing for Haskell via tree-sitter
  • Haskell -> AST_generic conversion

Questions

  1. tree-sitter packaging: in our fork, tree-sitter generated sources are currently vendored. Would you be ok if we add languages/haskell/tree-sitter/semgrep-haskell as a git submodule (like other languages) to upstream?

  2. semgrep_interfaces update: our fork currently points cli/src/semgrep/semgrep_interfaces to a branch in our internal semgrep-interfaces fork (to add Haskell to the language enum). We assume upstream would prefer this as a separate PR to opengrep/semgrep-interfaces first, then update OpenGrep's submodule pointer back to upstream.

  3. Are there any acceptance criteria you want us to meet up front (tests, docs, performance/regression expectations, rule/pattern compatibility)?

If it's easier to discuss sequencing/review expectations in a private channel (Slack or similar), we're happy to coordinate that way.
We are open to any suggestions on how best to proceed and look forward to collaborating on this.

Dominant language
OCaml
Stars
3.2k
Forks
272
Avg merge
1d 14h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opengrep/opengrep

All issues in opengrep/opengrep

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.