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-pcre-builtin-0.95.2.3.8.44Haskell2010

Text.Regex.PCRE.ByteString.Lazy

This exports instances of the high level API and the medium level API of compile,execute, and regexec.

  • 7 types
  • 26 values

Types

7 declarations
datadata Regex
#

A compiled regular expression

Instances19RegexOptions, RegexMaker, RegexLike, RegexContext, …
typetype MatchOffset = Int
#

0 based index from start of source, or (-1) for unused

newtypenewtype CompOption
#

Constructors

Instances11Eq, Num, Show, Bits, RegexOptions, RegexMaker, …
newtypenewtype ExecOption
#

Constructors

Instances11Eq, Num, Show, Bits, RegexOptions, RegexMaker, …
newtypenewtype ReturnCode
#
Instances2Eq, Show
  • Eq ReturnCodeDefined in regex-pcre-builtin-0.95.2.3.8.44 · Text.Regex.PCRE.Wrap
  • Show ReturnCodeDefined in regex-pcre-builtin-0.95.2.3.8.44 · Text.Regex.PCRE.Wrap

Miscellaneous

2 declarations

Medium level API functions

3 declarations
valueexecute
  1. :: Regex

    Compiled regular expression

  2. -> ByteString

    String to match against

  3. -> IO (Either WrapError (Maybe (Array Int (MatchOffset, MatchLength))))

    Returns: Nothing if the regex did not match the string, or: Just an array of (offset,length) pairs where index 0 is whole match, and the rest are the captured subexpressions.

#

Matches a regular expression against a buffer, returning the buffer indicies of the match, and any submatches

| Matches a regular expression against a string

CompOption flags

14 declarations

ExecOption flags

7 declarations

Orphan instances

3 instances