# tree-sitter-haskell **Repository Path**: bison-fork/tree-sitter-haskell ## Basic Information - **Project Name**: tree-sitter-haskell - **Description**: fork自:https://github.com/tree-sitter/tree-sitter-haskell.git,tree-sitter的haskell语法分析器 - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-09 - **Last Updated**: 2021-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tree-sitter-haskell [![Test the grammar](https://github.com/tree-sitter/tree-sitter-haskell/actions/workflows/test.yml/badge.svg)](https://github.com/tree-sitter/tree-sitter-haskell/actions/workflows/test.yml) Haskell grammar for [tree-sitter]. **Note** This grammar needs at least tree-sitter `0.19.4` and C++-14. # References * [Haskell 2010 Language Report – Syntax References](ref) * [GHC Language Extensions](ext) # Building with nvim-treesitter When installing the grammar from source, be sure to include the scanner in the source files: ```vim lua <>= doSomething ``` The `>>=` causes the `do`'s layout to be terminated, resulting in an AST similar to ```haskell f = (do readSomething) >>= doSomething ``` This is checked heuristically, probably unreliably. [tree-sitter]: https://github.com/tree-sitter/tree-sitter [ref]: https://www.haskell.org/onlinereport/haskell2010/haskellch10.html [ext]: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/table.html