Sophie

Sophie

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

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.SelectChanges</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-SelectChanges.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Darcs-SelectChanges.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.SelectChanges</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:selectChanges">selectChanges</a> :: <span class="keyword">forall</span> p x y. (<a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p, <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>) =&gt; <a href="Darcs-SelectChanges.html#t:WhichChanges">WhichChanges</a> -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p x y -&gt; PatchSelection p x y</li><li class="src short"><span class="keyword">data</span>  <a href="#t:WhichChanges">WhichChanges</a> <ul class="subs"><li>= <a href="#v:Last">Last</a>  </li><li>| <a href="#v:LastReversed">LastReversed</a>  </li><li>| <a href="#v:First">First</a>  </li><li>| <a href="#v:FirstReversed">FirstReversed</a>  </li></ul></li><li class="src short"><a href="#v:viewChanges">viewChanges</a> :: (<a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p, <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>) =&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; [<a href="Darcs-Witnesses-Sealed.html#t:Sealed2">Sealed2</a> p] -&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/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:withSelectedPatchFromRepo">withSelectedPatchFromRepo</a> :: <span class="keyword">forall</span> p r u t. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <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>) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Darcs-Repository-InternalTypes.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; (<span class="keyword">forall</span> 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-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) a r -&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/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</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/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:filterOutConflicts">filterOutConflicts</a> :: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <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>) =&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="Darcs-Witnesses-Ordered.html#t:RL">RL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t -&gt; <a href="Darcs-Repository-InternalTypes.html#t:Repository">Repository</a> p r u t -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x z -&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/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x))</li><li class="src short"><a href="#v:runSelection">runSelection</a> :: <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p =&gt; PatchSelection p x y -&gt; PatchSelectionContext p -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> ((<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p <a href="Darcs-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p) x y)</li><li class="src short"><a href="#v:selectionContextPrim">selectionContextPrim</a> :: <a href="Darcs-Patch-Prim-Class.html#t:PrimPatch">PrimPatch</a> prim =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Darcs-Patch-Split.html#t:Splitter">Splitter</a> prim) -&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/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a>] -&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; PatchSelectionContext prim</li><li class="src short"><a href="#v:selectionContext">selectionContext</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-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Darcs-Patch-Split.html#t:Splitter">Splitter</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</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/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a>] -&gt; PatchSelectionContext (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:selectChanges" class="def">selectChanges</a> :: <span class="keyword">forall</span> p x y. (<a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p, <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>) =&gt; <a href="Darcs-SelectChanges.html#t:WhichChanges">WhichChanges</a> -&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p x y -&gt; PatchSelection p x y<a href="src/Darcs-SelectChanges.html#selectChanges" class="link">Source</a></p><div class="doc"><p>Select patches from a <code>FL</code>.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:WhichChanges" class="def">WhichChanges</a>  <a href="src/Darcs-SelectChanges.html#WhichChanges" class="link">Source</a></p><div class="doc"><p>When asking about patches, we either ask about them in
 oldest-first or newest first (with respect to the current ordering
 of the repository), and we either want an initial segment or a
 final segment of the poset of patches.
</p><p><code>First</code>: ask for an initial
 segment, first patches first (default for all pull-like commands)
</p><p><code>FirstReversed</code>: ask for an initial segment, last patches first
 (used to ask about dependencies in record, and for pull-like
 commands with the <code>--reverse</code> flag).
</p><p><code>LastReversed</code>: ask for a final segment, last patches first. (default
 for unpull-like commands, except for selecting *primitive* patches in
 rollback)
</p><p><code>Last</code>: ask for a final segment, first patches first. (used for selecting
 primitive patches in rollback, and for unpull-like commands with the
 <code>--reverse</code> flag
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Last" class="def">Last</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:LastReversed" class="def">LastReversed</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:First" class="def">First</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:FirstReversed" class="def">FirstReversed</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:WhichChanges" class="caption collapser" onclick="toggleSection('i:WhichChanges')">Instances</p><div id="section.i:WhichChanges" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Darcs-SelectChanges.html#t:WhichChanges">WhichChanges</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Darcs-SelectChanges.html#t:WhichChanges">WhichChanges</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:viewChanges" class="def">viewChanges</a> :: (<a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p, <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>) =&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; [<a href="Darcs-Witnesses-Sealed.html#t:Sealed2">Sealed2</a> p] -&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/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-SelectChanges.html#viewChanges" class="link">Source</a></p><div class="doc"><p>The equivalent of <code><a href="Darcs-SelectChanges.html#v:selectChanges">selectChanges</a></code> for the <code>darcs changes</code> command
</p></div></div><div class="top"><p class="src"><a name="v:withSelectedPatchFromRepo" class="def">withSelectedPatchFromRepo</a> :: <span class="keyword">forall</span> p r u t. (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <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>) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="Darcs-Repository-InternalTypes.html#t:Repository">Repository</a> p r u t -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; (<span class="keyword">forall</span> 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-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) a r -&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/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</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/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Darcs-SelectChanges.html#withSelectedPatchFromRepo" class="link">Source</a></p><div class="doc"><p>The function for selecting a patch to amend record. Read at your own risks.
</p></div></div><div class="top"><p class="src"><a name="v:filterOutConflicts" class="def">filterOutConflicts</a><a href="src/Darcs-SelectChanges.html#filterOutConflicts" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Darcs-Patch-RepoPatch.html#t:RepoPatch">RepoPatch</a> p, <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>)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>]</td><td class="doc"><p>Command-line options. Only <code><a href="Darcs-Flags.html#v:SkipConflicts">SkipConflicts</a></code> is
 significant; filtering will happen iff it is present
</p></td></tr><tr><td class="src">-&gt; <a href="Darcs-Witnesses-Ordered.html#t:RL">RL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x t</td><td class="doc"><p>Recorded patches from repository, starting from
 same context as the patches to filter
</p></td></tr><tr><td class="src">-&gt; <a href="Darcs-Repository-InternalTypes.html#t:Repository">Repository</a> p r u t</td><td class="doc"><p>Repository itself, used for grabbing unrecorded changes
</p></td></tr><tr><td class="src">-&gt; <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x z</td><td class="doc"><p>Patches to filter
</p></td></tr><tr><td class="src">-&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/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Darcs-Witnesses-Sealed.html#t:Sealed">Sealed</a> (<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p) x))</td><td class="doc"><p>(True iff any patches were removed, possibly filtered patches)
</p></td></tr></table></div><div class="doc"><p>Optionally remove any patches (+dependencies) from a sequence that
 conflict with the recorded or unrecorded changes in a repo
</p></div></div><div class="top"><p class="src"><a name="v:runSelection" class="def">runSelection</a> :: <a href="Darcs-Patch-Patchy.html#t:Patchy">Patchy</a> p =&gt; PatchSelection p x y -&gt; PatchSelectionContext p -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> ((<a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p <a href="Darcs-Witnesses-Ordered.html#t::-62-">:&gt;</a> <a href="Darcs-Witnesses-Ordered.html#t:FL">FL</a> p) x y)<a href="src/Darcs-SelectChanges.html#runSelection" class="link">Source</a></p><div class="doc"><p>runs a <code>PatchSelection</code> action in the given <code>PatchSelectionContext</code>.
</p></div></div><div class="top"><p class="src"><a name="v:selectionContextPrim" class="def">selectionContextPrim</a> :: <a href="Darcs-Patch-Prim-Class.html#t:PrimPatch">PrimPatch</a> prim =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Darcs-Patch-Split.html#t:Splitter">Splitter</a> prim) -&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/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a>] -&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; PatchSelectionContext prim<a href="src/Darcs-SelectChanges.html#selectionContextPrim" class="link">Source</a></p><div class="doc"><p>A <code>PatchSelectionContext</code> for selecting <code>Prim</code> patches.
</p></div></div><div class="top"><p class="src"><a name="v:selectionContext" class="def">selectionContext</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-String.html#t:String">String</a> -&gt; [<a href="Darcs-Flags.html#t:DarcsFlag">DarcsFlag</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Darcs-Patch-Split.html#t:Splitter">Splitter</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</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/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a>] -&gt; PatchSelectionContext (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)<a href="src/Darcs-SelectChanges.html#selectionContext" class="link">Source</a></p><div class="doc"><p>A <code>PatchSelectionContext</code> for selecting full patches (<code><a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a></code> patches)
</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>