HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleregex-tdfa-1.3.2.6Haskell2010

Text.Regex.TDFA.Pattern

This Text.Regex.TDFA.Pattern module provides the Pattern data type and its subtypes. This Pattern type is used to represent the parsed form of a regular expression.

Contents
  1. Internal use
  2. Internal use, operations to support debugging under ghci
Synopsis
datadata Pattern

Pattern is the type returned by the regular expression parser parseRegex. This is consumed by the Text.Regex.TDFA.CorePattern module and the tender leaves are nibbled by the Text.Regex.TDFA.TNFA module.

The DoPa field is the index of the component in the regex string r.

Constructors

Instances2Eq, Show
  • Eq PatternDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Pattern
  • Show PatternDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Pattern
datadata PatternSet

Content of a bracket expression [...] organized into characters, POSIX character classes (e.g. [[:alnum:]]), collating elements (e.g. [.ch.], unused), and equivalence classes (e.g. [=a=], treated as characters).

Instances2Eq, Show
  • Eq PatternSetDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Pattern
  • Show PatternSetDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Pattern

    Hand-rolled implementation, giving textual rather than Haskell representation.

Content of [. .], e.g. "ch" for [.ch.].

Instances3Eq, Ord, Show

Content of [= =], e.g. "a" for [=a=].

Instances3Eq, Ord, Show
newtypenewtype DoPa

Used to track elements of the pattern that accept characters or are anchors.

Constructors

Instances4Enum, Eq, Ord, Show
  • Enum DoPaDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Common
  • Eq DoPaDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Common
  • Ord DoPaDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Common
  • Show DoPaDefined in regex-tdfa-1.3.2.6 · Text.Regex.TDFA.Common

Internal use

Internal use, operations to support debugging under ghci