Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @infomiho on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
MrSubidubi
left a comment
There was a problem hiding this comment.
Thanks for this! I think it is fine to have (although somewhat of a niece use case), left two comments and then we should be good 🙂
| [language_servers.hls] | ||
| name = "Haskell Language Server" | ||
| languages = ["Haskell", "Cabal"] | ||
| languages = ["Haskell", "Cabal", "Literate Haskell"] |
There was a problem hiding this comment.
Are you sure this is a good idea? Did a quick check and https://discourse.haskell.org/t/hls-visual-studio-code-whats-so-great-about-it/4181/16 would suggest otherwise, but that is a bit older, so perhaps I am missing context?
There was a problem hiding this comment.
Do we want to have injections for LaTeX / Mardown as well? Or would that not work/break other things?
I needed support for Literate Haskell for my lectures, so I first made a separate extension, but then I realize this can actually be used as part of the Haskell extension.
I've found an existing Literate Haskell tree-sitter grammar: https://github.com/LaurentRDC/tree-sitter-haskell-literate
I've employed Claude Code to analyze existing extensions and how it could embed Haskell syntax highlighting in
lhscode blocks. It supports "bird" syntax, Latex code block and a Markdown style code block.Tested it locally with my lectures - it works well:
