-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCS410.lagda
More file actions
112 lines (83 loc) · 2.66 KB
/
CS410.lagda
File metadata and controls
112 lines (83 loc) · 2.66 KB
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
\documentclass{book}
\usepackage{a4}
\usepackage{palatino}
\usepackage{natbib}
\usepackage{amsfonts}
\usepackage{stmaryrd}
\usepackage{upgreek}
\usepackage{url}
\DeclareMathAlphabet{\mathkw}{OT1}{cmss}{bx}{n}
\usepackage{color}
\newcommand{\redFG}[1]{\textcolor[rgb]{0.6,0,0}{#1}}
\newcommand{\greenFG}[1]{\textcolor[rgb]{0,0.4,0}{#1}}
\newcommand{\blueFG}[1]{\textcolor[rgb]{0,0,0.8}{#1}}
\newcommand{\orangeFG}[1]{\textcolor[rgb]{0.8,0.4,0}{#1}}
\newcommand{\purpleFG}[1]{\textcolor[rgb]{0.4,0,0.4}{#1}}
\newcommand{\yellowFG}[1]{\textcolor{yellow}{#1}}
\newcommand{\brownFG}[1]{\textcolor[rgb]{0.5,0.2,0.2}{#1}}
\newcommand{\blackFG}[1]{\textcolor[rgb]{0,0,0}{#1}}
\newcommand{\whiteFG}[1]{\textcolor[rgb]{1,1,1}{#1}}
\newcommand{\yellowBG}[1]{\colorbox[rgb]{1,1,0.2}{#1}}
\newcommand{\brownBG}[1]{\colorbox[rgb]{1.0,0.7,0.4}{#1}}
\newcommand{\greenBG}[1]{\colorbox[rgb]{0.7,1.0,0.7}{#1}}
\newcommand{\ColourStuff}{
\newcommand{\red}{\redFG}
\newcommand{\green}{\greenFG}
\newcommand{\blue}{\blueFG}
\newcommand{\orange}{\orangeFG}
\newcommand{\purple}{\purpleFG}
\newcommand{\yellow}{\yellowFG}
\newcommand{\brown}{\brownFG}
\newcommand{\black}{\blackFG}
\newcommand{\white}{\whiteFG}
}
\newcommand{\MonochromeStuff}{
\newcommand{\red}{\blackFG}
\newcommand{\green}{\blackFG}
\newcommand{\blue}{\blackFG}
\newcommand{\orange}{\blackFG}
\newcommand{\purple}{\blackFG}
\newcommand{\yellow}{\blackFG}
\newcommand{\brown}{\blackFG}
\newcommand{\black}{\blackFG}
\newcommand{\white}{\blackFG}
}
\ColourStuff
\newcommand{\M}[1]{\mathsf{#1}}
\newcommand{\D}[1]{\blue{\mathsf{#1}}}
\newcommand{\C}[1]{\red{\mathsf{#1}}}
\newcommand{\F}[1]{\green{\mathsf{#1}}}
\newcommand{\V}[1]{\purple{\mathit{#1}}}
\newcommand{\T}[1]{\raisebox{0.02in}{\tiny\green{\textsc{#1}}}}
\newcommand{\us}[1]{\_\!#1\!\_}
%include lhs2TeX.fmt
%include lhs2TeX.sty
%include polycode.fmt
%subst keyword a = "\mathkw{" a "}"
%subst conid a = "\V{" a "}"
%subst varid a = "\V{" a "}"
%format -> = "\blue{\rightarrow}"
\newcommand{\nudge}[1]{\marginpar{\footnotesize #1}}
\newtheorem{exe}{Exercise}[chapter]
%format rewrite = "\mathkw{rewrite}"
%format constructor = "\mathkw{constructor}"
%format ? = "\orange{?}"
\parskip 0.1in
\parindent 0in
\begin{document}
\title{CS410\\
Advanced Functional Programming}
\author{Conor McBride \\
Mathematically Structured Programming Group \\
Department of Computer and Information Sciences \\
University of Strathclyde}
\maketitle
%include Introduction.lagda
%include BasicPrelude.lagda
%include Logic.lagda
%include Razor.lagda
\appendix
%include EmacsCheatSheet.lagda
\bibliographystyle{plainnat}
\bibliography{CS410.bib}
\end{document}