Sophie

Sophie

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

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.RepoPath</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-RepoPath.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Darcs-RepoPath.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.RepoPath</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">AbsolutePath
</a></li><li><a href="#g:2">AbsolutePathOrStd
</a></li><li><a href="#g:3">AbsoluteOrRemotePath
</a></li><li><a href="#g:4">SubPath
</a></li><li><a href="#g:5">Miscellaneous
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Various abstractions for dealing with paths.
</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:AbsolutePath">AbsolutePath</a> </li><li class="src short"><a href="#v:makeAbsolute">makeAbsolute</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></li><li class="src short"><a href="#v:ioAbsolute">ioAbsolute</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/System-IO.html#t:IO">IO</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></li><li class="src short"><a href="#v:rootDirectory">rootDirectory</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:AbsolutePathOrStd">AbsolutePathOrStd</a> </li><li class="src short"><a href="#v:makeAbsoluteOrStd">makeAbsoluteOrStd</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</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-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a></li><li class="src short"><a href="#v:ioAbsoluteOrStd">ioAbsoluteOrStd</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="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a></li><li class="src short"><a href="#v:useAbsoluteOrStd">useAbsoluteOrStd</a> ::  (<a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; a) -&gt; a -&gt; <a href="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a> -&gt; a</li><li class="src short"><a href="#v:stdOut">stdOut</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</a> </li><li class="src short"><a href="#v:ioAbsoluteOrRemote">ioAbsoluteOrRemote</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="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</a></li><li class="src short"><a href="#v:isRemote">isRemote</a> :: <a href="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</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:SubPath">SubPath</a> </li><li class="src short"><a href="#v:makeSubPathOf">makeSubPathOf</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</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-RepoPath.html#t:SubPath">SubPath</a></li><li class="src short"><a href="#v:simpleSubPath">simpleSubPath</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="Darcs-RepoPath.html#t:SubPath">SubPath</a></li><li class="src short"><a href="#v:sp2fn">sp2fn</a> :: <a href="Darcs-RepoPath.html#t:SubPath">SubPath</a> -&gt; <a href="Darcs-Patch-FileName.html#t:FileName">FileName</a></li><li class="src short"><span class="keyword">class</span>  <a href="#t:FilePathOrURL">FilePathOrURL</a> a  <span class="keyword">where</span><ul class="subs"><li><a href="#v:toPath">toPath</a> :: a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> a =&gt; <a href="#t:FilePathLike">FilePathLike</a> a  <span class="keyword">where</span><ul class="subs"><li><a href="#v:toFilePath">toFilePath</a> :: a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a></li></ul></li><li class="src short"><a href="#v:getCurrentDirectory">getCurrentDirectory</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></li><li class="src short"><a href="#v:setCurrentDirectory">setCurrentDirectory</a> :: <a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> p =&gt; 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></ul></div><div id="interface"><h1 id="g:1">AbsolutePath
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:AbsolutePath" class="def">AbsolutePath</a>  <a href="src/Darcs-RepoPath.html#AbsolutePath" class="link">Source</a></p><div class="subs instances"><p id="control.i:AbsolutePath" class="caption collapser" onclick="toggleSection('i:AbsolutePath')">Instances</p><div id="section.i:AbsolutePath" 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-RepoPath.html#t:AbsolutePath">AbsolutePath</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/Data-Ord.html#t:Ord">Ord</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</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-RepoPath.html#t:AbsolutePath">AbsolutePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:makeAbsolute" class="def">makeAbsolute</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a><a href="src/Darcs-RepoPath.html#makeAbsolute" class="link">Source</a></p><div class="doc"><p>Take an absolute path and a string representing a (possibly relative)
 path and combine them into an absolute path. If the second argument is
 already absolute, then the first argument gets ignored. This function also
 takes care that the result is converted to Posix convention and
 normalized. Also, parent directories (&quot;..&quot;) at the front of the string
 argument get canceled out against trailing directory parts of the
 absolute path argument.
</p><p>Regarding the last point, someone more familiar with how these functions
 are used should verify that this is indeed necessary or at least useful.
</p></div></div><div class="top"><p class="src"><a name="v:ioAbsolute" class="def">ioAbsolute</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/System-IO.html#t:IO">IO</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a><a href="src/Darcs-RepoPath.html#ioAbsolute" class="link">Source</a></p><div class="doc"><p>Interpret a possibly relative path wrt the current working directory.
</p></div></div><div class="top"><p class="src"><a name="v:rootDirectory" class="def">rootDirectory</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a><a href="src/Darcs-RepoPath.html#rootDirectory" class="link">Source</a></p><div class="doc"><p>The root directory as an absolute path.
</p></div></div><h1 id="g:2">AbsolutePathOrStd
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:AbsolutePathOrStd" class="def">AbsolutePathOrStd</a>  <a href="src/Darcs-RepoPath.html#AbsolutePathOrStd" class="link">Source</a></p><div class="doc"><p>This is for situations where a string (e.g. a command line argument)
 may take the value &quot;-&quot; to mean stdin or stdout (which one depends on
 context) instead of a normal file path.
