<!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.Format</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-Format.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Darcs-Patch-Format.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.Format</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"><span class="keyword">class</span> <a href="#t:PatchListFormat">PatchListFormat</a> p <span class="keyword">where</span><ul class="subs"><li><a href="#v:patchListFormat">patchListFormat</a> :: <a href="Darcs-Patch-Format.html#t:ListFormat">ListFormat</a> p</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ListFormat">ListFormat</a> p<ul class="subs"><li>= <a href="#v:ListFormatDefault">ListFormatDefault</a> </li><li>| <a href="#v:ListFormatV1">ListFormatV1</a> </li><li>| <a href="#v:ListFormatV2">ListFormatV2</a> </li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:FileNameFormat">FileNameFormat</a> <ul class="subs"><li>= <a href="#v:OldFormat">OldFormat</a> </li><li>| <a href="#v:NewFormat">NewFormat</a> </li></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:PatchListFormat" class="def">PatchListFormat</a> p <span class="keyword">where</span><a href="src/Darcs-Patch-Format.html#PatchListFormat" class="link">Source</a></p><div class="doc"><p>Showing and reading lists of patches This class allows us to control how lists of patches are formatted on disk. For legacy reasons V1 patches have their own special treatment (see <code><a href="Darcs-Patch-Format.html#t:ListFormat">ListFormat</a></code>). Other patch types use the default format which just puts them in a sequence without separators or any prelude/epilogue. </p><p>This means that 'FL (FL p)' etc would be ambiguous, so there are no instances for 'FL p' or other list types. </p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:patchListFormat" class="def">patchListFormat</a> :: <a href="Darcs-Patch-Format.html#t:ListFormat">ListFormat</a> p<a href="src/Darcs-Patch-Format.html#patchListFormat" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:PatchListFormat" class="caption collapser" onclick="toggleSection('i:PatchListFormat')">Instances</p><div id="section.i:PatchListFormat" class="show"><table><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> <a href="Darcs-Patch-Prim-V1-Core.html#t:Prim">Prim</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> <a href="Darcs-Patch-Prim-V3-Core.html#t:Prim">Prim</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> <a href="Darcs-Patch-Dummy.html#t:DummyPatch">DummyPatch</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> (<a href="Darcs-Patch-Bracketed.html#t:Bracketed">Bracketed</a> p)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> (<a href="Darcs-Patch-V1-Core.html#t:Patch">Patch</a> prim)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> (<a href="Darcs-Patch-Named.html#t:Named">Named</a> p)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> (<a href="Darcs-Patch-PatchInfoAnd.html#t:PatchInfoAnd">PatchInfoAnd</a> p)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Darcs-Patch-Format.html#t:PatchListFormat">PatchListFormat</a> (<a href="Darcs-Patch-V2-Real.html#t:RealPatch">RealPatch</a> prim)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ListFormat" class="def">ListFormat</a> p <a href="src/Darcs-Patch-Format.html#ListFormat" class="link">Source</a></p><div class="doc"><p>This type is used to tweak the way that lists of <code>p</code> are shown for a given <code>Patch</code> type <code>p</code>. It is needed to maintain backwards compatibility for V1 and V2 patches. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ListFormatDefault" class="def">ListFormatDefault</a></td><td class="doc"><p>Show and read lists without braces. </p></td></tr><tr><td class="src"><a name="v:ListFormatV1" class="def">ListFormatV1</a></td><td class="doc"><p>Show lists with a single layer of braces around the outside, except for singletons which have no braces. Read with arbitrary nested braces and parens and flatten them out. </p></td></tr><tr><td class="src"><a name="v:ListFormatV2" class="def">ListFormatV2</a></td><td class="doc"><p>Show lists without braces Read with arbitrary nested parens and flatten them out. </p></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:FileNameFormat" class="def">FileNameFormat</a> <a href="src/Darcs-Patch-Format.html#FileNameFormat" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:OldFormat" class="def">OldFormat</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:NewFormat" class="def">NewFormat</a></td><td class="doc empty"> </td></tr></table></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>