# @strudel/haskell This is an experiment in implementing tree-sitter for parsing haskell. So far, I have just set up a vite project that imports and inits `web-tree-sitter`, which works after - - Running: ```sh cd haskell && pnpm i pnpm dev ``` will start the vite dev server, loading tree sitter on `http://localhost:5174/`. The next step is be to generate `tree-sitter-haskell.wasm` file following . I've tried to generate it using but it failed, due to some versioning conflicts involving node / v8 / node-gyp. It seems a lot of work has gone into this package in , without a new npm package version being released, which is why I've written this comment: . So either someone authorized releases a new version of the package or we might need to pull the changes and try to build it from the tree-sitter master branch. ## Update 1 I've managed to make it work by using [this tree-sitter-haskell.wasm](https://github.com/tree-sitter/tree-sitter-haskell/blob/master/tree-sitter-haskell.wasm), instead of using the version on npm! Make sure both `tree-sitter.wasm` and `tree-sitter-haskell.wasm` are in the public dir, then run `pnpm dev`. The console should log a tree sitter AST string. Next step: understand how the ast works to then transform it into JS function calls!