Skip to content

Conversation

@LaurentRDC
Copy link
Contributor

@LaurentRDC LaurentRDC commented Oct 26, 2025

This change adds support for Literate Haskell. Literate Haskell files are basically regular Haskell files, so I kept much of the same configuration as for haskell, for example the root files and comment structure. The tree-sitter support is based on my own repo.

Here's an example of using an example file using hx built from this branch:

export HELIX_RUNTIME=./runtime 
cargo run hx --grammar fetch
cargo run hx --grammar build
cargo run hx
image

@LaurentRDC LaurentRDC force-pushed the literate-haskell-support branch from 0237b4a to b40d168 Compare October 26, 2025 23:14
@the-mikedavis
Copy link
Member

We typically require a tree-sitter grammar. If the syntax is the same as haskell then you can reuse the haskell grammar. See the docker-compose language for an example of that - it reuses the YAML grammar

@LaurentRDC
Copy link
Contributor Author

Understood, I'm working on a grammar right now. I'll convert this to a draft until it is ready

@LaurentRDC LaurentRDC marked this pull request as draft October 28, 2025 14:52
@LaurentRDC LaurentRDC changed the title Basic support for Literate Haskell Support for Literate Haskell Oct 30, 2025
@LaurentRDC LaurentRDC force-pushed the literate-haskell-support branch from a840787 to 0406d08 Compare October 30, 2025 15:35
@LaurentRDC LaurentRDC marked this pull request as ready for review October 30, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants