When I do ~~~ haskell toRegex = makeRegexOpts defaultCompOpt defaultExecOpt repeatLang = toRegex [r|([a-zA-Z]+) \1|] match repeatLang "catch the the typo" :: Bool ~~~ I get `False`.