/usr/share/doc/libghc-language-python-doc/html/Language-Python-Common-Pretty.html is in libghc-language-python-doc 0.4.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 | <!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>Language.Python.Common.Pretty</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_Language-Python-Common-Pretty.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Language-Python-Common-Pretty.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">language-python-0.4.1: Parsing and pretty printing of Python code.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) 2009 Bernie Pope </td></tr><tr><th>License</th><td>BSD-style</td></tr><tr><th>Maintainer</th><td>bjpop@csse.unimelb.edu.au</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>ghc</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Language.Python.Common.Pretty</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Convenience class for pretty printing combinators.</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">class</span> <a href="#t:Pretty">Pretty</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:pretty">pretty</a> :: a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a></li></ul></li><li class="src short"><a href="#v:prettyText">prettyText</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:prettyPrefix">prettyPrefix</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:parensIf">parensIf</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => (a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:perhaps">perhaps</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a></li><li class="src short"><a href="#v:commaList">commaList</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => [a] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:Pretty" class="def">Pretty</a> a <span class="keyword">where</span> <a href="src/Language-Python-Common-Pretty.html#Pretty" class="link">Source</a></p><div class="doc"><p>All types which can be transformed into a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a></code>.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:pretty" class="def">pretty</a> :: a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> <a href="src/Language-Python-Common-Pretty.html#pretty" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Pretty" class="caption collapser" onclick="toggleSection('i:Pretty')">Instances</p><div id="section.i:Pretty" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/Language-Python-Common-Pretty.html#line-60" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></span> <a href="src/Language-Python-Common-Pretty.html#line-57" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></span> <a href="src/Language-Python-Common-Pretty.html#line-51" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></span> <a href="src/Language-Python-Common-Pretty.html#line-54" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></span> <a href="src/Language-Python-Common-Pretty.html#line-36" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="Language-Python-Common-SrcLocation.html#t:SrcSpan">SrcSpan</a></span> <a href="src/Language-Python-Common-Pretty.html#line-148" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> <a href="Language-Python-Common-SrcLocation.html#t:SrcLocation">SrcLocation</a></span> <a href="src/Language-Python-Common-Pretty.html#line-51" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a)</span> <a href="src/Language-Python-Common-Pretty.html#line-64" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:prettyText" class="def">prettyText</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="src/Language-Python-Common-Pretty.html#prettyText" class="link">Source</a></p><div class="doc"><p>Transform values into strings.</p></div></div><div class="top"><p class="src"><a name="v:prettyPrefix" class="def">prettyPrefix</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> <a href="src/Language-Python-Common-Pretty.html#prettyPrefix" class="link">Source</a></p><div class="doc"><p>Print just the prefix of something</p></div></div><div class="top"><p class="src"><a name="v:parensIf" class="def">parensIf</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => (a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> <a href="src/Language-Python-Common-Pretty.html#parensIf" class="link">Source</a></p><div class="doc"><p>Conditionally wrap parentheses around an item.</p></div></div><div class="top"><p class="src"><a name="v:perhaps" class="def">perhaps</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> <a href="src/Language-Python-Common-Pretty.html#perhaps" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:commaList" class="def">commaList</a> :: <a href="Language-Python-Common-Pretty.html#t:Pretty">Pretty</a> a => [a] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/pretty-1.1.2.0/Text-PrettyPrint.html#t:Doc">Doc</a> <a href="src/Language-Python-Common-Pretty.html#commaList" class="link">Source</a></p><div class="doc"><p>A list of things separated by commas.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|