Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e8e200d2a25c47b00b11e0744c0ae8d0 > files > 19

ghc-regex-base-devel-0.93.2-1.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Text.Regex.Base.RegexLike</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Text-Regex-Base-RegexLike.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>regex-base-0.93.2: Replaces/Enhances Text.Regex</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Text.Regex.Base.RegexLike</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>non-portable (MPTC+FD)</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>experimental</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>libraries@haskell.org, textregexlazy@personal.mightyreason.com</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Type aliases
</A
></DT
><DT
><A HREF="#2"
>Data types
</A
></DT
><DT
><A HREF="#3"
>Classes
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
>Classes and instances for Regex matching.
</P
><P
>All the classes are declared here, and some common type aliases, and
 the MatchResult data type.
</P
><P
>The only instances here are for Extract String and Extract ByteString.
 There are no data values.  The <TT
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
></TT
> instances are in
 <A HREF="Text-Regex-Base-Context.html"
>Text.Regex.Base.Context</A
>, except for ones which run afoul of a
 repeated variable (RegexContext regex a a), which are defined in each
 modules' String and ByteString modules.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A HREF="#t%3AMatchOffset"
>MatchOffset</A
> = <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A HREF="#t%3AMatchLength"
>MatchLength</A
> = <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A HREF="#t%3AMatchArray"
>MatchArray</A
> = <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A HREF="#t%3AMatchText"
>MatchText</A
> source = <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> (source, (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AMatchResult"
>MatchResult</A
> a = <A HREF="#v%3AMR"
>MR</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AmrBefore"
>mrBefore</A
> :: a</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3AmrMatch"
>mrMatch</A
> :: a</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3AmrAfter"
>mrAfter</A
> :: a</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3AmrSubList"
>mrSubList</A
> :: [a]</TD
></TR
><TR
><TD CLASS="recfield"
><A HREF="#v%3AmrSubs"
>mrSubs</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> a</TD
></TR
></TABLE
>}</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
>  <A HREF="#t%3ARegexOptions"
>RegexOptions</A
> regex compOpt execOpt | regex -&gt; compOpt execOpt, compOpt -&gt; regex execOpt, execOpt -&gt; regex compOpt <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3AblankCompOpt"
>blankCompOpt</A
> :: compOpt</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AblankExecOpt"
>blankExecOpt</A
> :: execOpt</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AdefaultCompOpt"
>defaultCompOpt</A
> :: compOpt</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AdefaultExecOpt"
>defaultExecOpt</A
> :: execOpt</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AsetExecOpts"
>setExecOpts</A
> :: execOpt -&gt; regex -&gt; regex</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AgetExecOpts"
>getExecOpts</A
> :: regex -&gt; execOpt</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexOptions"
>RegexOptions</A
> regex compOpt execOpt =&gt; <A HREF="#t%3ARegexMaker"
>RegexMaker</A
> regex compOpt execOpt source | regex -&gt; compOpt execOpt, compOpt -&gt; regex execOpt, execOpt -&gt; regex compOpt <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3AmakeRegex"
>makeRegex</A
> :: source -&gt; regex</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmakeRegexOpts"
>makeRegexOpts</A
> :: compOpt -&gt; execOpt -&gt; source -&gt; regex</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmakeRegexM"
>makeRegexM</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#t%3AMonad"
>Monad</A
> m =&gt; source -&gt; m regex</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmakeRegexOptsM"
>makeRegexOptsM</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#t%3AMonad"
>Monad</A
> m =&gt; compOpt -&gt; execOpt -&gt; source -&gt; m regex</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="Text-Regex-Base-RegexLike.html#t%3AExtract"
>Extract</A
> source =&gt; <A HREF="#t%3ARegexLike"
>RegexLike</A
> regex source  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchOnce"
>matchOnce</A
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchAll"
>matchAll</A
> :: regex -&gt; source -&gt; [<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
>]</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchCount"
>matchCount</A
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchTest"
>matchTest</A
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchAllText"
>matchAllText</A
> :: regex -&gt; source -&gt; [<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> source]</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchOnceText"
>matchOnceText</A
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> (source, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> source, source)</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> regex source =&gt; <A HREF="#t%3ARegexContext"
>RegexContext</A
> regex source target  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3Amatch"
>match</A
> :: regex -&gt; source -&gt; target</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AmatchM"
>matchM</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#t%3AMonad"
>Monad</A
> m =&gt; regex -&gt; source -&gt; m target</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
>  <A HREF="#t%3AExtract"
>Extract</A
> source  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3Abefore"
>before</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; source -&gt; source</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aafter"
>after</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; source -&gt; source</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aempty"
>empty</A
> :: source</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Aextract"
>extract</A
> :: (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) -&gt; source -&gt; source</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A HREF="#t%3AAllSubmatches"
>AllSubmatches</A
> f b = <A HREF="#v%3AAllSubmatches"
>AllSubmatches</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AgetAllSubmatches"
>getAllSubmatches</A
> :: f b</TD
></TR
></TABLE
>}</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A HREF="#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> f b = <A HREF="#v%3AAllTextSubmatches"
>AllTextSubmatches</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AgetAllTextSubmatches"
>getAllTextSubmatches</A
> :: f b</TD
></TR
></TABLE
>}</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A HREF="#t%3AAllMatches"
>AllMatches</A
> f b = <A HREF="#v%3AAllMatches"
>AllMatches</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AgetAllMatches"
>getAllMatches</A
> :: f b</TD
></TR
></TABLE
>}</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A HREF="#t%3AAllTextMatches"
>AllTextMatches</A
> f b = <A HREF="#v%3AAllTextMatches"
>AllTextMatches</A
> {<TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="recfield"
><A HREF="#v%3AgetAllTextMatches"
>getAllTextMatches</A
> :: f b</TD
></TR
></TABLE
>}</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section2"
><A NAME="1"
><A NAME="1"
>Type aliases
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t:MatchOffset"
><A NAME="t%3AMatchOffset"
></A
></A
><B
>MatchOffset</B
> = <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="doc"
>0 based index from start of source, or (-1) for unused
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t:MatchLength"
><A NAME="t%3AMatchLength"
></A
></A
><B
>MatchLength</B
> = <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="doc"
>non-negative length of a match
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t:MatchArray"
><A NAME="t%3AMatchArray"
></A
></A
><B
>MatchArray</B
> = <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)</TD
></TR
><TR
><TD CLASS="doc"
>0 based array, with 0th index indicating the full match.  If the
 full match location is not available, represent as (0,0).
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t:MatchText"
><A NAME="t%3AMatchText"
></A
></A
><B
>MatchText</B
> source = <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> (source, (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section2"
><A NAME="2"
><A NAME="2"
>Data types
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:MatchResult"
><A NAME="t%3AMatchResult"
></A
></A
><B
>MatchResult</B
> a </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>This is the same as the type from JRegex.
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:MR"
><A NAME="v%3AMR"
></A
></A
><B
>MR</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:mrBefore"
><A NAME="v%3AmrBefore"
></A
></A
><B
>mrBefore</B
> :: a</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:mrMatch"
><A NAME="v%3AmrMatch"
></A
></A
><B
>mrMatch</B
> :: a</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:mrAfter"
><A NAME="v%3AmrAfter"
></A
></A
><B
>mrAfter</B
> :: a</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:mrSubList"
><A NAME="v%3AmrSubList"
></A
></A
><B
>mrSubList</B
> :: [a]</TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:mrSubs"
><A NAME="v%3AmrSubs"
></A
></A
><B
>mrSubs</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> a</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:MatchResult')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:MatchResult" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchResult"
>MatchResult</A
> b)</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section2"
><A NAME="3"
><A NAME="3"
>Classes
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
>  <A NAME="t:RegexOptions"
><A NAME="t%3ARegexOptions"
></A
></A
><B
>RegexOptions</B
> regex compOpt execOpt | regex -&gt; compOpt execOpt, compOpt -&gt; regex execOpt, execOpt -&gt; regex compOpt <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Rather 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.
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
>Methods</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A NAME="v:blankCompOpt"
><A NAME="v%3AblankCompOpt"
></A
></A
><B
>blankCompOpt</B
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: compOpt</TD
><TD CLASS="rdoc"
>no options set at all in the backend
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:blankExecOpt"
><A NAME="v%3AblankExecOpt"
></A
></A
><B
>blankExecOpt</B
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: execOpt</TD
><TD CLASS="rdoc"
>no options set at all in the backend
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:defaultCompOpt"
><A NAME="v%3AdefaultCompOpt"
></A
></A
><B
>defaultCompOpt</B
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: compOpt</TD
><TD CLASS="rdoc"
>reasonable options (extended,caseSensitive,multiline regex)
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:defaultExecOpt"
><A NAME="v%3AdefaultExecOpt"
></A
></A
><B
>defaultExecOpt</B
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: execOpt</TD
><TD CLASS="rdoc"
>reasonable options (extended,caseSensitive,multiline regex)
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:setExecOpts"
><A NAME="v%3AsetExecOpts"
></A
></A
><B
>setExecOpts</B
> :: execOpt -&gt; regex -&gt; regex</TD
></TR
><TR
><TD CLASS="doc"
>forget old flags and use new ones
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:getExecOpts"
><A NAME="v%3AgetExecOpts"
></A
></A
><B
>getExecOpts</B
> :: regex -&gt; execOpt</TD
></TR
><TR
><TD CLASS="doc"
>retrieve the current flags
</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexOptions"
>RegexOptions</A
> regex compOpt execOpt =&gt; <A NAME="t:RegexMaker"
><A NAME="t%3ARegexMaker"
></A
></A
><B
>RegexMaker</B
> regex compOpt execOpt source | regex -&gt; compOpt execOpt, compOpt -&gt; regex execOpt, execOpt -&gt; regex compOpt <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>RegexMaker captures the creation of the compiled regular
 expression from a source type and an option type.  <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexM"
>makeRegexM</A
></TT
> and
 <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexM"
>makeRegexM</A
></TT
> report parse error using MonadError, usually (Either
 String regex).
</P
><P
>The <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegex"
>makeRegex</A
></TT
> function has a default implementation that depends
 on makeRegexOpts and used <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AdefaultCompOpt"
>defaultCompOpt</A
></TT
> and <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AdefaultExecOpt"
>defaultExecOpt</A
></TT
>.
 Similarly for <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexM"
>makeRegexM</A
></TT
> and <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexOptsM"
>makeRegexOptsM</A
></TT
>.
</P
><P
>There are also default implementaions for <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexOpts"
>makeRegexOpts</A
></TT
> and
 <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexOptsM"
>makeRegexOptsM</A
></TT
> in terms of each other.  So a minimal instance
 definition needs to only define one of these, hopefully
 <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmakeRegexOptsM"
>makeRegexOptsM</A
></TT
>.
</P
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
>Methods</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A NAME="v:makeRegex"
><A NAME="v%3AmakeRegex"
></A
></A
><B
>makeRegex</B
> :: source -&gt; regex</TD
></TR
><TR
><TD CLASS="doc"
>make using the defaultCompOpt and defaultExecOpt
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:makeRegexOpts"
><A NAME="v%3AmakeRegexOpts"
></A
></A
><B
>makeRegexOpts</B
> :: compOpt -&gt; execOpt -&gt; source -&gt; regex</TD
></TR
><TR
><TD CLASS="doc"
>Specify your own options
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:makeRegexM"
><A NAME="v%3AmakeRegexM"
></A
></A
><B
>makeRegexM</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#t%3AMonad"
>Monad</A
> m =&gt; source -&gt; m regex</TD
></TR
><TR
><TD CLASS="doc"
>make using the defaultCompOpt and defaultExecOpt, reporting errors with fail
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:makeRegexOptsM"
><A NAME="v%3AmakeRegexOptsM"
></A
></A
><B
>makeRegexOptsM</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#t%3AMonad"
>Monad</A
> m =&gt; compOpt -&gt; execOpt -&gt; source -&gt; m regex</TD
></TR
><TR
><TD CLASS="doc"
>Specify your own options, reporting errors with fail
</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="Text-Regex-Base-RegexLike.html#t%3AExtract"
>Extract</A
> source =&gt; <A NAME="t:RegexLike"
><A NAME="t%3ARegexLike"
></A
></A
><B
>RegexLike</B
> regex source  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>RegexLike is parametrized on a regular expression type and a
 source type to run the matching on.
</P
><P
>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.
</P
><PRE
> [ c | let notVowel = makeRegex &quot;[^aeiou]&quot; :: Regex, c &lt;- ['a'..'z'], matchTest notVowel [c]  ]

 &quot;bcdfghjklmnpqrstvwxyz&quot;
</PRE
><P
>The strictness of these functions is instance dependent.
</P
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
>Methods</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A NAME="v:matchOnce"
><A NAME="v%3AmatchOnce"
></A
></A
><B
>matchOnce</B
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
></TD
></TR
><TR
><TD CLASS="doc"
>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.
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:matchAll"
><A NAME="v%3AmatchAll"
></A
></A
><B
>matchAll</B
> :: regex -&gt; source -&gt; [<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
>]</TD
></TR
><TR
><TD CLASS="doc"
>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.
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:matchCount"
><A NAME="v%3AmatchCount"
></A
></A
><B
>matchCount</B
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="doc"
>matchCount returns the number of non-overlapping matches
 returned by matchAll.
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:matchTest"
><A NAME="v%3AmatchTest"
></A
></A
><B
>matchTest</B
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="doc"
>matchTest return True if there is a match somewhere in the
 source (it checks the whole source not just at the start).
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:matchAllText"
><A NAME="v%3AmatchAllText"
></A
></A
><B
>matchAllText</B
> :: regex -&gt; source -&gt; [<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> source]</TD
></TR
><TR
><TD CLASS="doc"
>This is matchAll with the actual subsections of the source
 instead of just the (offset,length) information.
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:matchOnceText"
><A NAME="v%3AmatchOnceText"
></A
></A
><B
>matchOnceText</B
> :: regex -&gt; source -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> (source, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> source, source)</TD
></TR
><TR
><TD CLASS="doc"
>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.
</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> regex source =&gt; <A NAME="t:RegexContext"
><A NAME="t%3ARegexContext"
></A
></A
><B
>RegexContext</B
> regex source target  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>RegexContext is the polymorphic interface to do matching.  Since
 target is polymorphic you may need to suply the type explicitly
 in contexts where it cannot be inferred.
</P
><P
>The monadic <TT
><A HREF="Text-Regex-Base-RegexLike.html#v%3AmatchM"
>matchM</A
></TT
> version uses <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#v%3Afail"
>fail</A
></TT
> to report when the regex
 has no match in source.  Two examples:
</P
><P
>Here the contest <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TT
> is inferred:
</P
><PRE
> [ c | let notVowel = makeRegex &quot;[^aeiou]&quot; :: Regex, c &lt;- ['a'..'z'], match notVowel [c]  ]

 &quot;bcdfghjklmnpqrstvwxyz&quot;
</PRE
><P
>Here the context '[String]' must be supplied:
</P
><PRE
> let notVowel = (makeRegex &quot;[^aeiou]&quot; :: Regex )
 in do { c &lt;- ['a'..'z'] ; matchM notVowel [c] } :: [String]

 [&quot;b&quot;,&quot;c&quot;,&quot;d&quot;,&quot;f&quot;,&quot;g&quot;,&quot;h&quot;,&quot;j&quot;,&quot;k&quot;,&quot;l&quot;,&quot;m&quot;,&quot;n&quot;,&quot;p&quot;,&quot;q&quot;,&quot;r&quot;,&quot;s&quot;,&quot;t&quot;,&quot;v&quot;,&quot;w&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]
</PRE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
>Methods</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A NAME="v:match"
><A NAME="v%3Amatch"
></A
></A
><B
>match</B
> :: regex -&gt; source -&gt; target</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:matchM"
><A NAME="v%3AmatchM"
></A
></A
><B
>matchM</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Monad.html#t%3AMonad"
>Monad</A
> m =&gt; regex -&gt; source -&gt; m target</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:RegexContext')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:RegexContext" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b ()</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b [[b]]</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b [<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> b]</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b [<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
>]</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchResult"
>MatchResult</A
> b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> b))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> [] (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> b))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) [b])</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> [] b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> b))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllMatches"
>AllMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
>)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllMatches"
>AllMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllMatches"
>AllMatches</A
> [] (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> [] b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> [] (b, (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (b, (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllSubmatches"
>AllSubmatches</A
> [] (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (b, b, b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (b, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> b, b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (b, b, b, [b])</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
>  <A NAME="t:Extract"
><A NAME="t%3AExtract"
></A
></A
><B
>Extract</B
> source  <SPAN CLASS="keyword"
>where</SPAN
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Extract allows for indexing operations on String or ByteString.
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
>Methods</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A NAME="v:before"
><A NAME="v%3Abefore"
></A
></A
><B
>before</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; source -&gt; source</TD
></TR
><TR
><TD CLASS="doc"
>before is a renamed <A HREF="take.html"
>take</A
>
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:after"
><A NAME="v%3Aafter"
></A
></A
><B
>after</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; source -&gt; source</TD
></TR
><TR
><TD CLASS="doc"
>after is a renamed <A HREF="drop.html"
>drop</A
>
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:empty"
><A NAME="v%3Aempty"
></A
></A
><B
>empty</B
> :: source</TD
></TR
><TR
><TD CLASS="doc"
>For when there is no match, this can construct an empty data value
</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:extract"
><A NAME="v%3Aextract"
></A
></A
><B
>extract</B
> :: (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) -&gt; source -&gt; source</TD
></TR
><TR
><TD CLASS="doc"
>extract takes an offset and length and has a default
 implementation of <TT
>extract (off,len) source = before len (after
 off source)</TT
>
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Extract')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:Extract" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3AExtract"
>Extract</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3AExtract"
>Extract</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.7/Data-ByteString-Lazy.html#t%3AByteString"
>ByteString</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3AExtract"
>Extract</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.7/Data-ByteString.html#t%3AByteString"
>ByteString</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3AExtract"
>Extract</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Sequence.html#t%3ASeq"
>Seq</A
> a)</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A NAME="t:AllSubmatches"
><A NAME="t%3AAllSubmatches"
></A
></A
><B
>AllSubmatches</B
> f b </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Used in results of RegexContext instances
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:AllSubmatches"
><A NAME="v%3AAllSubmatches"
></A
></A
><B
>AllSubmatches</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:getAllSubmatches"
><A NAME="v%3AgetAllSubmatches"
></A
></A
><B
>getAllSubmatches</B
> :: f b</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:AllSubmatches')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:AllSubmatches" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllSubmatches"
>AllSubmatches</A
> [] (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A NAME="t:AllTextSubmatches"
><A NAME="t%3AAllTextSubmatches"
></A
></A
><B
>AllTextSubmatches</B
> f b </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Used in results of RegexContext instances
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:AllTextSubmatches"
><A NAME="v%3AAllTextSubmatches"
></A
></A
><B
>AllTextSubmatches</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:getAllTextSubmatches"
><A NAME="v%3AgetAllTextSubmatches"
></A
></A
><B
>getAllTextSubmatches</B
> :: f b</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:AllTextSubmatches')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:AllTextSubmatches" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> [] b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> [] (b, (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextSubmatches"
>AllTextSubmatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (b, (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>)))</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A NAME="t:AllMatches"
><A NAME="t%3AAllMatches"
></A
></A
><B
>AllMatches</B
> f b </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Used in results of RegexContext instances
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:AllMatches"
><A NAME="v%3AAllMatches"
></A
></A
><B
>AllMatches</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:getAllMatches"
><A NAME="v%3AgetAllMatches"
></A
></A
><B
>getAllMatches</B
> :: f b</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:AllMatches')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:AllMatches" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllMatches"
>AllMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchArray"
>MatchArray</A
>)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllMatches"
>AllMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllMatches"
>AllMatches</A
> [] (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchOffset"
>MatchOffset</A
>, <A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchLength"
>MatchLength</A
>))</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>newtype</SPAN
>  <A NAME="t:AllTextMatches"
><A NAME="t%3AAllTextMatches"
></A
></A
><B
>AllTextMatches</B
> f b </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Used in results of RegexContext instances
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="5" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:AllTextMatches"
><A NAME="v%3AAllTextMatches"
></A
></A
><B
>AllTextMatches</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="body" COLSPAN="2"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:getAllTextMatches"
><A NAME="v%3AgetAllTextMatches"
></A
></A
><B
>getAllTextMatches</B
> :: f b</TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:AllTextMatches')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:AllTextMatches" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> b))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> [] (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> b))</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) [b])</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> [] b)</TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexLike"
>RegexLike</A
> a b =&gt; <A HREF="Text-Regex-Base-RegexLike.html#t%3ARegexContext"
>RegexContext</A
> a b (<A HREF="Text-Regex-Base-RegexLike.html#t%3AAllTextMatches"
>AllTextMatches</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array.html#t%3AArray"
>Array</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>) (<A HREF="Text-Regex-Base-RegexLike.html#t%3AMatchText"
>MatchText</A
> b))</TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>