-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eta-Types-String.html
13 lines (13 loc) · 4.8 KB
/
Eta-Types-String.html
1
2
3
4
5
6
7
8
9
10
11
12
13
<!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>Eta.Types.String</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Eta-Types-String.html");};
//]]>
</script></head><body class="no-frame"><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption empty"> </p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">Eta.Types.String</p></div><div id="description"><p class="caption">Description</p><div class="doc"><ul><li>String operations</li></ul></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">type</span> <a href="#t:String">String</a> = [<a href="Eta-Types-Char.html#t:Char">Char</a>]</li><li class="src short"><a href="#v:lines">lines</a> :: <a href="Eta-Types-String.html#t:String">String</a> -> [<a href="Eta-Types-String.html#t:String">String</a>]</li><li class="src short"><a href="#v:unlines">unlines</a> :: [<a href="Eta-Types-String.html#t:String">String</a>] -> <a href="Eta-Types-String.html#t:String">String</a></li><li class="src short"><a href="#v:words">words</a> :: <a href="Eta-Types-String.html#t:String">String</a> -> [<a href="Eta-Types-String.html#t:String">String</a>]</li><li class="src short"><a href="#v:unwords">unwords</a> :: [<a href="Eta-Types-String.html#t:String">String</a>] -> <a href="Eta-Types-String.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="Eta-Types-Char.html#t:Char">Char</a>] <a href="#t:String" class="selflink">#</a></p></div><div class="doc"><p>Breaks a <code><a href="Eta-Types-String.html#t:String">String</a></code> into a <code>[String]</code> at newline <code><a href="Eta-Types-Char.html#t:Char">Char</a></code>s</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>lines "Hello\nI'm Joe"
</code></strong>["Hello","I'm Joe"]
</pre></div><div class="top"><p class="src"><a id="v:lines" class="def">lines</a> :: <a href="Eta-Types-String.html#t:String">String</a> -> [<a href="Eta-Types-String.html#t:String">String</a>] <a href="#v:lines" class="selflink">#</a></p></div><div class="doc"><p>Joins a <code>[String]</code> appending a newline to each element</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>unlines ["Hello", "I'm Joe"]
</code></strong>"Hello\nI'm Joe\n"
</pre></div><div class="top"><p class="src"><a id="v:unlines" class="def">unlines</a> :: [<a href="Eta-Types-String.html#t:String">String</a>] -> <a href="Eta-Types-String.html#t:String">String</a> <a href="#v:unlines" class="selflink">#</a></p></div><div class="doc"><p>Splits a <code><a href="Eta-Types-String.html#t:String">String</a></code> into a <code>[String]</code> at <code><a href="Eta-Types-Char.html#t:Char">Char</a></code>s representing
white spaces.</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>words "How are you"
</code></strong>["How","are","you"]
</pre></div><div class="top"><p class="src"><a id="v:words" class="def">words</a> :: <a href="Eta-Types-String.html#t:String">String</a> -> [<a href="Eta-Types-String.html#t:String">String</a>] <a href="#v:words" class="selflink">#</a></p></div><div class="doc"><p>Joins a <code>[String]</code> appending a space to each element</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>unwords ["How", "are", "you"]
</code></strong>"How are you"
</pre></div><div class="top"><p class="src"><a id="v:unwords" class="def">unwords</a> :: [<a href="Eta-Types-String.html#t:String">String</a>] -> <a href="Eta-Types-String.html#t:String">String</a> <a href="#v:unwords" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.4</p></div></body></html>