Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 2dd522869852f486bc4f11d13b44a24b > files > 21

ghc-system-filepath-devel-0.4.7-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>Filesystem.Path</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_Filesystem-Path.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Filesystem-Path.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">system-filepath-0.4.7: High-level, byte-based file and directory path manipulations</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Maintainer</th><td>jmillikin@gmail.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Filesystem.Path</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Basic properties
</a></li><li><a href="#g:2">Basic operations
</a></li><li><a href="#g:3">Extensions
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>High&#8208;level, byte&#8208;based file and directory path
 manipulations. You probably want to import <a href="Filesystem-Path-CurrentOS.html">Filesystem.Path.CurrentOS</a>
 instead, since it handles detecting which rules to use in the current
 compilation.
</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:FilePath">FilePath</a> </li><li class="src short"><a href="#v:empty">empty</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:null">null</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</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"><a href="#v:root">root</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:directory">directory</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:parent">parent</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:filename">filename</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:dirname">dirname</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:basename">basename</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:absolute">absolute</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</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"><a href="#v:relative">relative</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</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"><a href="#v:append">append</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:-60--47--62-">(&lt;/&gt;)</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:concat">concat</a> :: [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:commonPrefix">commonPrefix</a> :: [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:stripPrefix">stripPrefix</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.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="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:collapse">collapse</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:splitDirectories">splitDirectories</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>]</li><li class="src short"><a href="#v:extension">extension</a> :: <a href="Filesystem-Path.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/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a></li><li class="src short"><a href="#v:extensions">extensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>]</li><li class="src short"><a href="#v:hasExtension">hasExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</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"><a href="#v:addExtension">addExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:-60-.-62-">(&lt;.&gt;)</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:dropExtension">dropExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:replaceExtension">replaceExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:addExtensions">addExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:dropExtensions">dropExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:replaceExtensions">replaceExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a></li><li class="src short"><a href="#v:splitExtension">splitExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; (<a href="Filesystem-Path.html#t:FilePath">FilePath</a>, <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/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>)</li><li class="src short"><a href="#v:splitExtensions">splitExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; (<a href="Filesystem-Path.html#t:FilePath">FilePath</a>, [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>])</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FilePath" class="def">FilePath</a>  <a href="src/Filesystem-Path-Internal.html#FilePath" class="link">Source</a></p><div class="subs instances"><p id="control.i:FilePath" class="caption collapser" onclick="toggleSection('i:FilePath')">Instances</p><div id="section.i:FilePath" 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="Filesystem-Path.html#t:FilePath">FilePath</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-Data.html#t:Data">Data</a> <a href="Filesystem-Path.html#t:FilePath">FilePath</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="Filesystem-Path.html#t:FilePath">FilePath</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="Filesystem-Path.html#t:FilePath">FilePath</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-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Filesystem-Path.html#t:FilePath">FilePath</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-String.html#t:IsString">IsString</a> <a href="Filesystem-Path.html#t:FilePath">FilePath</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-Monoid.html#t:Monoid">Monoid</a> <a href="Filesystem-Path.html#t:FilePath">FilePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/deepseq-1.3.0.0/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Filesystem-Path.html#t:FilePath">FilePath</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:empty" class="def">empty</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path-Internal.html#empty" class="link">Source</a></p><div class="doc"><p>A file path with no root, directory, or filename
</p></div></div><h1 id="g:1">Basic properties
</h1><div class="top"><p class="src"><a name="v:null" class="def">null</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</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/Filesystem-Path.html#null" class="link">Source</a></p><div class="doc"><pre>null p = (p == <code><a href="Filesystem-Path.html#v:empty">empty</a></code>)</pre></div></div><div class="top"><p class="src"><a name="v:root" class="def">root</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#root" class="link">Source</a></p><div class="doc"><p>Retrieves the <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s root.
</p></div></div><div class="top"><p class="src"><a name="v:directory" class="def">directory</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#directory" class="link">Source</a></p><div class="doc"><p>Retrieves the <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s directory. If the path is already a
 directory, it is returned unchanged.
</p></div></div><div class="top"><p class="src"><a name="v:parent" class="def">parent</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#parent" class="link">Source</a></p><div class="doc"><p>Retrieves the <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s parent directory.
</p></div></div><div class="top"><p class="src"><a name="v:filename" class="def">filename</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#filename" class="link">Source</a></p><div class="doc"><p>Retrieve a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s filename component.
</p><pre>
 filename &quot;foo/bar.txt&quot; == &quot;bar.txt&quot;
</pre></div></div><div class="top"><p class="src"><a name="v:dirname" class="def">dirname</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#dirname" class="link">Source</a></p><div class="doc"><p>Retrieve a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s directory name. This is only the
 <em>file name</em> of the directory, not its full path.
</p><pre>
 dirname &quot;foo/bar/baz.txt&quot; == &quot;bar&quot;
 dirname &quot;/&quot; == &quot;&quot;
</pre><p>Since: 0.4.1
</p></div></div><div class="top"><p class="src"><a name="v:basename" class="def">basename</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#basename" class="link">Source</a></p><div class="doc"><p>Retrieve a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s basename component.
</p><pre>
 basename &quot;foo/bar.txt&quot; == &quot;bar&quot;
</pre></div></div><div class="top"><p class="src"><a name="v:absolute" class="def">absolute</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</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/Filesystem-Path.html#absolute" class="link">Source</a></p><div class="doc"><p>Test whether a path is absolute.
</p></div></div><div class="top"><p class="src"><a name="v:relative" class="def">relative</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</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/Filesystem-Path.html#relative" class="link">Source</a></p><div class="doc"><p>Test whether a path is relative.
</p></div></div><h1 id="g:2">Basic operations
</h1><div class="top"><p class="src"><a name="v:append" class="def">append</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#append" class="link">Source</a></p><div class="doc"><p>Appends two <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>s. If the second path is absolute, it is returned
 unchanged.
