Skip to content

Commit

Permalink
deploy: bc19448
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelenya committed Aug 18, 2023
1 parent cf3f34a commit 541066c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
4 changes: 3 additions & 1 deletion chapter3.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ <h2 id="simple-types"><a class="header" href="#simple-types">Simple Types</a></h
[&quot;Functional Programming&quot;,&quot;JavaScript&quot;]
</code></pre>
<p>PureScript's functions correspond to JavaScript's functions. Functions can be defined at the top-level of a file by specifying arguments before the equals sign:</p>
<pre><code class="language-haskell">add :: Int -&gt; Int -&gt; Int
<pre><code class="language-haskell">import Prelude -- bring the (+) operator into scope

add :: Int -&gt; Int -&gt; Int
add x y = x + y
</code></pre>
<p>Alternatively, functions can be defined inline using a backslash character followed by a space-delimited list of argument names. To enter a multi-line declaration in PSCi, we can enter &quot;paste mode&quot; using the <code>:paste</code> command. In this mode, declarations are terminated using the <em>Control-D</em> key sequence:</p>
Expand Down
1 change: 1 addition & 0 deletions css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:root {
/* Browser default font-size is 16px, this way 1 rem = 10px */
font-size: 62.5%;
color-scheme: var(--color-scheme);
}

html {
Expand Down
8 changes: 0 additions & 8 deletions css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
overflow-y: initial;
}

code {
background-color: #666666;
border-radius: 5px;

/* Force background to be printed in Chrome */
-webkit-print-color-adjust: exact;
}

pre > .buttons {
z-index: 2;
}
Expand Down
10 changes: 10 additions & 0 deletions css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
--searchresults-border-color: #888;
--searchresults-li-bg: #252932;
--search-mark-bg: #e3b171;

--color-scheme: dark;
}

.coal {
Expand Down Expand Up @@ -90,6 +92,8 @@
--searchresults-border-color: #98a3ad;
--searchresults-li-bg: #2b2b2f;
--search-mark-bg: #355c7d;

--color-scheme: dark;
}

.light {
Expand Down Expand Up @@ -130,6 +134,8 @@
--searchresults-border-color: #888;
--searchresults-li-bg: #e4f2fe;
--search-mark-bg: #a2cff5;

--color-scheme: light;
}

.navy {
Expand Down Expand Up @@ -170,6 +176,8 @@
--searchresults-border-color: #5c5c68;
--searchresults-li-bg: #242430;
--search-mark-bg: #a2cff5;

--color-scheme: dark;
}

.rust {
Expand Down Expand Up @@ -210,6 +218,8 @@
--searchresults-border-color: #888;
--searchresults-li-bg: #dec2a2;
--search-mark-bg: #e69f67;

--color-scheme: light;
}

@media (prefers-color-scheme: dark) {
Expand Down
4 changes: 3 additions & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@ <h2 id="simple-types"><a class="header" href="#simple-types">Simple Types</a></h
[&quot;Functional Programming&quot;,&quot;JavaScript&quot;]
</code></pre>
<p>PureScript's functions correspond to JavaScript's functions. Functions can be defined at the top-level of a file by specifying arguments before the equals sign:</p>
<pre><code class="language-haskell">add :: Int -&gt; Int -&gt; Int
<pre><code class="language-haskell">import Prelude -- bring the (+) operator into scope

add :: Int -&gt; Int -&gt; Int
add x y = x + y
</code></pre>
<p>Alternatively, functions can be defined inline using a backslash character followed by a space-delimited list of argument names. To enter a multi-line declaration in PSCi, we can enter &quot;paste mode&quot; using the <code>:paste</code> command. In this mode, declarations are terminated using the <em>Control-D</em> key sequence:</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 541066c

Please sign in to comment.