Common Haskell parser combinators with no dependencies beyond base
open sourceBSD-3-Clausefree
parser-combinators is a lightweight Haskell package of commonly useful parser combinators defined in terms of Applicative and Alternative, with no dependencies other than base. It also has more efficient versions of the combinators defined in terms of Monad and MonadPlus. It's by Mark Karpov, who also maintains Megaparsec.
Problems it solves
- reuse common parser combinators across Haskell parsing libraries
- add parser combinators to a Haskell project without extra dependencies
- write combinator-based parsers over Applicative and Alternative in Haskell
Features
- parser combinators defined over Applicative and Alternative
- faster variants defined over Monad and MonadPlus
- no dependencies other than base
Alternatives
The same job
These do what parser-combinators does.
- Megaparsec Industrial-strength monadic parser combinators for Haskell
- parsec Monadic parser combinators
