Permalink
Browse files

Update HTML

  • Loading branch information...
1 parent da6986e commit 99075621e72687d6c32cb009afb9317a12be9833 @bos committed Sep 19, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 slides/slides.html
View
@@ -1227,7 +1227,7 @@ <h1 class="title">Haskell: Functional Programming, Solid Code, Big Data</h1>
<div class="slide">
<h1>My solution</h1>
-<pre class="sourceCode"><code class="sourceCode haskell">processPage url <span class="fu">=</span> <span class="kw">do</span><br /> page <span class="ot">&lt;-</span> download url<br /> <span class="fu">return</span> (process page)<br /><br />process <span class="fu">=</span><br /> <span class="fu">filter</span> (isTagOpenName <span class="st">&quot;a&quot;</span>) <span class="fu">.</span><br /> canonicalizeTags <span class="fu">.</span><br /> parseTags page</code></pre>
+<pre class="sourceCode"><code class="sourceCode haskell">processPage url <span class="fu">=</span> <span class="kw">do</span><br /> page <span class="ot">&lt;-</span> download url<br /> <span class="fu">return</span> (process page)<br /><br />process <span class="fu">=</span><br /> <span class="fu">filter</span> (isTagOpenName <span class="st">&quot;a&quot;</span>) <span class="fu">.</span><br /> canonicalizeTags <span class="fu">.</span><br /> parseTags</code></pre>
</div>
<div class="slide">
@@ -1244,7 +1244,7 @@ <h1 class="title">Haskell: Functional Programming, Solid Code, Big Data</h1>
<h1>No following</h1>
<pre class="sourceCode"><code class="sourceCode haskell">nofollow tag <span class="fu">=</span> fromAttrib <span class="st">&quot;rel&quot;</span> tag <span class="fu">==</span> <span class="st">&quot;nofollow&quot;</span></code></pre>
-<pre class="sourceCode"><code class="sourceCode haskell">process <span class="fu">=</span><br /> <span class="fu">filter</span> (<span class="fu">not</span> <span class="fu">.</span> nofollow) <span class="fu">.</span><br /> <span class="fu">filter</span> (isTagOpenName <span class="st">&quot;a&quot;</span>) <span class="fu">.</span><br /> canonicalizeTags <span class="fu">.</span><br /> parseTags page</code></pre>
+<pre class="sourceCode"><code class="sourceCode haskell">process <span class="fu">=</span><br /> <span class="fu">filter</span> (<span class="fu">not</span> <span class="fu">.</span> nofollow) <span class="fu">.</span><br /> <span class="fu">filter</span> (isTagOpenName <span class="st">&quot;a&quot;</span>) <span class="fu">.</span><br /> canonicalizeTags <span class="fu">.</span><br /> parseTags</code></pre>
</div>
<div class="slide">
@@ -1256,7 +1256,7 @@ <h1 class="title">Haskell: Functional Programming, Solid Code, Big Data</h1>
<div class="slide">
<h1>Only non-empty &lt;a href&gt; tags</h1>
-<pre class="sourceCode"><code class="sourceCode haskell">process <span class="fu">=</span><br /> <span class="fu">filter</span> (<span class="fu">not</span> <span class="fu">.</span> <span class="fu">null</span>) <span class="fu">.</span><br /> <span class="fu">map</span> (fromAttrib <span class="st">&quot;href&quot;</span>) <span class="fu">.</span><br /> <span class="fu">filter</span> (<span class="fu">not</span> <span class="fu">.</span> nofollow) <span class="fu">.</span><br /> <span class="fu">filter</span> (isTagOpenName <span class="st">&quot;a&quot;</span>) <span class="fu">.</span><br /> canonicalizeTags <span class="fu">.</span><br /> parseTags page</code></pre>
+<pre class="sourceCode"><code class="sourceCode haskell">process <span class="fu">=</span><br /> <span class="fu">filter</span> (<span class="fu">not</span> <span class="fu">.</span> <span class="fu">null</span>) <span class="fu">.</span><br /> <span class="fu">map</span> (fromAttrib <span class="st">&quot;href&quot;</span>) <span class="fu">.</span><br /> <span class="fu">filter</span> (<span class="fu">not</span> <span class="fu">.</span> nofollow) <span class="fu">.</span><br /> <span class="fu">filter</span> (isTagOpenName <span class="st">&quot;a&quot;</span>) <span class="fu">.</span><br /> canonicalizeTags <span class="fu">.</span><br /> parseTags</code></pre>
</div>
<div class="slide">
@@ -1409,7 +1409,7 @@ <h1 class="title">Haskell: Functional Programming, Solid Code, Big Data</h1>
<p>This means &quot;only import the name <code>Map</code> from <code>Data.Map</code>&quot;:</p>
<pre class="sourceCode"><code class="sourceCode haskell"><span class="kw">import</span> <span class="dt">Data.Map</span> (<span class="dt">Map</span>)</code></pre>
<p>And this means &quot;import everything from <code>Data.Map</code>, but all those names must be prefixed with <code>Map.</code>&quot;:</p>
-<pre class="sourceCode"><code class="sourceCode haskell"><span class="kw">import</span> <span class="dt">Data.Map</span> (<span class="dt">Map</span>)</code></pre>
+<pre class="sourceCode"><code class="sourceCode haskell"><span class="kw">import</span> <span class="kw">qualified</span> <span class="dt">Data.Map</span> <span class="kw">as</span> <span class="dt">Map</span></code></pre>
</div>
<div class="slide">

0 comments on commit 9907562

Please sign in to comment.