Skip to main content

oak_haskell/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![warn(missing_docs)]
6
7/// Abstract Syntax Tree (AST) definitions for Haskell.
8pub mod ast;
9/// Incremental tree builder for Haskell.
10pub mod builder;
11
12mod language;
13mod lexer;
14/// Language Server Protocol (LSP) and editor integration for Haskell.
15#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
16pub mod lsp;
17/// Model Context Protocol (MCP) support for Haskell.
18#[cfg(feature = "mcp")]
19pub mod mcp;
20
21mod parser;
22
23pub use crate::{ast::HaskellRoot, builder::HaskellBuilder, language::HaskellLanguage, lexer::HaskellLexer, parser::HaskellParser};
24
25#[cfg(feature = "oak-highlight")]
26pub use crate::lsp::highlighter::HaskellHighlighter;
27
28#[cfg(feature = "lsp")]
29pub use crate::lsp::HaskellLanguageService;
30
31#[cfg(feature = "mcp")]
32pub use crate::mcp::serve_haskell_mcp;
33/// Haskell token types.
34pub use lexer::token_type::{HaskellToken, HaskellTokenType};
35/// Haskell element types.
36pub use parser::element_type::HaskellElementType;