LPeg – Parsing Expression Grammars For Lua


Version on this page:1.0.4
LTS Haskell 22.30:1.0.4
Stackage Nightly 2024-07-23:1.1.0
Latest on Hackage:1.1.0

See all snapshots lpeg appears in

MIT licensed by Albert Krewinkel
Maintained by Albert Krewinkel
This version can be pinned in stack with:lpeg-1.0.4@sha256:8da68d7309600b66cabac37e3349d41db7dc773c63fa0b67f745c272600e9b67,3513

Module documentation for 1.0.4

Depends on 2 packages(full list with versions):
Used by 1 package in lts-22.26(full list with versions):

lpeg – Parsing Expression Grammars For Lua

GitHub CI Hackage Stackage Lts Stackage Nightly MIT license

This package contains the C sources of LPeg, as well as some tiny Haskell helper to load the package.

See also the official LPeg homepage



lpeg uses PVP Versioning.


Released 2023-03-13.

  • Allow lua-2.3.

  • Cease support for GHC 8.2 and older; require base 4.11 or later.


Released 2022-01-29.

  • Allow lua-2.2.*.


Released 2022-01-29.

  • Allow lua-2.1.*.


Released 2021-11-08.

  • The ‘re’ package is a Lua script that’s part of LPeg. It is now included as a byte array in the C sources; a loader function for this library is provided, and ‘re’ is now handled by the lpeg searcher.


Released 2021-10-31.

  • A wild package appears.