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

  • Packageregex-1.1.0.2
  • Exports30
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceAddCaptureNames.hs

The regex Internal Modules

0 declarations

This module contains just what the test suite (re-tests) in regex-examples needs from the package internals to do its job and the ZeInternals types and functions needed by the regex-with-pcre package

Text.RE.ZeInternals.AddCaptureNames

3 declarations
valueaddCaptureNames :: Typeable a => CaptureNames -> a -> a
#

a hairy dynamically-typed function used with the legacy (=~) and (=~~) to see if it can/should add the capture names extracted from the RE into the polymorphic result of the operator (it does for any Match or Matches type, provided it is parameterised over a recognised type). The test suite is all over this one, testing all of these cases.

Text.RE.ZeInternals.EscapeREString

1 declaration

Text.RE.ZeInternals.NamedCaptures

9 declarations
valuecp :: QuasiQuoter
#

quasi quoter for CaptureID: [cp|0|], [cp|0|], etc., indexing captures by classic positional numbers, and [cp|foo|], etc., referencing a named capture [re| ... ${foo}( ... ) ... |].

valueidFormatTokenREOptions :: FormatTokenREOptions
#

a configuration that will preserve the parsed regular expression in the output

datadata Token
#

our RE scanner returns a list of these tokens

Instances4Eq, Show, Generic, Rep
valueformatTokens' :: FormatTokenREOptions -> [Token] -> String
#

the general Token formatter, generating REs according to the options

Text.RE.ZeInternals.Replace

1 declaration
valueexpandMacros :: (r -> String) -> Macros r -> String -> String
#

expand all of the @{..} macros in the RE in the argument String according to the Macros argument, preprocessing the RE String according to the Mode argument (used internally)

Text.RE.ZeInternals.PreludeMacros

8 declarations
datadata PreludeMacro
#
Instances5Bounded, Enum, Eq, Ord, Show

Text.RE.ZeInternals.SearchReplace

3 declarations

Text.RE.ZeInternals.QQ

2 declarations
valueqq0 :: String -> QuasiQuoter
#

a quasi quoter that can be used in no context (to be extended with the appropriate quasi quoter parser)

Text.RE.ZeInternals.TestBench

3 declarations