HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleregex-1.1.0.2Haskell2010

Text.RE.REOptions

Contents
  1. The Options Tutorial
  2. SimpleREOptions
  3. REOptions_
  4. The Macro Tables
Synopsis
  • Packageregex-1.1.0.2
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceREOptions.lhs

The Options Tutorial

This API module provides the generic types used to specify the options when compiling REs for each of the backl ends.

See the tutorials at http://re-tutorial-options.regex.uk

the default API uses these simple, universal RE options, which get auto-converted into the appropriate back-end REOptions_

Constructors

  • MultilineSensitive

    case-sensitive with ^ and $ matching the start and end of a line

  • MultilineInsensitive

    case-insensitive with ^ and $ matsh the start and end of a line

  • BlockSensitive

    case-sensitive with ^ and $ matching the start and end of the input text

  • BlockInsensitive

    case-insensitive with ^ and $ matching the start and end of the input text

Instances7Bounded, Enum, Eq, Ord, Show, IsOption, …
datadata REOptions_ r c e

the general options for an RE are dependent on which back end is being used and are parameterised over the RE type for the back end, and its CompOption and ExecOption types (the compile-time and execution time options, respectively); each back end will define an REOptions type that fills out these three type parameters with the appropriate types (see, for example, Text.RE.TDFA)

Constructors

Instances2IsOption, Show

The Macro Tables

typetype Macros r = HashMap MacroID r

our macro tables are parameterised over the back end RE type and and just associate each MacroID with an RE (which may in turn contain macros to be expanded)

newtypenewtype MacroID

MacroID is just a wrapped String type with an IsString instance

Constructors

Instances6Eq, Ord, Show, IsString, Hashable, IsOption
  • Eq MacroIDDefined in regex-1.1.0.2 · Text.RE.REOptions
  • Ord MacroIDDefined in regex-1.1.0.2 · Text.RE.REOptions
  • Show MacroIDDefined in regex-1.1.0.2 · Text.RE.REOptions
  • IsString MacroIDDefined in regex-1.1.0.2 · Text.RE.REOptions
  • Hashable MacroIDDefined in regex-1.1.0.2 · Text.RE.REOptions

    MacroID is used with HM.HashMap to build macro lookup tables

  • IsOption (Macros RE)Defined in regex-1.1.0.2 · Text.RE.ZeInternals.TDFA