</p></div><div class="subs instances"><p id="control.i:AbsolutePathOrStd" class="caption collapser" onclick="toggleSection('i:AbsolutePathOrStd')">Instances</p><div id="section.i:AbsolutePathOrStd" 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-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</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/Data-Ord.html#t:Ord">Ord</a> <a href="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</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-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:makeAbsoluteOrStd" class="def">makeAbsoluteOrStd</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</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-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a><a href="src/Darcs-RepoPath.html#makeAbsoluteOrStd" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:ioAbsoluteOrStd" class="def">ioAbsoluteOrStd</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="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a><a href="src/Darcs-RepoPath.html#ioAbsoluteOrStd" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:useAbsoluteOrStd" class="def">useAbsoluteOrStd</a> ::  (<a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; a) -&gt; a -&gt; <a href="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a> -&gt; a<a href="src/Darcs-RepoPath.html#useAbsoluteOrStd" class="link">Source</a></p><div class="doc"><p>Execute either the first or the second argument action, depending on
 whether the given path is an <code><a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></code> or stdin/stdout.
</p></div></div><div class="top"><p class="src"><a name="v:stdOut" class="def">stdOut</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePathOrStd">AbsolutePathOrStd</a><a href="src/Darcs-RepoPath.html#stdOut" class="link">Source</a></p></div><h1 id="g:3">AbsoluteOrRemotePath
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:AbsoluteOrRemotePath" class="def">AbsoluteOrRemotePath</a>  <a href="src/Darcs-RepoPath.html#AbsoluteOrRemotePath" class="link">Source</a></p><div class="subs instances"><p id="control.i:AbsoluteOrRemotePath" class="caption collapser" onclick="toggleSection('i:AbsoluteOrRemotePath')">Instances</p><div id="section.i:AbsoluteOrRemotePath" 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-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</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/Data-Ord.html#t:Ord">Ord</a> <a href="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</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-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:ioAbsoluteOrRemote" class="def">ioAbsoluteOrRemote</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="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</a><a href="src/Darcs-RepoPath.html#ioAbsoluteOrRemote" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isRemote" class="def">isRemote</a> :: <a href="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</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/Darcs-RepoPath.html#isRemote" class="link">Source</a></p></div><h1 id="g:4">SubPath
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:SubPath" class="def">SubPath</a>  <a href="src/Darcs-RepoPath.html#SubPath" class="link">Source</a></p><div class="doc"><p>Paths which are relative to the local darcs repository and normalized.
 Note: These are understood not to have the dot in front.
</p></div><div class="subs instances"><p id="control.i:SubPath" class="caption collapser" onclick="toggleSection('i:SubPath')">Instances</p><div id="section.i:SubPath" 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-RepoPath.html#t:SubPath">SubPath</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/Data-Ord.html#t:Ord">Ord</a> <a href="Darcs-RepoPath.html#t:SubPath">SubPath</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-RepoPath.html#t:SubPath">SubPath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> <a href="Darcs-RepoPath.html#t:SubPath">SubPath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-RepoPath.html#t:SubPath">SubPath</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:makeSubPathOf" class="def">makeSubPathOf</a> :: <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a> -&gt; <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</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-RepoPath.html#t:SubPath">SubPath</a><a href="src/Darcs-RepoPath.html#makeSubPathOf" class="link">Source</a></p><div class="doc"><p>Make the second path relative to the first, if possible
</p></div></div><div class="top"><p class="src"><a name="v:simpleSubPath" class="def">simpleSubPath</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="Darcs-RepoPath.html#t:SubPath">SubPath</a><a href="src/Darcs-RepoPath.html#simpleSubPath" class="link">Source</a></p></div><h1 id="g:5">Miscellaneous
</h1><div class="top"><p class="src"><a name="v:sp2fn" class="def">sp2fn</a> :: <a href="Darcs-RepoPath.html#t:SubPath">SubPath</a> -&gt; <a href="Darcs-Patch-FileName.html#t:FileName">FileName</a><a href="src/Darcs-RepoPath.html#sp2fn" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">class</span>  <a name="t:FilePathOrURL" class="def">FilePathOrURL</a> a  <span class="keyword">where</span><a href="src/Darcs-RepoPath.html#FilePathOrURL" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toPath" class="def">toPath</a> :: 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-RepoPath.html#toPath" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:FilePathOrURL" class="caption collapser" onclick="toggleSection('i:FilePathOrURL')">Instances</p><div id="section.i:FilePathOrURL" class="show"><table><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-Patch-FileName.html#t:FileName">FileName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-RepoPath.html#t:AbsoluteOrRemotePath">AbsoluteOrRemotePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> <a href="Darcs-RepoPath.html#t:SubPath">SubPath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">CharLike c =&gt; <a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> [c]</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Darcs-RepoPath.html#t:FilePathOrURL">FilePathOrURL</a> a =&gt; <a name="t:FilePathLike" class="def">FilePathLike</a> a  <span class="keyword">where</span><a href="src/Darcs-RepoPath.html#FilePathLike" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:toFilePath" class="def">toFilePath</a> :: a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:FilePath">FilePath</a><a href="src/Darcs-RepoPath.html#toFilePath" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:FilePathLike" class="caption collapser" onclick="toggleSection('i:FilePathLike')">Instances</p><div id="section.i:FilePathLike" class="show"><table><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> <a href="Darcs-Patch-FileName.html#t:FileName">FileName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> <a href="Darcs-RepoPath.html#t:SubPath">SubPath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">CharLike c =&gt; <a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> [c]</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getCurrentDirectory" class="def">getCurrentDirectory</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Darcs-RepoPath.html#t:AbsolutePath">AbsolutePath</a><a href="src/Darcs-RepoPath.html#getCurrentDirectory" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setCurrentDirectory" class="def">setCurrentDirectory</a> :: <a href="Darcs-RepoPath.html#t:FilePathLike">FilePathLike</a> p =&gt; 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-RepoPath.html#setCurrentDirectory" 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>