# haskell-src-exts

> Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer

Source: https://talira.ai/catalog/haskell-src-exts-54hq46qj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / source code](https://talira.ai/categories/developer-tools/parsing/source-code), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2][^3]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (BSD-3-Clause).
- Free tier: yes[^2]
- Backed by: [Niklas Broberg](https://talira.ai/orgs/niklas-broberg.md)

haskell-src-exts (HSE) is a standalone Haskell library for parsing, building and pretty-printing Haskell source code. It descends from the haskell-src package but supports the syntactic extensions found in compilers and tools, such as multi-parameter type classes, functional dependencies, GADTs and Template Haskell, plus HaRP regular patterns and HSX embedded XML. Its modules give an abstract syntax tree, combinators for building syntax, a parser and a pretty-printer.

## Links

- GitHub: https://github.com/haskell-suite/haskell-src-exts

## Problems it solves

- parse Haskell source into a syntax tree for a linter or refactoring tool
- generate Haskell code and pretty-print it
- read Haskell files that use GHC extensions in my own tool

## Features

- a parser for Haskell source with GHC's syntactic extensions
- an abstract syntax tree and combinators for building syntax
- a pretty-printer
- HaRP regular patterns and HSX embedded XML syntax

## Limitations

- Its maintainer keeps it on life support, and its README suggests ghc-lib-parser instead[^1]

## Trust

Overall: 0.32 out of 1.
Signals: maintenance 0.27, adoption 0.46, momentum 0.11, community 0.74, backing 0.30, extensibility 0.00.

- 204 GitHub stars
- 70 contributors
- backed by Niklas Broberg

Warnings:

- last commit 4 months ago

## Sources

[^1]: https://github.com/haskell-suite/haskell-src-exts/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/haskell-suite/haskell-src-exts/blob/master/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/haskell-suite/haskell-src-exts/blob/master/haskell-src-exts.cabal (checked 28 Nov 2026)
