Skip to content

Commit f671675

Browse files
committed
Wrote the report
1 parent 19f41e5 commit f671675

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

ass3/main.tex

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
\documentclass[a4paper]{article}
2+
3+
\usepackage{fullpage}
4+
\usepackage{listings}
5+
\usepackage[usenames,dvipsnames]{color}
6+
\usepackage{hyperref}
7+
\usepackage{amsmath}
8+
9+
\definecolor{light-gray}{gray}{0.95}
10+
\lstset{tabsize=4,
11+
breaklines=true,
12+
breakatwhitespace=true,
13+
basicstyle=\scriptsize,
14+
language={Haskell},
15+
showstringspaces=false,
16+
numberstyle=\tiny,
17+
escapeinside={--(}{)--},
18+
numbers=left,
19+
backgroundcolor=\color{light-gray},
20+
frame=single,
21+
}
22+
23+
\title{Functional Programming lab 3}
24+
\author{Ren\'e Mellema (s23488002) \and Xeryus Stokkel (s233279)}
25+
26+
\begin{document}
27+
28+
\maketitle
29+
30+
\section{Types}
31+
32+
\lstinputlisting[caption={The \lstinline{module Types}}, label=code:types]{Types.hs}
33+
34+
\section{Valuation}
35+
36+
\lstinputlisting[caption={The \lstinline{module Valuation}}, label=code:val]{Valuation.hs}
37+
38+
\section{Expression}
39+
We also tried to write \lstinline{simplifyExpr} and it can simplify some expressions, but not others. This has to do with the structure of the tree of evaluations. It also won't simplify subtrees that have variables in it.
40+
41+
\lstinputlisting[caption={The \lstinline{module Expression}}, label=code:expr]{Expression.hs}
42+
43+
\section{Compare}
44+
45+
\lstinputlisting[caption={The \lstinline{module Compare}}, label=code:comp]{Compare.hs}
46+
47+
\section{Main}
48+
49+
\lstinputlisting[caption={The \lstinline{module Main}}, label=code:main]{Main.hs}
50+
51+
52+
53+
\end{document}

0 commit comments

Comments
 (0)