<!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 >Darcs.Patch.Apply</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_Darcs-Patch-Apply.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" >darcs-2.4.4: a distributed, interactive, smart revision control system</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" >Darcs.Patch.Apply</FONT ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></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" ><A HREF="#v%3AapplyToFilepaths" >applyToFilepaths</A > :: <A HREF="Darcs-Patch-Patchy.html#t%3AApply" >Apply</A > p => p -> [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >] -> [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AapplyToSlurpy" >applyToSlurpy</A > :: (<A HREF="Darcs-Patch-Patchy.html#t%3AApply" >Apply</A > p, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Control-Monad.html#t%3AMonad" >Monad</A > m) => p -> <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A > -> m <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AforceTokReplace" >forceTokReplace</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A > -> <A HREF="Darcs-SlurpDirectory-Internal.html#t%3AFileContents" >FileContents</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Darcs-SlurpDirectory-Internal.html#t%3AFileContents" >FileContents</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AmarkupFile" >markupFile</A > :: <A HREF="Darcs-Patch-Prim.html#t%3AEffect" >Effect</A > p => <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A > -> p -> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >, <A HREF="Darcs-Patch-Apply.html#t%3AMarkedUpFile" >MarkedUpFile</A >) -> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >, <A HREF="Darcs-Patch-Apply.html#t%3AMarkedUpFile" >MarkedUpFile</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AemptyMarkedupFile" >emptyMarkedupFile</A > :: <A HREF="Darcs-Patch-Apply.html#t%3AMarkedUpFile" >MarkedUpFile</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3ApatchChanges" >patchChanges</A > :: <A HREF="Darcs-Patch-Prim.html#t%3APrim" >Prim</A > -> [(<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A >, <A HREF="Darcs-PopulationData.html#t%3ADirMark" >DirMark</A >)]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AapplyToPop" >applyToPop</A > :: <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A > -> <A HREF="Darcs-Witnesses-Ordered.html#t%3AFL" >FL</A > <A HREF="Darcs-Patch-Prim.html#t%3APrim" >Prim</A > -> <A HREF="Darcs-PopulationData.html#t%3APopulation" >Population</A > -> <A HREF="Darcs-PopulationData.html#t%3APopulation" >Population</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AapplyToTree" >applyToTree</A > :: <A HREF="Darcs-Patch-Patchy.html#t%3AApply" >Apply</A > p => p -> <A HREF="/usr/share/doc/ghc/html/libraries/hashed-storage-0.4.13/Storage-Hashed-Tree.html#t%3ATree" >Tree</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO" >IO</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO" >IO</A > (<A HREF="/usr/share/doc/ghc/html/libraries/hashed-storage-0.4.13/Storage-Hashed-Tree.html#t%3ATree" >Tree</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO" >IO</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3ALineMark" >LineMark</A > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" >= <A HREF="#v%3AAddedLine" >AddedLine</A > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ARemovedLine" >RemovedLine</A > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AAddedRemovedLine" >AddedRemovedLine</A > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ANone" >None</A ></TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A HREF="#t%3AMarkedUpFile" >MarkedUpFile</A > = [(<A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString" >ByteString</A >, <A HREF="Darcs-Patch-Apply.html#t%3ALineMark" >LineMark</A >)]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AforceReplaceSlurpy" >forceReplaceSlurpy</A > :: <A HREF="Darcs-Patch-Prim.html#t%3APrim" >Prim</A > -> <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Documentation</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:applyToFilepaths" ><A NAME="v%3AapplyToFilepaths" ></A ></A ><B >applyToFilepaths</B > :: <A HREF="Darcs-Patch-Patchy.html#t%3AApply" >Apply</A > p => p -> [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >] -> [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:applyToSlurpy" ><A NAME="v%3AapplyToSlurpy" ></A ></A ><B >applyToSlurpy</B > :: (<A HREF="Darcs-Patch-Patchy.html#t%3AApply" >Apply</A > p, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Control-Monad.html#t%3AMonad" >Monad</A > m) => p -> <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A > -> m <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:forceTokReplace" ><A NAME="v%3AforceTokReplace" ></A ></A ><B >forceTokReplace</B > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A > -> <A HREF="Darcs-SlurpDirectory-Internal.html#t%3AFileContents" >FileContents</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Darcs-SlurpDirectory-Internal.html#t%3AFileContents" >FileContents</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:markupFile" ><A NAME="v%3AmarkupFile" ></A ></A ><B >markupFile</B > :: <A HREF="Darcs-Patch-Prim.html#t%3AEffect" >Effect</A > p => <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A > -> p -> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >, <A HREF="Darcs-Patch-Apply.html#t%3AMarkedUpFile" >MarkedUpFile</A >) -> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AFilePath" >FilePath</A >, <A HREF="Darcs-Patch-Apply.html#t%3AMarkedUpFile" >MarkedUpFile</A >)</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:emptyMarkedupFile" ><A NAME="v%3AemptyMarkedupFile" ></A ></A ><B >emptyMarkedupFile</B > :: <A HREF="Darcs-Patch-Apply.html#t%3AMarkedUpFile" >MarkedUpFile</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:patchChanges" ><A NAME="v%3ApatchChanges" ></A ></A ><B >patchChanges</B > :: <A HREF="Darcs-Patch-Prim.html#t%3APrim" >Prim</A > -> [(<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Char.html#t%3AString" >String</A >, <A HREF="Darcs-PopulationData.html#t%3ADirMark" >DirMark</A >)]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:applyToPop" ><A NAME="v%3AapplyToPop" ></A ></A ><B >applyToPop</B > :: <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A > -> <A HREF="Darcs-Witnesses-Ordered.html#t%3AFL" >FL</A > <A HREF="Darcs-Patch-Prim.html#t%3APrim" >Prim</A > -> <A HREF="Darcs-PopulationData.html#t%3APopulation" >Population</A > -> <A HREF="Darcs-PopulationData.html#t%3APopulation" >Population</A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:applyToTree" ><A NAME="v%3AapplyToTree" ></A ></A ><B >applyToTree</B > :: <A HREF="Darcs-Patch-Patchy.html#t%3AApply" >Apply</A > p => p -> <A HREF="/usr/share/doc/ghc/html/libraries/hashed-storage-0.4.13/Storage-Hashed-Tree.html#t%3ATree" >Tree</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO" >IO</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO" >IO</A > (<A HREF="/usr/share/doc/ghc/html/libraries/hashed-storage-0.4.13/Storage-Hashed-Tree.html#t%3ATree" >Tree</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO" >IO</A >)</TD ></TR ><TR ><TD CLASS="doc" >Apply a patch to a <TT ><A HREF="/usr/share/doc/ghc/html/libraries/hashed-storage-0.4.13/Storage-Hashed-Tree.html#t%3ATree" >Tree</A ></TT >, yielding a new <TT ><A HREF="/usr/share/doc/ghc/html/libraries/hashed-storage-0.4.13/Storage-Hashed-Tree.html#t%3ATree" >Tree</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:LineMark" ><A NAME="t%3ALineMark" ></A ></A ><B >LineMark</B > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:AddedLine" ><A NAME="v%3AAddedLine" ></A ></A ><B >AddedLine</B > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:RemovedLine" ><A NAME="v%3ARemovedLine" ></A ></A ><B >RemovedLine</B > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:AddedRemovedLine" ><A NAME="v%3AAddedRemovedLine" ></A ></A ><B >AddedRemovedLine</B > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A > <A HREF="Darcs-Patch-Info.html#t%3APatchInfo" >PatchInfo</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:None" ><A NAME="v%3ANone" ></A ></A ><B >None</B ></TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:LineMark')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:LineMark" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Text-Show.html#t%3AShow" >Show</A > <A HREF="Darcs-Patch-Apply.html#t%3ALineMark" >LineMark</A ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:MarkedUpFile" ><A NAME="t%3AMarkedUpFile" ></A ></A ><B >MarkedUpFile</B > = [(<A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString" >ByteString</A >, <A HREF="Darcs-Patch-Apply.html#t%3ALineMark" >LineMark</A >)]</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:forceReplaceSlurpy" ><A NAME="v%3AforceReplaceSlurpy" ></A ></A ><B >forceReplaceSlurpy</B > :: <A HREF="Darcs-Patch-Prim.html#t%3APrim" >Prim</A > -> <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Darcs-SlurpDirectory-Internal.html#t%3ASlurpy" >Slurpy</A ></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.0</TD ></TR ></TABLE ></BODY ></HTML >