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-base-0.94.0.3Haskell2010

Text.Regex.Base.Impl

Helper functions for defining certain instances of RegexContext. These help when defining instances of RegexContext with repeated types:

instance (RegexLike regex source) => RegexContext regex source source where

runs into overlapping restrictions. To avoid this I have each backend define, for its own Regex type:

instance RegexContext Regex String String where
  match = polymatch
  matchM = polymatchM
instance RegexContext Regex ByteString ByteString where
  match = polymatch
  matchM = polymatchM
instance RegexContext Regex Text Text where
  match = polymatch
  matchM = polymatchM
  • 2 values