@@ -25,7 +25,7 @@ list of imports and a collection of definitions and declarations, for example:
26\begin{SaveVerbatim}{constprims}
26\begin{SaveVerbatim}{constprims}
28−module main
28+module Main
@@ -47,7 +47,7 @@ undecidable for languages with
47dependent types.
47dependent types.
49A module declaration also opens a \remph{namespace}. The fully qualified names
49A module declaration also opens a \remph{namespace}. The fully qualified names
50−declared in this module are \texttt{main.x} and \texttt{main.main}.
50+declared in this module are \texttt{Main.x} and \texttt{Main.main}.
53\subsection{Types and Functions}
53\subsection{Types and Functions}
@@ -66,8 +66,7 @@ data List a = Nil | (::) a (List a) -- Polymorphic lists
66\useverb{natlist}
66\useverb{natlist}
69−The above declarations are taken from the standard library. Unary natural
70−numbers can be either zero, or
69+Unary natural numbers can be either zero, or
71the successor of another natural number (\texttt{S k}).
70the successor of another natural number (\texttt{S k}).
72Lists can either be empty (\texttt{Nil})
71Lists can either be empty (\texttt{Nil})
73or a value added to the front of another list (\texttt{x :: xs}).
72or a value added to the front of another list (\texttt{x :: xs}).
@@ -166,7 +165,7 @@ reverse xs = revAcc [] xs where
166Indentation is significant --- functions in the \texttt{where} block must be indented
165Indentation is significant --- functions in the \texttt{where} block must be indented
167further than the outer function.
166further than the outer function.
169−\textbf{Scope:}
168+\textbf{Remark (scope):}
170Any names which are visible in the outer scope are also visible in the \texttt{where}
169Any names which are visible in the outer scope are also visible in the \texttt{where}
171clause (unless they have been redefined, such as \texttt{xs} here).
170clause (unless they have been redefined, such as \texttt{xs} here).
172\emph{However}, names which appear in the type are \emph{not} automatically
171\emph{However}, names which appear in the type are \emph{not} automatically