Docs.rs
  • tree-sitter-haskell-0.23.1
    • tree-sitter-haskell 0.23.1
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • maxbrunsfeld
    • Dependencies
      • tree-sitter-language ^0.1 normal
      • tree-sitter ^0.23 dev
      • cc ^1.1.15 build
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate tree_sitter_haskell

tree_sitter_haskell0.23.1

  • All Items

Crate Items

  • Constants

Crates

  • tree_sitter_haskell

Crate tree_sitter_haskell

Source
Expand description

This crate provides Haskell language support for the tree-sitter parsing library.

Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:

use tree_sitter::Parser;

let code = r#"
main = putStrLn "Hello World!"
"#;
let mut parser = Parser::new();
let language = tree_sitter_haskell::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Haskell parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Constants§

HIGHLIGHTS_QUERY
The syntax highlighting query for this language.
INJECTIONS_QUERY
The syntax highlighting query for languages injected into this one.
LANGUAGE
The tree-sitter LanguageFn for this grammar.
LOCALS_QUERY
The local-variable syntax highlighting query for this language.
NODE_TYPES
The content of the node-types.json file for this grammar.

Results

Settings
Help

Type "language" not found. Showing results for closest type name "languagefn" instead.

    constant
    tree_sitter_haskell::LANGUAGE
    The tree-sitter LanguageFn for this grammar.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
    constant
    tree_sitter_haskell::LANGUAGE
    -> LanguageFn
    The tree-sitter LanguageFn for this grammar.