|
@@ -7,7 +7,6 @@ |
|
|
\item When are types checked in haskell? |
|
|
\item When are types checked in haskell? |
|
|
\item What are the differences between lists and pairs? |
|
|
\item What are the differences between lists and pairs? |
|
|
\end{itemize} |
|
|
\end{itemize} |
|
|
\vspace{\baselineskip} |
|
|
|
|
|
Does this compile? If not, fix it. Is this a total or a partial function? |
|
|
Does this compile? If not, fix it. Is this a total or a partial function? |
|
|
\begin{haskellcode} |
|
|
\begin{haskellcode} |
|
|
data IntOrDouble = MkDouble Double |
|
|
data IntOrDouble = MkDouble Double |
|
|