Tree-sitter grammar for Literate Haskell

Hello all,

I have released a Tree-sitter grammar for Literate Haskell. This grammar supports the features you would expect (Bird-style and LaTeX-style), but also Markdown-style which is used by Servant cookbooks, for example.

I’m in the process of integrating this into Helix, but you might also want to use this for other purposes.

11 Likes

This is great! I was so looking forward to a grammar for .lhs files, otherwise the editing experience is Helix is lacking. Thank you!

1 Like