úÎ!al\¾S      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQR(c) Chris Kuklewicz 2006 BSD-style (see the file LICENSE)>libraries@haskell.org, textregexlazy@personal.mightyreason.com experimentalnon-portable (MPTC+FD)Safe=>?@ACQ‘ regex-base)Used in results of RegexContext instances regex-base)Used in results of RegexContext instances regex-base)Used in results of RegexContext instances  regex-base)Used in results of RegexContext instances  regex-base?Extract allows for indexing operations on String or ByteString.  regex-basebefore is a renamed "take" regex-baseafter is a renamed "drop" regex-baseBFor when there is no match, this can construct an empty data value regex-baseHextract takes an offset and length and has a default implementation of 9extract (off,len) source = before len (after off source) regex-baseBRegexContext is the polymorphic interface to do matching. Since targetc is polymorphic you may need to suply the type explicitly in contexts where it cannot be inferred. The monadic  version uses S to report when the regex has no match in source. Two examples:Here the contest T is inferred: s[ 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-baseaRegexLike is parametrized on a regular expression type and a source type to run the matching on.ÿ~There are default implementations: matchTest and matchOnceText use matchOnce; matchCount and matchAllText use matchAll. matchOnce uses matchOnceText and matchAll uses matchAllText. So a minimal complete instance need to provide at least (matchOnce or matchOnceText) and (matchAll or matchAllText). Additional definitions are often provided where they will increase efficiency. w[ c | let notVowel = makeRegex "[^aeiou]" :: Regex, c <- ['a'..'z'], matchTest notVowel [c] ] "bcdfghjklmnpqrstvwxyz"8The strictness of these functions is instance dependent. regex-baseÿlThis 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-base¨matchAll 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-baseOmatchCount returns the number of non-overlapping matches returned by matchAll. regex-basevmatchTest return True if there is a match somewhere in the source (it checks the whole source not just at the start). regex-baselThis 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-basemRegexMaker captures the creation of the compiled regular expression from a source type and an option type.  and  report parse error using  MonadError!, usually (Either String regex).The O function has a default implementation that depends on makeRegexOpts and used # and $. Similarly for  and .*There are also default implementaions for  and j in terms of each other. So a minimal instance definition needs to only define one of these, hopefully . regex-base0make using the defaultCompOpt and defaultExecOpt regex-baseSpecify your own options regex-baseLmake using the defaultCompOpt and defaultExecOpt, reporting errors with fail regex-base4Specify your own options, reporting errors with fail  regex-baseÿrRather than carry them around spearately, 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 ExecOpt. The actually types for these depend on the backend.% 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 unused! 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)2   !"#$%&'()*+,-./01210/.'()*+,- !"#$%&   (c) Chris Kuklewicz 2006 BSD-style (see the file LICENSE)>libraries@haskell.org, textregexlazy@personal.mightyreason.com experimentalnon-portable (MPTC+FD)Safe=>?@ACUì(c) Chris Kuklewicz 2006 BSD-style (see the file LICENSE)>libraries@haskell.org, textregexlazy@personal.mightyreason.com experimentalnon-portable (MPTC+FD)Safe=>?@ACX·3   !"#$%&'()*+,-./01PP(c) Chris Kuklewicz 2006 BSD-style (see the file LICENSE)>libraries@haskell.org, textregexlazy@personal.mightyreason.com experimental,non-portable (Text.Regex.Base needs MPTC+FD)Safe=>?@AC\ªQRQRU        !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ(regex-base-0.93.2-Cli2oqQUcOcDZO6NVXhFbeText.Regex.Base.RegexLikeText.Regex.Base.ContextText.Regex.BaseText.Regex.Base.ImplAllTextMatchesgetAllTextMatches 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 $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 polymatchMbaseGHC.Basefailghc-prim GHC.TypesBool