Îõ³h&1Õ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTSafe~UVWXYZ[\(c) Chris Kuklewicz 2006 BSD-3-Clausehvr@gnu.org, Andreas Abelstablenon-portable (MPTC+FD)SafeÀÂÃÄÆù# regex-baseUsed in results of  instances. regex-baseUsed in results of  instances. regex-baseUsed in results of  instances.  regex-baseUsed in results of  instances.  regex-base*Extract allows for indexing operations on ] or  ByteString.  regex-basebefore is a renamed ^. regex-baseafter is a renamed _. regex-base?When there is no match, this can construct an empty data value. regex-baseextractÁ takes an offset and length, and has this default implementation: < extract (off, len) source = before len (after off source)  regex-base RegexContext6 is the polymorphic interface to do matching. Since targetä is polymorphic you may need to supply the type explicitly in contexts where it cannot be inferred. The monadic  version uses ` to report when the regex has no match in source. Two examples:Here the contest a is inferred: ó[ c | let notVowel = makeRegex "[^aeiou]" :: Regex, c <- ['a'..'z'], match notVowel [c] ] "bcdfghjklmnpqrstvwxyz"Here the context [String] must be supplied: Âlet notVowel = (makeRegex "[^aeiou]" :: Regex ) in do { c <- ['a'..'z'] ; matchM notVowel [c] } :: [String] ["b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"] regex-baseáRegexLike is parametrized on a regular expression type and a source type to run the matching on.#There are default implementations:  and  use ;  and  use . Conversely,  uses  and  uses <. So a minimal complete instance need to provide at least ( or ) and ( or Ó). Additional definitions are often provided where they will increase efficiency. ÷[ c | let notVowel = makeRegex "[^aeiou]" :: Regex, c <- ['a'..'z'], matchTest notVowel [c] ] "bcdfghjklmnpqrstvwxyz"8The strictness of these functions is instance dependent. regex-baseìThis returns the first match in the source (it checks the whole source, not just at the start). This returns an array of (offset,length) index pairs for the match and captured substrings. The offset is 0-based. A (-1) for an offset means a failure to match. The lower bound of the array is 0, and the 0th element is the (offset,length) for the whole match. regex-basematchAll  returns a list of matches. The matches are in order and do not overlap. If any match succeeds but has 0 length then this will be the last match in the list. regex-base matchCount< returns the number of non-overlapping matches returned by matchAll. regex-base matchTest returns Trueá if there is a match somewhere in the source (it checks the whole source not just at the start). regex-baseThis is matchAllÜ with the actual subsections of the source instead of just the (offset,length) information. regex-baseªThis can return a tuple of three items: the source before the match, an array of the match and captured substrings (with their indices), and the source after the match. regex-base RegexMakerë captures the creation of the compiled regular expression from a source type and an option type. Methods  and  report parse errors using  MonadError , usually (Either String regex).The 8 function has a default implementation that depends on  and uses # and $. Similarly for  and .*There are also default implementaions for  and ê in terms of each other. So a minimal instance definition needs to only define one of these, hopefully . regex-baseUse the # and $. regex-baseSpecify your own options. regex-baseUse the # and $, reporting errors with `. regex-base4Specify your own options, reporting errors with fail  regex-baseàRather than carry them around separately, the options for how to execute a regex are kept as part of the regex. There are two types of options. Those that can only be specified at compilation time and never changed are compOptÍ. Those that can be changed later and affect how matching is performed are execOpt7. The actually types for these depend on the backend.! regex-base%No options set at all in the backend." regex-base%No options set at all in the backend.# regex-base>Reasonable options (extended, caseSensitive, multiline regex).$ regex-base>Reasonable options (extended, caseSensitive, multiline regex).% regex-base"Forget old flags and use new ones.& regex-baseRetrieve the current flags.' regex-base)This is the same as the type from JRegex./ regex-baseû0 based array, with 0th index indicating the full match. If the full match location is not available, represent as (0,0).0 regex-basenon-negative length of a match1 regex-base60 based index from start of source, or (-1) for unused2Þ regex-base3Þ regex-base2   !"#$%&'()*+,-./01210/.'()*+,- !"#$%&   (c) Chris Kuklewicz 2006 BSD-3-Clausehvr@gnu.org, Andreas Abelstablenon-portable (MPTC+FD)SafeÀÁÂÃÄã(c) Chris Kuklewicz 2006 BSD-3-Clausehvr@gnu.org, Andreas Abelstablenon-portable (MPTC+FD)SafeÃÄÆd3   &%$#!"'-,+*()./01RR(c) Chris Kuklewicz 2006 BSD-3-Clausehvr@gnu.org, Andreas Abelstable,non-portable (Text.Regex.Base needs MPTC+FD)Safe)STSTâ        !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a_bc_bd_efghiêregex-base-0.94.0.2-inplaceText.Regex.Base.RegexLikeText.Regex.Base.ContextText.Regex.BaseText.Regex.Base.ImplPaths_regex_baseAllTextMatchesgetAllTextMatches AllMatches getAllMatchesAllTextSubmatchesgetAllTextSubmatches AllSubmatchesgetAllSubmatchesExtractbeforeafteremptyextract RegexContextmatchmatchM RegexLike matchOncematchAll matchCount matchTest matchAllText matchOnceText RegexMaker makeRegex makeRegexOpts makeRegexMmakeRegexOptsM RegexOptions blankCompOpt blankExecOptdefaultCompOptdefaultExecOpt setExecOpts getExecOpts MatchResultMRmrBeforemrMatchmrAfter mrSubListmrSubs MatchText MatchArray MatchLength MatchOffset $fExtractText$fExtractText0 $fExtractSeq$fExtractByteString$fExtractByteString0 $fExtract[]$fRegexContextabAllTextMatches$fRegexContextabAllTextMatches0$fRegexContextabAllTextMatches1$fRegexContextab[]$fRegexContextabAllTextMatches2$fRegexContextabAllTextMatches3$fRegexContextabAllTextMatches4$fRegexContextab[]0$fRegexContextabAllMatches$fRegexContextab[]1$fRegexContextabAllMatches0$fRegexContextabAllMatches1!$fRegexContextabAllTextSubmatches"$fRegexContextabAllTextSubmatches0"$fRegexContextabAllTextSubmatches1"$fRegexContextabAllTextSubmatches2$fRegexContextabAllSubmatches$fRegexContextabArray$fRegexContextab(,,,)$fRegexContextab(,,)$fRegexContextab(,,)0$fRegexContextabMatchResult$fRegexContextab(,)$fRegexContextabInt$fRegexContextab()$fRegexContextabBoolgetVersion_Text_Regex_Base polymatch polymatchMversiongetDataFileName getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirbaseGHC.BaseStringGHC.ListtakedropControl.Monad.Failfailghc-prim GHC.TypesBool