@@ -557,7 +557,7 @@ greet = do putStr "What is your name? "
557\useverb{greet}
557\useverb{greet}
560−The syntax \texttt{x <- iovalue} executes the I/O operation iovalue, of type
560+The syntax \texttt{x <- iovalue} executes the I/O operation \texttt{iovalue}, of type
561\texttt{IO a}, and
561\texttt{IO a}, and
562puts the result, of type \texttt{a} into the variable \texttt{x}.
562puts the result, of type \texttt{a} into the variable \texttt{x}.
563In this case, \texttt{getLine} returns an \texttt{IO String},
563In this case, \texttt{getLine} returns an \texttt{IO String},
@@ -608,7 +608,7 @@ names \texttt{Nil} and \texttt{::} can be written in list form. For example:
609\begin{itemize}
609\begin{itemize}
610\item \texttt{[]} means \texttt{Nil}
610\item \texttt{[]} means \texttt{Nil}
611−\item \texttt{[1,2,3]} means \texttt{Cons 1 (Cons 2 (Cons 3 Nil))}
611+\item \texttt{[1,2,3]} means \texttt{1 :: 2 :: 3 :: Nil}
612\end{itemize}
612\end{itemize}
@@ -849,7 +849,7 @@ filter p Nil = (_ , [])
849In the \texttt{::} case, we need to inspect the result of a recursive call to
849In the \texttt{::} case, we need to inspect the result of a recursive call to
850\texttt{filter} to
850\texttt{filter} to
851extract the length and the vector from the result. To do this, we use \texttt{with}
851extract the length and the vector from the result. To do this, we use \texttt{with}
852−notation. with allows pattern matching on intermediate values:
852+notation, which allows pattern matching on intermediate values:
854\begin{SaveVerbatim}{vfiltercons}
854\begin{SaveVerbatim}{vfiltercons}