oak-haskell 0.0.11

Haskell functional programming language parser with support for pure functional programming and advanced type systems.
Documentation
#![doc = include_str!("readme.md")]
#![feature(new_range_api)]
#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
#![warn(missing_docs)]

/// Abstract Syntax Tree (AST) definitions for Haskell.
pub mod ast;
/// Incremental tree builder for Haskell.
pub mod builder;

mod language;
mod lexer;
/// Language Server Protocol (LSP) and editor integration for Haskell.
#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
pub mod lsp;
/// Model Context Protocol (MCP) support for Haskell.
#[cfg(feature = "mcp")]
pub mod mcp;

mod parser;

pub use crate::{ast::HaskellRoot, builder::HaskellBuilder, language::HaskellLanguage, lexer::HaskellLexer, parser::HaskellParser};

#[cfg(feature = "oak-highlight")]
pub use crate::lsp::highlighter::HaskellHighlighter;

#[cfg(feature = "lsp")]
pub use crate::lsp::HaskellLanguageService;

#[cfg(feature = "mcp")]
pub use crate::mcp::serve_haskell_mcp;
/// Haskell token types.
pub use lexer::token_type::{HaskellToken, HaskellTokenType};
/// Haskell element types.
pub use parser::element_type::HaskellElementType;