/usr/share/doc/libghc-base-compat-doc/html/Data-String-Compat.html is in libghc-base-compat-doc 0.9.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!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>Data.String.Compat</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-String-Compat.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-String-Compat.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">base-compat-0.9.1: A compatibility layer for base</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.String.Compat</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">type</span> <a href="#t:String">String</a> = [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a>]</li><li class="src short"><a href="#v:lines">lines</a> :: <a href="Data-String-Compat.html#t:String">String</a> -> [<a href="Data-String-Compat.html#t:String">String</a>]</li><li class="src short"><a href="#v:words">words</a> :: <a href="Data-String-Compat.html#t:String">String</a> -> [<a href="Data-String-Compat.html#t:String">String</a>]</li><li class="src short"><a href="#v:unlines">unlines</a> :: [<a href="Data-String-Compat.html#t:String">String</a>] -> <a href="Data-String-Compat.html#t:String">String</a></li><li class="src short"><a href="#v:unwords">unwords</a> :: [<a href="Data-String-Compat.html#t:String">String</a>] -> <a href="Data-String-Compat.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:String" class="def">String</a> = [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a>] <a href="#t:String" class="selflink">#</a></p><div class="doc"><p>A <code><a href="Data-String-Compat.html#t:String">String</a></code> is a list of characters. String constants in Haskell are values
of type <code><a href="Data-String-Compat.html#t:String">String</a></code>.</p></div></div><div class="top"><p class="src"><a id="v:lines" class="def">lines</a> :: <a href="Data-String-Compat.html#t:String">String</a> -> [<a href="Data-String-Compat.html#t:String">String</a>] <a href="#v:lines" class="selflink">#</a></p><div class="doc"><p><code><a href="Data-String-Compat.html#v:lines">lines</a></code> breaks a string up into a list of strings at newline
characters. The resulting strings do not contain newlines.</p><p>Note that after splitting the string at newline characters, the
last part of the string is considered a line even if it doesn't end
with a newline. For example,</p><pre>lines "" == []
lines "\n" == [""]
lines "one" == ["one"]
lines "one\n" == ["one"]
lines "one\n\n" == ["one",""]
lines "one\ntwo" == ["one","two"]
lines "one\ntwo\n" == ["one","two"]</pre><p>Thus <code><code><a href="Data-String-Compat.html#v:lines">lines</a></code> s</code> contains at least as many elements as newlines in <code>s</code>.</p></div></div><div class="top"><p class="src"><a id="v:words" class="def">words</a> :: <a href="Data-String-Compat.html#t:String">String</a> -> [<a href="Data-String-Compat.html#t:String">String</a>] <a href="#v:words" class="selflink">#</a></p><div class="doc"><p><code><a href="Data-String-Compat.html#v:words">words</a></code> breaks a string up into a list of words, which were delimited
by white space.</p></div></div><div class="top"><p class="src"><a id="v:unlines" class="def">unlines</a> :: [<a href="Data-String-Compat.html#t:String">String</a>] -> <a href="Data-String-Compat.html#t:String">String</a> <a href="#v:unlines" class="selflink">#</a></p><div class="doc"><p><code><a href="Data-String-Compat.html#v:unlines">unlines</a></code> is an inverse operation to <code><a href="Data-String-Compat.html#v:lines">lines</a></code>.
It joins lines, after appending a terminating newline to each.</p></div></div><div class="top"><p class="src"><a id="v:unwords" class="def">unwords</a> :: [<a href="Data-String-Compat.html#t:String">String</a>] -> <a href="Data-String-Compat.html#t:String">String</a> <a href="#v:unwords" class="selflink">#</a></p><div class="doc"><p><code><a href="Data-String-Compat.html#v:unwords">unwords</a></code> is an inverse operation to <code><a href="Data-String-Compat.html#v:words">words</a></code>.
It joins words with separating spaces.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|