Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > db1bec35f1c4ea7caaafdb647ec20fa9 > files > 29

ghc-attoparsec-devel-0.8.5.0-3.fc15.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>Data.Attoparsec.Zepto</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_Data-Attoparsec-Zepto.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Attoparsec-Zepto.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">attoparsec-0.8.5.0: Fast combinator parsing for bytestrings</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>unknown</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>bos@serpentine.com</td></tr></table><p class="caption">Data.Attoparsec.Zepto</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A tiny, highly specialized combinator parser for <code><a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></code>
 strings.
</p><p>While the main Attoparsec module generally performs well, this
 module is particularly fast for simple non-recursive loops that
 should not normally result in failed parses.
</p><p><em>Warning</em>: on more complex inputs involving recursion or failure,
 parsers based on this module may be as much as <em>ten times slower</em>
 than regular Attoparsec! You should <em>only</em> use this module when you
 have benchmarks that prove that its use speeds your code up.
</p></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"><span class="keyword">data</span>  <a href="#t:Parser">Parser</a> a</li><li class="src short"><a href="#v:parse">parse</a> ::  <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> a</li><li class="src short"><a href="#v:atEnd">atEnd</a> :: <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:string">string</a> :: <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:take">take</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:takeWhile">takeWhile</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Parser" class="def">Parser</a> a <a href="src/Data-Attoparsec-Zepto.html#Parser" class="link">Source</a></p><div class="doc"><p>A simple parser.
</p><p>This monad is strict in its state, and the monadic bind operator
 (<code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html#v:-62--62--61-">&gt;&gt;=</a></code>) evaluates each result to weak head normal form before
 passing it along.
</p></div><div class="subs instances"><p id="control.i:Parser" class="caption collapser" onclick="toggleSection('i:Parser')">Instances</p><div id="section.i:Parser" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html#t:Monad">Monad</a> <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html#t:Functor">Functor</a> <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Control-Applicative.html#t:Alternative">Alternative</a> <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:parse" class="def">parse</a> ::  <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> a -&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> a<a href="src/Data-Attoparsec-Zepto.html#parse" class="link">Source</a></p><div class="doc"><p>Run a parser.
</p></div></div><div class="top"><p class="src"><a name="v:atEnd" class="def">atEnd</a> :: <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Data-Attoparsec-Zepto.html#atEnd" class="link">Source</a></p><div class="doc"><p>Indicate whether the end of the input has been reached.
</p></div></div><div class="top"><p class="src"><a name="v:string" class="def">string</a> :: <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Data-Attoparsec-Zepto.html#string" class="link">Source</a></p><div class="doc"><p>Match a string exactly.
</p></div></div><div class="top"><p class="src"><a name="v:take" class="def">take</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Attoparsec-Zepto.html#take" class="link">Source</a></p><div class="doc"><p>Consume <code>n</code> bytes of input.
</p></div></div><div class="top"><p class="src"><a name="v:takeWhile" class="def">takeWhile</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Attoparsec-Zepto.html#t:Parser">Parser</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Attoparsec-Zepto.html#takeWhile" class="link">Source</a></p><div class="doc"><p>Consume input while the predicate returns <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#v:True">True</a></code>.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>