HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleregex-1.1.0.2Haskell2010

Text.RE.REOptions

  • 4 types
  • 1 value
  • Packageregex-1.1.0.2
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceREOptions.lhs

The Options Tutorial

0 declarations

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

SimpleREOptions

1 declaration
datadata SimpleREOptions
#

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, …

REOptions_

1 declaration
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

3 declarations
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