forked from Anton-Latukha/Fundamental-Haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.html
10504 lines (9272 loc) · 514 KB
/
README.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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2019-07-29 Mon 01:57 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>‎</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Anton Latukha" />
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<script type="text/javascript">
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2019 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
displayAlign: "center",
displayIndent: "0em",
"HTML-CSS": { scale: 100,
linebreaks: { automatic: "false" },
webFont: "TeX"
},
SVG: {scale: 100,
linebreaks: { automatic: "false" },
font: "TeX"},
NativeMML: {scale: 100},
TeX: { equationNumbers: {autoNumber: "AMS"},
MultLineWidth: "85%",
TagSide: "right",
TagIndent: ".8em"
}
});
</script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML"></script>
</head>
<body>
<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org29a07db">1. Introduction</a></li>
<li><a href="#orgf0feb1a">2. Definitions</a>
<ul>
<li><a href="#orgc814010">2.1. Abstraction   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgd0b9d77">2.1.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org1aeafef">2.2. Algebra   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgcfb5ffd">2.2.1. <i>*</i></a></li>
<li><a href="#org5cb1c84">2.2.2. Algebraic   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org0a2dc60">2.2.3. Algebraic structure   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org2dbd8fd">2.3. Alpha equivalence   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org56cb138">2.4. Ambigram   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb03ea9b">2.5. Ancient Greek and Latin prefixes   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org1d49048">2.5.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgf501584">2.6. Function application   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org6fef87e">2.6.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org9bb9b9b">2.7. Application memory   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb2cef3f">2.8. Argument   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgcfba33b">2.8.1. Argument of a function   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org19423d5">2.9. As-pattern   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgef7179b">2.10. Binary   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org141520f">2.11. Binary tree   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4638c9f">2.12. Bind   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgf020f0f">2.12.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org716d237">2.13. Bottom value   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org15e8e35">2.13.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org83d46d6">2.14. Bound   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgee04230">2.14.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org4cd10a4">2.15. Cartesian product   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org71ff78f">2.15.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org55e4453">2.16. Case   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org92dd9e4">2.17. Category theory   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org7640472">2.17.1. <i>*</i></a></li>
<li><a href="#orga3fb4db">2.17.2. Abelian category   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org35904d4">2.17.3. Composition   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org0ad1625">2.17.4. Endofunctor category   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6d0d2bb">2.17.5. Functor   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgd43804c">2.17.6. Hask category</a></li>
<li><a href="#org539f8c1">2.17.7. Magma   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3ee1372">2.17.8. Morphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4f4bbe9">2.17.9. Object</a></li>
<li><a href="#orgcc55ae7">2.17.10. Set category   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge83b4f6">2.17.11. Natural transformation   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgda20da1">2.17.12. Hom set</a></li>
<li><a href="#orgde8892f">2.17.13. Category dual</a></li>
</ul>
</li>
<li><a href="#org0b48809">2.18. Closure   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org41b0f45">2.18.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org77cd3c5">2.19. Coalgebra   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb29c761">2.20. Concatenate   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4c9e42a">2.21. Conjunction   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org82cdbab">2.22. Constructor   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org48d9397">2.23. Context   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org96b63a6">2.23.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org621f8a3">2.24. Contravariant   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org291c2fb">2.24.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org2bd6c65">2.25. Covariant   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org5147510">2.25.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org13af6f8">2.26. Data type   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org78b014a">2.26.1. <i>*</i></a></li>
<li><a href="#org2ac5e32">2.26.2. Actual type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6d392f8">2.26.3. Algebraic data type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org2026274">2.26.4. Cardinality   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org821e3fc">2.26.5. Data constant   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org647d183">2.26.6. Data constructor   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga7bf092">2.26.7. data declaration   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3e66f7c">2.26.8. Dependent type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgbc880e8">2.26.9. Gen type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgea063fc">2.26.10. Higher-kinded data type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgaa1ffea">2.26.11. newtype declaration   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge8aa921">2.26.12. Principal type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge02d32b">2.26.13. Product data type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgd086175">2.26.14. Proxy type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf1af491">2.26.15. Static typing   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgad306d3">2.26.16. Structural type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org1e2d870">2.26.17. Structural type system   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb90adcf">2.26.18. Sum data type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org20bf251">2.26.19. Tuple   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org7ad8dfb">2.26.20. Type alias   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf94b6b1">2.26.21. Type class   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4887a43">2.26.22. Type constant   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb569b20">2.26.23. Type constructor   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org375ccef">2.26.24. type declaration   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org638998c">2.26.25. Typed hole   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgbbde7e4">2.26.26. Type inference   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3c20c99">2.26.27. Type class instance   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgddc5d7c">2.26.28. Type rank   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org09d29d9">2.26.29. Type variable   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org32ea54f">2.26.30. Unlifted type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6c22ce5">2.26.31. Data structure   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org7d473b4">2.26.32. Linear type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org81a17c7">2.26.33. NonEmpty list data type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6aaea9b">2.26.34. Session type   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgeebd4c6">2.27. Declaration   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org15dad15">2.28. Differential operator   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org8e41437">2.28.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orga51cd32">2.29. Disjunction   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org96e5993">2.30. Dispatch   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9886f9b">2.31. Distributive axiom   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgb49522e">2.31.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgd7f5d95">2.32. Dynamic scope   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf395b71">2.33. Effect   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf167882">2.34. Evaluation   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgdb79484">2.35. Expected type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org50a1782">2.36. Expression   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org616964f">2.36.1. <i>*</i></a></li>
<li><a href="#org1cfff08">2.36.2. Closed-form expression   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org59d0c83">2.36.3. RHS   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb1435c8">2.36.4. LHS   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9a5948f">2.36.5. Redex   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgd005fc5">2.37. First-class   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org5fdb1c5">2.38. First-order logic   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org8e3f66f">2.38.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org4f35aeb">2.39. Free variable   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org135ca38">2.40. Function   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org99b0d22">2.40.1. <i>*</i></a></li>
<li><a href="#orgc1f33ea">2.40.2. Arity   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb45f6ea">2.40.3. Bijection   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb647cba">2.40.4. Combinator   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb8984c8">2.40.5. Function application   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgbaa3b0d">2.40.6. Function body   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga1ceeaf">2.40.7. Function composition   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org065beed">2.40.8. Function head   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3e9229e">2.40.9. Function range   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc8bd637">2.40.10. Higher-order function   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org25d03dc">2.40.11. Injection   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9528486">2.40.12. Partial function   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org44b7cde">2.40.13. Purity   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgd17f5ab">2.40.14. Sectioning   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge8dd537">2.40.15. Surjection   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc5baf3c">2.40.16. Unsafe function   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgfd23f1f">2.40.17. Variadic   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgee9c560">2.40.18. Domain   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org7c7a1ee">2.40.19. Codomain   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org53d45df">2.40.20. Open formula   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc6d3f82">2.40.21. Recursion   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgc4970d2">2.41. Fundamental theorem of algebra   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgd142aac">2.42. Guerrilla patch   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgaed66b8">2.43. Homotopy   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org366d6c7">2.43.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgf6b7a39">2.44. Idiom   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org71b15cc">2.44.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org4a6db58">2.45. Iff   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga974351">2.46. Impredicative   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org1719780">2.47. Infix   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf6d6a3a">2.48. Inhabit   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8720205">2.49. Interface   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org91db5b9">2.50. IO   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org1c354e4">2.51. Kind   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc4e3c48">2.52. Lambda calculus   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org9dd8ba8">2.52.1. <i>*</i></a></li>
<li><a href="#org2139874">2.52.2. Lambda abstraction   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgce66961">2.52.3. Lambda cube   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org326e508">2.52.4. Lambda function   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org2929d46">2.52.5. β-reduction   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc3ed1a8">2.52.6. Calculus of constructions   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4b99306">2.52.7. Curry–Howard correspondence   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org2124914">2.52.8. Currying   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org833ff16">2.52.9. Hindley–Milner type system   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org45a1157">2.52.10. Reduction   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf2e1678">2.52.11. β-η normal form   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org40603a1">2.52.12. η-abstraction   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org3908a83">2.53. Lense   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org19edeb4">2.54. Level of code   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org2a8e44b">2.54.1. <i>*</i></a></li>
<li><a href="#org0551d17">2.54.2. Term level   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgab38e93">2.54.3. Type level   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org282db10">2.54.4. Compile level   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org05f59de">2.54.5. Runtime level   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org216bdd5">2.55. Lexical scope   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org510bf25">2.55.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgb333e96">2.56. Local scope   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org9e3d28c">2.56.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org733ed7f">2.57. Module   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org06f5c59">2.58. Modulus   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org0d7ad76">2.58.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org633f7d6">2.59. Monkey patch   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga162763">2.60. Nothing   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf660b3d">2.61. Operation   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org3d141da">2.61.1. Binary operation   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org3403fc4">2.62. Operator   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgb136d69">2.62.1. Shift operator   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org2b9e362">2.63. Orphan type instance   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9bdcced">2.64. Parameter   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org5974952">2.64.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgaf1e869">2.65. Partial application   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgcd0c8b4">2.65.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org53f0264">2.66. Pattern guard   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org4283103">2.66.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgcee55fa">2.67. Permutation   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org08499b9">2.68. Phrase   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8acd6b1">2.69. Point-free   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org34f0e34">2.69.1. <i>*</i></a></li>
<li><a href="#org1087c3d">2.69.2. Blackbird   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8fc47be">2.69.3. Swing   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgba5ea35">2.69.4. Squish   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgae53b8b">2.70. Polymorphism   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org5753768">2.70.1. <i>*</i></a></li>
<li><a href="#org4698a00">2.70.2. Levity polymorphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgfd37391">2.70.3. Parametric polymorphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org89433d4">2.70.4. Subtype polymorphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgccc444f">2.70.5. Row polymorphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9d96f52">2.70.6. Kind polymorphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf8cdb22">2.70.7. Linearity polymorphism   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgc12036e">2.71. Pragma   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org88f77b2">2.71.1. LANGUAGE pragma   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org36ab743">2.72. Predicative   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgfc9689c">2.73. Principle of compositionality   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3c68c09">2.74. Ψ-combinator   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgfe73a3b">2.74.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org73f8e4d">2.75. Quantifier   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgfedc1ff">2.75.1. <i>*</i></a></li>
<li><a href="#org4ac9782">2.75.2. Forall quantifier   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgf7038d1">2.76. Referential transparency   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org05f4263">2.76.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org7c2b145">2.77. Relation   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org36d85e8">2.77.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org9432f8d">2.78. REPL   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge1a5dc6">2.79. Scope   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org92eb60c">2.80. Semantics   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org45d4da3">2.80.1. Operational semantics   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgdb8501d">2.80.2. Denotational semantics   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgbe46fa1">2.80.3. Axiomatic semantics   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org8852afe">2.81. Set   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgaf5c479">2.81.1. <i>*</i></a></li>
<li><a href="#org1b08c1b">2.81.2. Closed set   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8c365bb">2.81.3. Power set   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org0d9b511">2.81.4. Hom-set   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org98074d2">2.81.5. Singleton   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org5c9d505">2.82. Shadowing   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3edb49e">2.83. Shrinking   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4ef2b49">2.84. Smart constructor   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org80a3cf8">2.85. Spine   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc95bf3a">2.86. Statement   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org278be21">2.86.1. <i>*</i></a></li>
<li><a href="#orge6b1b46">2.86.2. Predicate   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orga211a1b">2.87. Superclass   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org405cf96">2.88. Syntatic sugar   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org82e2574">2.89. System F   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org1ec332f">2.89.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org4f75e9d">2.90. Tail call   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc685906">2.91. Tensor   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org7b458ce">2.91.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orge9ae455">2.92. Testing   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org64f095a">2.92.1. Property testing</a></li>
<li><a href="#org9ce55e1">2.92.2. Write tests algorithm</a></li>
</ul>
</li>
<li><a href="#org683e3ef">2.93. Thunk   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga19192b">2.94. Uncurry   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org3c05a88">2.95. Undefined   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgb86ac94">2.96. Unit   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgccf1d4b">2.97. Variable   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org86aa06a">2.97.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org886fcc1">2.98. Zero   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgfdacda2">2.99. Modular arithmetic   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgb44f715">2.99.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org6db0a80">2.100. Property   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org5fb756c">2.100.1. <i>*</i></a></li>
<li><a href="#org645ead1">2.100.2. Associative law   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org93b19c9">2.100.3. Left associative   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4e5a15d">2.100.4. Basis   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org73f6419">2.100.5. Commutativity   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org68a6b8c">2.100.6. Idempotence   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#org2bc0d11">2.101. Backpack   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgab30bc9">2.102. Nullary   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org0b36acb">2.103. Arbitrary   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgc8728f4">3. Give definitions</a>
<ul>
<li><a href="#orgefb2981">3.1. Commuting diagram</a></li>
<li><a href="#org34f8765">3.2. Const functor</a></li>
<li><a href="#org1def50a">3.3. Free object</a></li>
<li><a href="#orgb7f02c7">3.4. Thin category</a></li>
<li><a href="#org5ca4a27">3.5. Identity type</a></li>
<li><a href="#orga865d63">3.6. Constant type</a></li>
<li><a href="#orgdd5bef2">3.7. Gen</a></li>
<li><a href="#orgdb4bbbf">3.8. ST-Trick monad</a>
<ul>
<li><a href="#org6f89a24">3.8.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgc2987a6">3.9. Lax monoidal functor</a></li>
<li><a href="#org7afe342">3.10. Tensorial strength</a></li>
<li><a href="#orga816f3e">3.11. Strong monad</a></li>
<li><a href="#orgd748cb0">3.12. Either</a>
<ul>
<li><a href="#org161627b">3.12.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org8882c98">3.13. Weak head normal form</a>
<ul>
<li><a href="#org7aaec48">3.13.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org3838949">3.14. Function image</a>
<ul>
<li><a href="#orga95eb18">3.14.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org88cfd1f">3.15. Maybe</a></li>
<li><a href="#org3331e7b">3.16. Inverse</a></li>
<li><a href="#orgc5ea288">3.17. Inversion</a></li>
<li><a href="#org13e417e">3.18. Inverse function</a></li>
<li><a href="#org408a3d3">3.19. Inverse morphism   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org191d16a">3.20. Invertible</a></li>
<li><a href="#orga7751b2">3.21. Invertibility</a></li>
<li><a href="#org33931e5">3.22. Partial inverse</a></li>
<li><a href="#org75ed2b5">3.23. Define LANGUAGE pragma options</a>
<ul>
<li><a href="#orge9b6c07">3.23.1. ExistentialQuantification</a></li>
<li><a href="#orgea7c226">3.23.2. GADTs</a></li>
<li><a href="#org6c7f05b">3.23.3. GeneralizedNewTypeClasses</a></li>
<li><a href="#orgee053ca">3.23.4. FuncitonalDependencies</a></li>
</ul>
</li>
<li><a href="#org5f65128">3.24. GHC debug keys</a>
<ul>
<li><a href="#org4cb8bed">3.24.1. -ddump-ds</a></li>
</ul>
</li>
<li><a href="#orgb3f4fd6">3.25. GHC optimize keys</a>
<ul>
<li><a href="#org58b7e72">3.25.1. -foptimal-applicative-do</a></li>
</ul>
</li>
<li><a href="#org1d08571">3.26. GHC check keys</a>
<ul>
<li><a href="#orgbe7f47c">3.26.1. -Wno-partial-type-signatures</a></li>
</ul>
</li>
<li><a href="#org546e23a">3.27. Generalised algebraic data types</a>
<ul>
<li><a href="#org6578498">3.27.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org3904700">3.28. Order theory</a>
<ul>
<li><a href="#org4ec031c">3.28.1. Domain theory</a></li>
<li><a href="#org1f585ce">3.28.2. Lattice</a></li>
<li><a href="#orgfc8a806">3.28.3. Order</a></li>
<li><a href="#org7d75012">3.28.4. Partial order</a></li>
<li><a href="#org4c0db04">3.28.5. Total order</a></li>
</ul>
</li>
<li><a href="#org7637aff">3.29. Universal algebra</a></li>
<li><a href="#org31e786d">3.30. Relation</a>
<ul>
<li><a href="#orga8226e4">3.30.1. Reflexivity</a></li>
<li><a href="#org654298f">3.30.2. Irreflexivity</a></li>
<li><a href="#org945416a">3.30.3. Transitivity</a></li>
<li><a href="#org9b2870f">3.30.4. Symmetry</a></li>
<li><a href="#org4e00d85">3.30.5. Equivalence</a></li>
<li><a href="#org5ed10ae">3.30.6. Antisymmetry</a></li>
<li><a href="#org1499180">3.30.7. Asymmetry</a></li>
</ul>
</li>
<li><a href="#orgfb29f93">3.31. Cryptomorphism</a>
<ul>
<li><a href="#org5e06e92">3.31.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgb8d121b">3.32. Lexically scoped type variables</a></li>
<li><a href="#orgf490a47">3.33. Abstract data type</a>
<ul>
<li><a href="#org5204b05">3.33.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgbcea858">3.34. ADT   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org01fc3d0">3.35. Concrete type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgc84799a">3.36. Functional dependencies</a></li>
<li><a href="#org7a969c5">3.37. MonoLocalBinds</a></li>
<li><a href="#org4856cae">3.38. KindSignatures</a></li>
<li><a href="#org3f84e85">3.39. ExplicitNamespaces</a></li>
<li><a href="#orgbd8569a">3.40. Combinator pattern</a></li>
<li><a href="#orgd0ed4a1">3.41. Symbolic expression   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org296f70e">3.41.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org409d77e">3.42. Polynomial   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org157ce99">3.42.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org30106ef">3.43. Data family</a></li>
<li><a href="#orgf3a3a4d">3.44. Type synonym family</a></li>
<li><a href="#orgfd7e45c">3.45. Indexed type family</a>
<ul>
<li><a href="#orge35ee8c">3.45.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org276b8c7">3.46. TypeFamilies</a></li>
<li><a href="#orgc0b581f">3.47. Error</a></li>
<li><a href="#orgc36dac1">3.48. Exception</a></li>
<li><a href="#orgae93528">3.49. ConstraintKinds</a></li>
<li><a href="#orgdfc7013">3.50. Propositional logic</a>
<ul>
<li><a href="#orgac8f0f8">3.50.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org38ff98a">3.51. Second-order logic</a></li>
<li><a href="#orgb65b821">3.52. Higher-order logic</a></li>
</ul>
</li>
<li><a href="#orgb3dbf11">4. Citations</a></li>
<li><a href="#org47c2e13">5. Good code   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgcab9213">5.1. Good: Type aliasing   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgfb1dc52">5.2. Good: Type wideness   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6d3c52a">5.3. Good: Read Conventions of variables (page 176)   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6b208f8">5.4. Good: Print   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org2d041f7">5.5. Good: Read code evaluation (488 on-ward)   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgebfd0e2">5.6. Good: Fold   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org2d288d6">5.7. Good: Computation model   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8742354">5.8. Good: Make bottoms only local   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf7a353c">5.9. Good: Newtype wrap is ideally transparent for compiler and does not change performance   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge535375">5.10. Good: Instances of types/type classes must go with code you write   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8947a7d">5.11. Good: Functions can be abstracted as arguments   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga36f138">5.12. Good: Infix operators can be bind to arguments   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9451fdc">5.13. Good: Arbitrary   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org6bc948e">5.14. Good: Principle of Separation of concerns   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orga8c43d0">5.15. Good: Function composition   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org5307301">5.16. Good: Point-free   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org7691024">5.16.1. Good: Point-free is great in multi-dimentions   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orgd59d4cc">5.17. Good: Functor application   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgeebb549">5.18. Good: Parameter order   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org4fc3f91">5.19. Good: Applicative monoid   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org9f4a9ed">5.20. Good: Creative process   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org46217ee">5.20.1. Pick phylosophy principles one to three the more - the harder the implementation</a></li>
<li><a href="#org9659a7f">5.20.2. Draw the most blurred representation</a></li>
<li><a href="#org449d0cb">5.20.3. Deduce abstractions and write remotely what they are</a></li>
<li><a href="#org2ec607d">5.20.4. Model of computation</a></li>
<li><a href="#orgb6436b8">5.20.5. Create</a></li>
</ul>
</li>
<li><a href="#org75d654b">5.21. <<<Good: About operators (<$) (<b><b>>) (<</b></b>) (>>)>>>   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org8592830">5.22. Good: About operators mapM_ sequence_   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgbe62702">5.23. Good: Guideliles   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org991430f">5.23.1. Wiki.haskell</a></li>
</ul>
</li>
<li><a href="#org40e550e">5.24. Good: Use Typed holes to progress the code   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orge8bc4d2">5.25. Good: Haskell has infinite terms not not infinite types.   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgff319ca">5.26. Good: Use type sysnonims to differ the information   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org7e6ef0a">5.27. <<<Good: Control.Monad.Error -> Control.Monad.Except>>>   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org61ad74d">5.28. Good: Monad OR Applicative</a></li>
<li><a href="#orga41e5b8">5.29. Good: Haskell Package Versioning Policy</a>
<ul>
<li><a href="#org5f8b97f">5.29.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#org8011a78">5.30. Good: Linear type   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#org7b4d352">5.31. Good: Exception vs Error   <span class="tag"><span class="drill">drill</span></span></a></li>
<li><a href="#orgf8cdc39">5.32. Good: Let vs. Where   <span class="tag"><span class="drill">drill</span></span></a></li>
</ul>
</li>
<li><a href="#orge64e909">6. Bad code   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org6eaec08">6.1. Bad pragma</a>
<ul>
<li><a href="#org3e5a651">6.1.1. Bad: Dangerous LANGUAGE pragma option</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org26982a3">7. Useful functions to remember</a>
<ul>
<li><a href="#org2d8e30c">7.1. Prelude</a>
<ul>
<li><a href="#org344b8b6">7.1.1. Ord</a></li>
<li><a href="#org104cbd7">7.1.2. Calc</a></li>
<li><a href="#orge8c4140">7.1.3. List operations</a></li>
</ul>
</li>
<li><a href="#org61beded">7.2. Data.List</a></li>
<li><a href="#org3fd0147">7.3. Data.Char</a></li>
<li><a href="#org40538de">7.4. QuickCheck</a></li>
</ul>
</li>
<li><a href="#org8913eed">8. Investigate</a></li>
<li><a href="#org7c338e7">9. Tools   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org88c146e">9.1. ghc-pkg</a></li>
<li><a href="#orgbd11e64">9.2. Search over the Haskell packages code: Codesearch from Aelve</a></li>
<li><a href="#orgd5f3fac">9.3. Integration of NixOS/Nix with Haskell IDE Engine (HIE) and Emacs (Spacemacs)</a>
<ul>
<li><a href="#orgd4c87d6">9.3.1. 1. Install the Cachix: https://github.com/cachix/cachix</a></li>
<li><a href="#orgf02670a">9.3.2. 2. Install HIE on NixOS: https://github.com/infinisil/all-hies/#cached-builds</a></li>
<li><a href="#org47cfaef">9.3.3. 3. Emacs (Spacemacs) configuration:</a></li>
<li><a href="#org6717dba">9.3.4. 4. Open the Haskell file from a project</a></li>
<li><a href="#org3b1459c">9.3.5. 5. Be pleased writing code</a></li>
<li><a href="#orgeac7601">9.3.6. 6. (optional) Debugging</a></li>
</ul>
</li>
<li><a href="#org74d1b02">9.4. Debugger</a></li>
</ul>
</li>
<li><a href="#org38d9ceb">10. Libs   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#orgf60b84c">10.1. Exceptions</a>
<ul>
<li><a href="#orgdb4d26f">10.1.1. Exceptions - optionally pure extensible exceptions that are compatible with the mtl</a></li>
<li><a href="#orgcd8fb9d">10.1.2. Safe-exceptions - safe, simple API equivalent to the underlying implementation in terms of power, encourages best practices minimizing the chances of getting the exception handling wrong.</a></li>
<li><a href="#org434137c">10.1.3. Enclosed-exceptions - capture exceptions from the enclosed computation, while reacting to asynchronous exceptions aimed at the calling thread.</a></li>
</ul>
</li>
<li><a href="#orgd4e1a8a">10.2. Memory management</a>
<ul>
<li><a href="#orgf2c7eb7">10.2.1. membrain - type-safe memory units</a></li>
</ul>
</li>
<li><a href="#orgba3db8e">10.3. Parsers - megaparsec</a></li>
<li><a href="#org3f12a56">10.4. CLIs - optparse-applicative</a></li>
<li><a href="#org3024300">10.5. HTML - Lucid</a></li>
<li><a href="#orgfe9fe5a">10.6. Web applications - Servant</a></li>
<li><a href="#org92638d4">10.7. IO libraries</a>
<ul>
<li><a href="#org93692e3">10.7.1. Conduit - practical, monolythic, guarantees termination return</a></li>
<li><a href="#orga545b69">10.7.2. Pipes + Pipes Parse - modular, more primitive, theoretically driven</a></li>
</ul>
</li>
<li><a href="#org3234e62">10.8. JSON - aeson</a></li>
</ul>
</li>
<li><a href="#orgcb1e6a8">11. Reference</a>
<ul>
<li><a href="#orgcff8900">11.1. Functor-Applicative-Monad Proposal   <span class="tag"><span class="drill">drill</span></span></a>
<ul>
<li><a href="#org26b4c82">11.1.1. <i>*</i></a></li>
</ul>
</li>
<li><a href="#orgeee2914">11.2. Haskell-98</a>
<ul>
<li><a href="#org3481904">11.2.1. Old instance termination rules</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org0ea2bc8">12. Liturgy</a></li>
</ul>
</div>
</div>
<div id="outline-container-org29a07db" class="outline-2">
<h2 id="org29a07db"><span class="section-number-2">1</span> Introduction</h2>
<div class="outline-text-2" id="text-1">
<p>
Important notes on Haskel, <a href="#orgf73804a">category</a> & related fields.
</p>
<p>
GitHub&GitLab parse ORG into HTML only partially. Good quality HTML export is in the `README.html`, it is hosted at <a href="https://blog.latukha.com/haskell-notes.html">https://blog.latukha.com/haskell-notes.html</a>.
</p>
<p>
This is complex ORG notes file with LaTeX formulas.
To get:
</p>
<ul class="org-ul">
<li>LaTeX formulas</li>
<li>Interlinks</li>
<li>Navigation</li>
</ul>
<p>
use capable editor.
</p>
<p>
If something - <code><<<This is a radio target>>></code> - for <code>org-mode</code> linking.
</p>
<p>
Elisp snippet for you to prettify '<a id="orga0cfaff">Radio targets</a>' to '<sub>Radio</sub> targets_':
</p>
<div class="org-src-container">
<pre class="src src-elisp"><span style="color: #2aa1ae; background-color: #292e34;">;;;; </span><span style="color: #2aa1ae; background-color: #292e34;">2019-06-12: </span><span style="color: #b1951d;">NOTE</span><span style="color: #2aa1ae; background-color: #292e34;">: Prettify '<<<Radio targets>>>' to be shown as 'Radio targets' when org-descriptive-links set</span>
<span style="color: #2aa1ae; background-color: #292e34;">;;;; </span><span style="color: #2aa1ae; background-color: #292e34;">This is improvement of the code from: Tobias&glmorous: https://emacs.stackexchange.com/questions/19230/how-to-hide-targets</span>
<span style="color: #2aa1ae; background-color: #292e34;">;;;; </span><span style="color: #2aa1ae; background-color: #292e34;">There exists library created from the sample: https://github.com/talwrii/org-hide-targets</span>
<span style="color: #4f97d7;">(</span><span style="color: #4f97d7; font-weight: bold;">defcustom</span> <span style="color: #7590db;">org-hidden-links-additional-re</span> <span style="color: #2d9574;">"</span><span style="color: #2d9574; font-weight: bold;">\\</span><span style="color: #2d9574; font-weight: bold;">(</span><span style="color: #2d9574;"><<<</span><span style="color: #2d9574; font-weight: bold;">\\</span><span style="color: #2d9574; font-weight: bold;">)</span><span style="color: #2d9574;">[[:print:]]+?</span><span style="color: #2d9574; font-weight: bold;">\\</span><span style="color: #2d9574; font-weight: bold;">(</span><span style="color: #2d9574;">>>></span><span style="color: #2d9574; font-weight: bold;">\\</span><span style="color: #2d9574; font-weight: bold;">)</span><span style="color: #2d9574;">"</span>
<span style="color: #9f8766;">"Regular expression that matches strings where the invisible-property of the sub-matches 1 and 2 is set to org-link."</span>
<span style="color: #4f97d7;">:type</span> '<span style="color: #bc6ec5;">(</span>choice <span style="color: #2d9574;">(</span>const <span style="color: #4f97d7;">:tag</span> <span style="color: #2d9574;">"Off"</span> nil<span style="color: #2d9574;">)</span> regexp<span style="color: #bc6ec5;">)</span>
<span style="color: #4f97d7;">:group</span> 'org-link<span style="color: #4f97d7;">)</span>
<span style="color: #4f97d7;">(</span>make-variable-buffer-local 'org-hidden-links-additional-re<span style="color: #4f97d7;">)</span>