# haskell-src-meta

> Parse Haskell source to Template Haskell syntax

Source: https://talira.ai/catalog/haskell-src-meta-kffmf4w7
Every listing: https://talira.ai/catalog.md

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

haskell-src-meta converts Haskell source parsed by haskell-src-exts into Template Haskell's abstract syntax, for use in splices and quasiquoters. It was written by Matt Morrow and is kept up to date with new Template Haskell versions by community maintainers in the haskell-party organisation; its translation isn't yet 100% complete.

## Links

- GitHub: https://github.com/haskell-party/haskell-src-meta

## Problems it solves

- write a quasiquoter that embeds Haskell expressions
- turn a string of Haskell code into a Template Haskell expression
- parse Haskell syntax inside a Template Haskell splice

## Features

- haskell-src-exts AST to Template Haskell AST
- for use in splices and quasiquoters

## Limitations

- The translation from haskell-src-exts syntax to Template Haskell syntax isn't complete.[^1]

## Trust

Overall: 0.24 out of 1.
Signals: maintenance 0.27, adoption 0.21, momentum 0.01, community 0.61, backing 0.30, extensibility 0.00.

- 10 GitHub stars
- 33 contributors
- backed by haskell-party

Warnings:

- last commit 4 months ago

## Alternatives

- [th-lift](https://talira.ai/catalog/th-lift-24br7pf5.md): Derive Template Haskell's Lift class for datatypes
- [th-abstraction](https://talira.ai/catalog/th-abstraction-ebd79nxp.md): One interface to Template Haskell's datatype information across GHC versions

## Sources

[^1]: https://github.com/haskell-party/haskell-src-meta/blob/master/haskell-src-meta/haskell-src-meta.cabal (checked 29 Nov 2026)
[^2]: https://github.com/haskell-party/haskell-src-meta/blob/master/haskell-src-meta/LICENSE (checked 29 Nov 2026)
