-
Notifications
You must be signed in to change notification settings - Fork 64
/
Course-overview.html
297 lines (283 loc) · 9.73 KB
/
Course-overview.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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>Introduction to Functional Programming in Haskell – Course Overview</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="Course-overview.tex">
<meta name="date" content="2015-09-29 17:27:00">
<link rel="stylesheet" type="text/css" href="Course-overview.css">
</head><body
>
<div class="maketitle">
<h2 class="titleHead">Introduction to Functional Programming in
Haskell – Course Overview</h2>
<div class="author" ></div><br />
<div class="date" ><span
class="ecrm-1200">September 29, 2015</span></div>
</div>
<h3 class="sectionHead"><span class="titlemark">1 </span> <a
id="x1-10001"></a>L1.1 Introduction</h3>
<!--l. 17--><p class="noindent" >JS+WV
<ol class="enumerate1" >
<li
class="enumerate" id="x1-1002x1">The “Introduction to Functional Programming in Haskell” course
</li>
<li
class="enumerate" id="x1-1004x2">Programming paradigms
</li>
<li
class="enumerate" id="x1-1006x3">Functional Languages
</li>
<li
class="enumerate" id="x1-1008x4">Expressions
</li>
<li
class="enumerate" id="x1-1010x5">Equations</li></ol>
<!--l. 26--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">2 </span> <a
id="x1-20002"></a>L1.2 Reduction, Functions, and Lists </h3>
<!--l. 28--><p class="noindent" >WV
<ol class="enumerate1" >
<li
class="enumerate" id="x1-2002x1">Reduction
</li>
<li
class="enumerate" id="x1-2004x2">Functions
<ul class="itemize1">
<li class="itemize">Function definitions
</li>
<li class="itemize">Function application
</li>
<li class="itemize">Multiple arguments and results</li></ul>
</li>
<li
class="enumerate" id="x1-2006x3">Lists
<ul class="itemize1">
<li class="itemize">Constructing lists
</li>
<li class="itemize">Operating on lists</li></ul>
</li></ol>
<!--l. 46--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">3 </span> <a
id="x1-30003"></a>L2.1 Text Input/Output</h3>
<!--l. 48--><p class="noindent" >JS
<ol class="enumerate1" >
<li
class="enumerate" id="x1-3002x1">Practical Functional programming
</li>
<li
class="enumerate" id="x1-3004x2">Some basic techniques
<ul class="itemize1">
<li class="itemize">Layout
</li>
<li class="itemize">Some standard functions
</li>
<li class="itemize">Conditional expressions</li></ul>
</li>
<li
class="enumerate" id="x1-3006x3">Input/output
</li>
<li
class="enumerate" id="x1-3008x4">The Starman program
<ul class="itemize1">
<li class="itemize">Calculating the result</li></ul>
</li>
<li
class="enumerate" id="x1-3010x5">Interaction with game player</li></ol>
<!--l. 67--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">4 </span> <a
id="x1-40004"></a>L2.2 Computations and Polymorphism</h3>
<!--l. 69--><p class="noindent" >JS
<ol class="enumerate1" >
<li
class="enumerate" id="x1-4002x1">Computations
<ul class="itemize1">
<li class="itemize">Running Starman
</li>
<li class="itemize">IO operations
</li>
<li class="itemize">Using let in a monad
</li>
<li class="itemize">show and read</li></ul>
</li>
<li
class="enumerate" id="x1-4004x2">Polymorphic types
</li>
<li
class="enumerate" id="x1-4006x3">Using ghci</li></ol>
<!--l. 83--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">5 </span> <a
id="x1-50005"></a>L3.1 Data Structures</h3>
<!--l. 85--><p class="noindent" >WV
<ul class="itemize1">
<li class="itemize">Recursion on lists
</li>
<li class="itemize">filter
</li>
<li class="itemize">Computations over lists
</li>
<li class="itemize">map
</li>
<li class="itemize">foldl
</li>
<li class="itemize">foldr</li></ul>
<!--l. 95--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">6 </span> <a
id="x1-60006"></a>L3.2 Computations and Types</h3>
<!--l. 97--><p class="noindent" >JS
<ol class="enumerate1" >
<li
class="enumerate" id="x1-6002x1">IO Operations
<ul class="itemize1">
<li class="itemize">Computations
</li>
<li class="itemize">Using let in a monad
</li>
<li class="itemize">show and read</li></ul>
</li>
<li
class="enumerate" id="x1-6004x2">Algebraic data types
<ul class="itemize1">
<li class="itemize">Deriving Show and Read
</li>
<li class="itemize">Recursion over a tree</li></ul>
</li></ol>
<!--l. 114--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">7 </span> <a
id="x1-70007"></a>L3.3 Equational Reasoning [optional extra]</h3>
<ul class="itemize1">
<li class="itemize">Equational Reasoning</li></ul>
<!--l. 119--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">8 </span> <a
id="x1-80008"></a>L4.1 Returning Functions as Values – Parsing</h3>
<!--l. 121--><p class="noindent" >WV
<ul class="itemize1">
<li class="itemize">Returning functions as values
</li>
<li class="itemize">Function generators
</li>
<li class="itemize">Structuring a program
</li>
<li class="itemize">Parsing text
</li>
<li class="itemize">Parsec: monadic parsing combinators</li></ul>
<!--l. 130--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">9 </span> <a
id="x1-90009"></a>L4.2 Program Structure</h3>
<!--l. 132--><p class="noindent" >JS
<ol class="enumerate1" >
<li
class="enumerate" id="x1-9002x1">Scoping
<ul class="itemize1">
<li class="itemize">let expressions
</li>
<li class="itemize">where clauses</li></ul>
</li>
<li
class="enumerate" id="x1-9004x2">Conditionals
<ul class="itemize1">
<li class="itemize">Guards
</li>
<li class="itemize">Constructors and case expressions</li></ul>
</li>
<li
class="enumerate" id="x1-9006x3">Maybe
</li>
<li
class="enumerate" id="x1-9008x4">Documentation</li></ol>
<!--l. 150--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">10 </span> <a
id="x1-1000010"></a>L5.1 Strictness</h3>
<!--l. 152--><p class="noindent" >JS
<ol class="enumerate1" >
<li
class="enumerate" id="x1-10002x1">Strictness
</li>
<li
class="enumerate" id="x1-10004x2">Data recursion
<ul class="itemize1">
<li class="itemize">Fibonacci numbers
</li>
<li class="itemize">Modularity and infinite data structures</li></ul>
</li>
<li
class="enumerate" id="x1-10006x3">Advice on structuring a program
</li>
<li
class="enumerate" id="x1-10008x4">Real world parsing examples
</li>
<li
class="enumerate" id="x1-10010x5">Unassessed exercises</li></ol>
<!--l. 166--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">11 </span> <a
id="x1-1100011"></a>L5.2 Types</h3>
<!--l. 168--><p class="noindent" >WV
<ol class="enumerate1" >
<li
class="enumerate" id="x1-11002x1">Function types
<ul class="itemize1">
<li class="itemize">Lambda expressions
</li>
<li class="itemize">Monomorphic functions
</li>
<li class="itemize">Polymorphic functions
</li>
<li class="itemize">Currying
</li>
<li class="itemize">Type classes</li></ul>
</li>
<li
class="enumerate" id="x1-11004x2">Type inference</li></ol>
<!--l. 182--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">12 </span> <a
id="x1-1200012"></a>L6.1 Type classes and Lambda Calculus</h3>
<!--l. 184--><p class="noindent" >WV
<ol class="enumerate1" >
<li
class="enumerate" id="x1-12002x1">Defining type classes
<ul class="itemize1">
<li class="itemize">Class and instance declarations
</li>
<li class="itemize">The Num class
</li>
<li class="itemize">The Show class
</li>
<li class="itemize">More standard typeclasses</li></ul>
</li>
<li
class="enumerate" id="x1-12004x2">Introduction to Lambda Calculus</li></ol>
<!--l. 197--><p class="noindent" >
<h3 class="sectionHead"><span class="titlemark">13 </span> <a
id="x1-1300013"></a>L6.2 Monads</h3>
<!--l. 199--><p class="noindent" >JS+WV
<ol class="enumerate1" >
<li
class="enumerate" id="x1-13002x1">Monads
<ul class="itemize1">
<li class="itemize">Building blocks
</li>
<li class="itemize">Type class
</li>
<li class="itemize">Laws</li></ul>
</li>
<li
class="enumerate" id="x1-13004x2">The Maybe Monad
<ul class="itemize1">
<li class="itemize">The Maybe type constructor
</li>
<li class="itemize">Monad instance of Maybe
</li>
<li class="itemize">A computation using explicit Maybe
</li>
<li class="itemize">A computation using the Maybe monad
</li>
<li class="itemize">Example: Reduction of bar [5,6]
</li>
<li class="itemize">Example: Reduction of bar [5,6,7]
</li>
<li class="itemize">do notation</li></ul>
</li></ol>
</body></html>