# parsec

> Monadic parser combinators

Source: https://talira.ai/catalog/parsec-hcmn1rr8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parser generators](https://talira.ai/categories/developer-tools/parser-generators), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-2-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Oleg Grenrus](https://talira.ai/orgs/oleg-grenrus.md), [Herbert Valerio Riedel](https://talira.ai/orgs/herbert-valerio-riedel.md)

parsec is the Haskell library of monadic parser combinators, written from scratch as an industrial-strength parser library: simple, safe, with extensive combinators, good error messages and good speed. It is defined as a monad transformer that can be stacked on any monad, and it is parametric in the input stream type. `Text.Parsec` is the main entry point, with defaults for parsing characters; the legacy parsec-2 API in `Text.ParserCombinators.Parsec` may be removed in future. It is BSD-2-Clause licensed.

## Links

- GitHub: https://github.com/haskell/parsec

## Problems it solves

- write a parser for my own small language in Haskell
- parse a text format in Haskell without a parser generator
- get readable error messages when parsing input fails in Haskell

## Features

- monadic parser combinators
- monad transformer that stacks on any monad
- parametric in the input stream type
- good error messages
- legacy parsec-2 API kept for compatibility

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.27, adoption 0.59, momentum 0.25, community 0.68, backing 0.30, extensibility 0.00.

- 890 GitHub stars
- 50 contributors
- backed by Oleg Grenrus and Herbert Valerio Riedel

Warnings:

- last commit 5 months ago

## Alternatives

- [Sunshine](https://talira.ai/catalog/sunshine-avdhp56m.md): Self-hosted game stream host for Moonlight
- [peg](https://talira.ai/catalog/peg-n3v4m78r.md): Packrat parser generator for Go from Parsing Expression Grammars
- [Megaparsec](https://talira.ai/catalog/megaparsec-ken3j7zq.md): Industrial-strength monadic parser combinators for Haskell
- [parser-combinators](https://talira.ai/catalog/parser-combinators-8n3ccbe5.md): Common Haskell parser combinators with no dependencies beyond base

## Sources

[^1]: https://github.com/haskell/parsec/blob/master/LICENSE (checked 27 Nov 2026)
