Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > db7a4a658d190b3e658423135710c498 > files > 729

ghc-darcs-devel-2.8.3-1.fc18.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>DateMatcher</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_DateMatcher.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/DateMatcher.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">darcs-2.8.3: a distributed, interactive, smart revision control system</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>darcs-devel@darcs.net</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">DateMatcher</p></div><div id="description"><p class="caption">Description</p><div class="doc empty">&nbsp;</div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:parseDateMatcher">parseDateMatcher</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/old-time-1.1.0.0/System-Time.html#t:CalendarTime">CalendarTime</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:DateMatcher">DateMatcher</a>  = <span class="keyword">forall</span> d . <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> d =&gt; <a href="#v:DM">DM</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.2/Text-Parsec-Error.html#t:ParseError">ParseError</a> d) (d -&gt; <a href="/usr/share/doc/ghc/html/libraries/old-time-1.1.0.0/System-Time.html#t:CalendarTime">CalendarTime</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:getMatchers">getMatchers</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [<a href="DateMatcher.html#t:DateMatcher">DateMatcher</a>]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:parseDateMatcher" class="def">parseDateMatcher</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/old-time-1.1.0.0/System-Time.html#t:CalendarTime">CalendarTime</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>)<a href="src/DateMatcher.html#parseDateMatcher" class="link">Source</a></p><div class="doc"><p><code><a href="DateMatcher.html#v:parseDateMatcher">parseDateMatcher</a></code> <code>s</code> return the first  matcher in
    <code><a href="DateMatcher.html#v:getMatchers">getMatchers</a></code> that can parse <code>s</code>
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:DateMatcher" class="def">DateMatcher</a>  <a href="src/DateMatcher.html#DateMatcher" class="link">Source</a></p><div class="doc"><p>A <code><a href="DateMatcher.html#t:DateMatcher">DateMatcher</a></code> combines a potential parse for a date string
   with a <a href="matcher.html">matcher</a> function that operates on a given date.
   We use an existential type on the matcher to allow
   the date string to either be interpreted as a point in time
   or as an interval.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><span class="keyword">forall</span> d . <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> d =&gt; <a name="v:DM" class="def">DM</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/parsec-3.1.2/Text-Parsec-Error.html#t:ParseError">ParseError</a> d) (d -&gt; <a href="/usr/share/doc/ghc/html/libraries/old-time-1.1.0.0/System-Time.html#t:CalendarTime">CalendarTime</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:getMatchers" class="def">getMatchers</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [<a href="DateMatcher.html#t:DateMatcher">DateMatcher</a>]<a href="src/DateMatcher.html#getMatchers" class="link">Source</a></p><div class="doc"><p><code><a href="DateMatcher.html#v:getMatchers">getMatchers</a></code> <code>d</code> returns the list of matchers that will be
   applied on <code>d</code>.  If you wish to extend the date parsing code,
   this will likely be the function that you modify to do so.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>