-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathindex.html
236 lines (198 loc) · 7.49 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html>
<head>
<title>PureScript</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,300,700" />
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="icon" type="image/png" href="img/favicon_clear-16.png" sizes="16x16">
<link rel="icon" type="image/png" href="img/favicon_clear-32.png" sizes="32x32">
<link rel="icon" type="image/png" href="img/favicon_clear-256.png" sizes="256x256">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: white;
font-family: 'Roboto';
color: rgb(77, 77, 77);
margin: 0;
font-size: 16px;
line-height: 24px;
}
body > * {
padding: 10px;
}
h1, h2, h3 {
font-family: 'Roboto';
}
h2 {
font-weight: 300;
font-size: 26px;
margin-bottom: 20px;
}
h3 {
text-transform: uppercase;
letter-spacing: 2px;
font-size: 15px;
font-weight: bold;
margin-bottom: 20px;
}
a, a:visited, a:active {
color: #c4953a;
}
a.button {
text-transform: uppercase;
padding: 10px 20px;
border: 1px solid;
color: #1d222d;
margin-bottom: 10px;
font-size: 1.2em;
font-weight: 300;
width: 100%;
display: block;
}
a.button:hover {
text-decoration: none;
background-color: rgba(0,0,0,0.1);
}
pre {
background-color: white;
line-height: inherit;
color: black;
border: none;
border-radius: 0;
}
pre span.k {
color: black;
font-weight: bold;
}
pre span.s {
color: #c4953a;
font-weight: bold;
}
pre span.n {
color: #445588;
font-weight: bold;
}
p code {
color: black;
background-color: #f6f2eb;
}
header {
background-color: #1d222d;
padding: 15px 0;
color: white;
}
header img {
width: 350px;
}
.container {
padding: 25px 0;
}
section.dark {
background-color: #f5f5f5;
}
footer a, footer a:visited, footer a:active {
font-size: 2em;
color: #1d222d;
}
footer a:hover {
color: #c4953a;
}
</style>
</head>
<body>
<header>
<div class="container text-center">
<img src="img/logo.svg" alt="PureScript">
</div>
<h2 class="text-center">A strongly-typed functional programming language that compiles to JavaScript</h2>
</header>
<section class="dark">
<div class="container">
<div class="row">
<div class="col-md-6">
<h3>Benefits</h3>
<ul>
<li>Compile to readable JavaScript and reuse existing JavaScript code easily</li>
<li>An extensive collection of libraries for development of web applications, web servers, apps and more</li>
<li>Excellent tooling and editor support with instant rebuilds</li>
<li>An active community with many learning resources</li>
<li>Build real-world applications using functional techniques and expressive types, such as:
<ul>
<li>Algebraic data types and pattern matching</li>
<li>Row polymorphism and extensible records</li>
<li>Higher kinded types</li>
<li>Type classes with functional dependencies</li>
<li>Higher-rank polymorphism</li>
</ul>
</li>
</ul>
</div>
<div class="col-md-6">
<h3>Hello, PureScript!</h3>
<pre><span class="k">import</span> <span class="n">Prelude</span>
<span class="k">import</span> <span class="n">Effect.Console</span> (<span class="n">log</span>)
<span class="n">greet</span> :: <span class="n">String</span> -> <span class="n">String</span></span>
<span class="n">greet</span> name = <span class="s">"Hello, "</span> <> name <> <span class="s">"!"</span>
<span class="n">main</span> = log (greet <span class="s">"World"</span>)</pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-3 text-center">
<a href="https://github.com/purescript/documentation/blob/master/guides/Getting-Started.md" class="button">Quick Start Guide</a>
</div>
<div class="col-md-3 text-center">
<a href="http://try.purescript.org" class="button">Try PureScript</a>
</div>
<div class="col-md-3"></div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>Get the compiler</h2>
<h3>Binaries</h3>
<p>Precompiled binaries are available for OSX, Linux, and Windows from the <a href="https://github.com/purescript/purescript/releases">latest release page</a> on GitHub.</p>
<h3>npm</h3>
<p><code>npm install -g purescript</code></p>
<p><small>(Installation via <code>npm</code> requires Node version 8 or later)</small></p>
<h3>Tools</h3>
<p>The recommended build tool for PureScript is <a href="https://github.com/purescript/spago/blob/master/README.md" title="Spago: PureScript's package manager and build tool">Spago</a>, which can be installed using <code>npm</code>:</p>
<p><code>npm install -g spago</code></p>
<p>You might like to install some of these
<a href="https://github.com/purescript/documentation/blob/master/ecosystem/Editor-and-tool-support.md">additional tools and editor plugins</a>.</p>
<p>NPM is recommended for managing JavaScript dependencies in your project.</p>
</div>
<div class="col-md-6">
<h2>Learn more</h2>
<h3>Libraries</h3>
<p>The <a href="https://pursuit.purescript.org">Pursuit package database</a> hosts searchable documentation for PureScript packages.</p>
<h3>Documentation</h3>
<p>The free <a href="https://book.purescript.org">PureScript By Example</a> book contains several practical projects for PureScript beginners.</p>
<p>Visit the <a href="https://github.com/purescript/documentation">documentation repository</a> on GitHub, the central place where you can find articles,
in-depth learning resources for beginners, and more.</p>
<h3>Community</h3>
<p>There are several places in which people gather to discuss PureScript:</p>
<ul style="padding-left: 15px">
<li><strong>Discourse</strong> - The <a href="https://discourse.purescript.org">PureScript Discourse</a> instance.</li>
<li><strong>Discord</strong> - The <a href="https://purescript.org/chat">PureScript Discord</a> server.</li>
</ul>
</div>
</div>
</div>
</section>
<footer>
<p class="text-center">
<a href="https://github.com/purescript/purescript"><i class="fa fa-github-square"></i></a>
<a href="https://twitter.com/purescript"><i class="fa fa-twitter-square"></i></a>
</p>
<p class="text-center text-muted"><small>© PureScript 2017–2023</small></p>
<p class="text-center text-muted"><small>The PureScript logo by Gareth Hughes is used under the terms of the Creative Commons Attribution 4.0 license.</small></p>
</footer>
</body>
</html>