</p></div></div><div class="top"><p class="src"><a name="v:-60--47--62-" class="def">(&lt;/&gt;)</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#%3C%2F%3E" class="link">Source</a></p><div class="doc"><p>An alias for <code><a href="Filesystem-Path.html#v:append">append</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:concat" class="def">concat</a> :: [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#concat" class="link">Source</a></p><div class="doc"><p>A fold over <code><a href="Filesystem-Path.html#v:append">append</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:commonPrefix" class="def">commonPrefix</a> :: [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#commonPrefix" class="link">Source</a></p><div class="doc"><p>Find the greatest common prefix between a list of <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>s.
</p></div></div><div class="top"><p class="src"><a name="v:stripPrefix" class="def">stripPrefix</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.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="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#stripPrefix" class="link">Source</a></p><div class="doc"><p>Remove a prefix from a path.
</p><pre>
 <code><a href="Filesystem-Path.html#v:stripPrefix">stripPrefix</a></code> &quot;<em>foo</em>&quot; &quot;<em>foo</em>bar<em>baz.txt\&quot; == Just \&quot;bar</em>baz.txt&quot;
 <code><a href="Filesystem-Path.html#v:stripPrefix">stripPrefix</a></code> &quot;<em>foo</em>&quot; &quot;<em>bar</em>baz.txt&quot; == Nothing
</pre><p>Since: 0.4.1
</p></div></div><div class="top"><p class="src"><a name="v:collapse" class="def">collapse</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#collapse" class="link">Source</a></p><div class="doc"><p>Remove <code>&quot;.&quot;</code> and <code>&quot;..&quot;</code> directories from a path.
</p><p>Note that if any of the elements are symbolic links, <code><a href="Filesystem-Path.html#v:collapse">collapse</a></code> may change
 which file the path resolves to.
</p><p>Since: 0.2
</p></div></div><div class="top"><p class="src"><a name="v:splitDirectories" class="def">splitDirectories</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="Filesystem-Path.html#t:FilePath">FilePath</a>]<a href="src/Filesystem-Path.html#splitDirectories" class="link">Source</a></p></div><h1 id="g:3">Extensions
</h1><div class="top"><p class="src"><a name="v:extension" class="def">extension</a> :: <a href="Filesystem-Path.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/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a><a href="src/Filesystem-Path.html#extension" class="link">Source</a></p><div class="doc"><p>Get a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s last extension, or <code><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if it has no
 extensions.
</p></div></div><div class="top"><p class="src"><a name="v:extensions" class="def">extensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>]<a href="src/Filesystem-Path.html#extensions" class="link">Source</a></p><div class="doc"><p>Get a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s full extension list.
</p></div></div><div class="top"><p class="src"><a name="v:hasExtension" class="def">hasExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</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/Filesystem-Path.html#hasExtension" class="link">Source</a></p><div class="doc"><p>Get whether a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s last extension is the predicate.
</p></div></div><div class="top"><p class="src"><a name="v:addExtension" class="def">addExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#addExtension" class="link">Source</a></p><div class="doc"><p>Append an extension to the end of a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:-60-.-62-" class="def">(&lt;.&gt;)</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#%3C.%3E" class="link">Source</a></p><div class="doc"><p>An alias for <code><a href="Filesystem-Path.html#v:addExtension">addExtension</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:dropExtension" class="def">dropExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#dropExtension" class="link">Source</a></p><div class="doc"><p>Remove a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s last extension.
</p></div></div><div class="top"><p class="src"><a name="v:replaceExtension" class="def">replaceExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#replaceExtension" class="link">Source</a></p><div class="doc"><p>Replace a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>&#8217;s last extension.
</p></div></div><div class="top"><p class="src"><a name="v:addExtensions" class="def">addExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#addExtensions" class="link">Source</a></p><div class="doc"><p>Append many extensions to the end of a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:dropExtensions" class="def">dropExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#dropExtensions" class="link">Source</a></p><div class="doc"><p>Remove all extensions from a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:replaceExtensions" class="def">replaceExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>] -&gt; <a href="Filesystem-Path.html#t:FilePath">FilePath</a><a href="src/Filesystem-Path.html#replaceExtensions" class="link">Source</a></p><div class="doc"><p>Remove all extensions from a <code><a href="Filesystem-Path.html#t:FilePath">FilePath</a></code>, and replace them with a new
 list.
</p></div></div><div class="top"><p class="src"><a name="v:splitExtension" class="def">splitExtension</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; (<a href="Filesystem-Path.html#t:FilePath">FilePath</a>, <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/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>)<a href="src/Filesystem-Path.html#splitExtension" class="link">Source</a></p><div class="doc"><pre>splitExtension p = (<code><a href="Filesystem-Path.html#v:dropExtension">dropExtension</a></code> p, <code><a href="Filesystem-Path.html#v:extension">extension</a></code> p)</pre></div></div><div class="top"><p class="src"><a name="v:splitExtensions" class="def">splitExtensions</a> :: <a href="Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; (<a href="Filesystem-Path.html#t:FilePath">FilePath</a>, [<a href="/usr/share/doc/ghc/html/libraries/text-0.11.2.0/Data-Text-Internal.html#t:Text">Text</a>])<a href="src/Filesystem-Path.html#splitExtensions" class="link">Source</a></p><div class="doc"><pre>splitExtensions p = (<code><a href="Filesystem-Path.html#v:dropExtensions">dropExtensions</a></code> p, <code><a href="Filesystem-Path.html#v:extensions">extensions</a></code> p)</pre></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>