Sophie

Sophie

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

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>Darcs.Patch.Bundle</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_Darcs-Patch-Bundle.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Darcs-Patch-Bundle.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>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Darcs.Patch.Bundle</p></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:hashBundle">hashBundle</a> :: (<a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> p, <a href="Darcs-Patch-Show.html#t:ShowPatchBasic">ShowPatchBasic</a> p) =&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:makeBundle2">makeBundle2</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>) -&gt; <a href="Darcs-Witnesses-Ordered.html#t:RL">RL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) start x -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Printer.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:makeBundleN">makeBundleN</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>) -&gt; <a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p start x -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Printer.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:scanBundle">scanBundle</a> :: <span class="keyword">forall</span> p. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <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/base-4.5.0.0/Data-String.html#t:String">String</a> (<a href="Darcs-Patch-Set.html#t:SealedPatchSet">SealedPatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a>)</li><li class="src short"><a href="#v:contextPatches">contextPatches</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x -&gt; (<a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Witnesses-Ordered.html#t:RL">RL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)) <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x</li><li class="src short"><a href="#v:scanContext">scanContext</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x</li><li class="src short"><a href="#v:patchFilename">patchFilename</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/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:getContext">getContext</a> :: <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; ([<a href="Darcs-Patch-Info.html#t:PatchInfo">PatchInfo</a>], <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:parseBundle">parseBundle</a> :: <span class="keyword">forall</span> p. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <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/base-4.5.0.0/Data-String.html#t:String">String</a> (<a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> ((<a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)) <a href="Darcs-Patch-Set.html#t:Origin">Origin</a>))</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:hashBundle" class="def">hashBundle</a> :: (<a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> p, <a href="Darcs-Patch-Show.html#t:ShowPatchBasic">ShowPatchBasic</a> p) =&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Darcs-Patch-Bundle.html#hashBundle" class="link">Source</a></p><div class="doc"><p>hashBundle creates a SHA1 string of a given a FL of named patches. This
 allows us to ensure that the patches in a received patchBundle have not been
 modified in transit.
</p></div></div><div class="top"><p class="src"><a name="v:makeBundle2" class="def">makeBundle2</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>) -&gt; <a href="Darcs-Witnesses-Ordered.html#t:RL">RL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) start x -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Printer.html#t:Doc">Doc</a><a href="src/Darcs-Patch-Bundle.html#makeBundle2" class="link">Source</a></p><div class="doc"><p>In makeBundle2, it is presumed that the two patch sequences are
 identical, but that they may be lazily generated.  If two different
 patch sequences are passed, a bundle with a mismatched hash will be
 generated, which is not the end of the world, but isn't very useful
 either.
</p></div></div><div class="top"><p class="src"><a name="v:makeBundleN" class="def">makeBundleN</a> :: (<a href="Darcs-Patch-Apply.html#t:ApplyState">ApplyState</a> p ~ <a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a>, <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/hashed-storage-0.5.9/Storage-Hashed-Tree.html#t:Tree">Tree</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a>) -&gt; <a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p start x -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p) x y -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Printer.html#t:Doc">Doc</a><a href="src/Darcs-Patch-Bundle.html#makeBundleN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:scanBundle" class="def">scanBundle</a> :: <span class="keyword">forall</span> p. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <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/base-4.5.0.0/Data-String.html#t:String">String</a> (<a href="Darcs-Patch-Set.html#t:SealedPatchSet">SealedPatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a>)<a href="src/Darcs-Patch-Bundle.html#scanBundle" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:contextPatches" class="def">contextPatches</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x -&gt; (<a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Witnesses-Ordered.html#t:RL">RL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)) <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x<a href="src/Darcs-Patch-Bundle.html#contextPatches" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:scanContext" class="def">scanContext</a> :: <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Patch-Set.html#t:Origin">Origin</a> x<a href="src/Darcs-Patch-Bundle.html#scanContext" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:patchFilename" class="def">patchFilename</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/Data-String.html#t:String">String</a><a href="src/Darcs-Patch-Bundle.html#patchFilename" class="link">Source</a></p><div class="doc"><p>patchFilename maps a patch description string to a safe (lowercased, spaces
 removed and ascii-only characters) patch filename.
</p></div></div><div class="top"><p class="src"><a name="v:getContext" class="def">getContext</a> :: <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; ([<a href="Darcs-Patch-Info.html#t:PatchInfo">PatchInfo</a>], <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a>)<a href="src/Darcs-Patch-Bundle.html#getContext" class="link">Source</a></p><div class="doc"><p>getContext parses a context list, returning a tuple containing the list,
 and remaining ByteString input.
</p></div></div><div class="top"><p class="src"><a name="v:parseBundle" class="def">parseBundle</a> :: <span class="keyword">forall</span> p. <a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p =&gt; <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.2.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <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/base-4.5.0.0/Data-String.html#t:String">String</a> (<a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> ((<a href="Darcs-Patch-Set.html#t:PatchSet">PatchSet</a> p <a href="Darcs-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)) <a href="Darcs-Patch-Set.html#t:Origin">Origin</a>))<a href="src/Darcs-Patch-Bundle.html#parseBundle" class="link">Source</a></p></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>