Parser and pretty printer for Egison pattern expressions to use with TH

LTS Haskell 18.28:
Stackage Nightly 2021-06-14:
Latest on Hackage:

See all snapshots egison-pattern-src-th-mode appears in

BSD-3-Clause licensed by coord_e
Maintained by coord_e, Satoshi Egi
This version can be pinned in stack with:egison-pattern-src-th-mode-,2607

Module documentation for

Egison Pattern Source (Template Haskell Mode)

Actions Status Actions Status Hackage Hackage Deps

The egison-pattern-src-th-mode provides a parser and pretty printer for egison-pattern-src to use it with Template Haskell.


egison-pattern-src-th-mode is distributed as open source software under the terms of the 3 clause BSD License. See LICENSE for details.


  • Nothing changed (updated as egison-pattern-src)

  • Nothing changed (updated as egison-pattern-src)

  • Fix use of external parsers to delimit input with ,, ), or ] (change in egison-pattern-src)
  • Enable to parse value expression in the form of #[1, 2, 3] without parentheses (change in egison-pattern-src)
    • Now you can pass list literal directly to value patterns

Breaking changes:

  • Add ParseMode record to pass parser configurations (change in #19)
  • Remove the dependency on egison-pattern-src-haskell-mode (change in #19)
  • Provide several variants of parsers (location annotation/non-greedy) by adding Parsable instance (change in #19)
  • Some changes in egison-pattern-src are inherited here. For details, see CHANGELOG in egison-pattern-src-

  • Add parseExprWithParseFixities to configure parsers flexibly (e.g. parse as ++, but interpret it as join)

  • Initial Release