HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleregex-tdfa-1.3.2.5Haskell2010

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.

  • 7 types
  • 7 values
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.5 · Text.Regex.TDFA.Pattern
  • Show PatternDefined in regex-tdfa-1.3.2.5 · 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.5 · Text.Regex.TDFA.Pattern
  • Show PatternSetDefined in regex-tdfa-1.3.2.5 · Text.Regex.TDFA.Pattern

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

typetype GroupIndex = Int
#

GroupIndex is for indexing submatches from capturing parenthesized groups (PGroup or Group).

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.5 · Text.Regex.TDFA.Common
  • Eq DoPaDefined in regex-tdfa-1.3.2.5 · Text.Regex.TDFA.Common
  • Ord DoPaDefined in regex-tdfa-1.3.2.5 · Text.Regex.TDFA.Common
  • Show DoPaDefined in regex-tdfa-1.3.2.5 · Text.Regex.TDFA.Common

decodePatternSet cannot handle collating element and treats equivalence classes as just their definition and nothing more.

Internal use

1 declaration

Internal use, operations to support debugging under ghci

3 declarations