Adjust questions, because we omitted the ADT section

这个提交包含在:
Julian Ospald 2015-04-21 13:46:31 +02:00
父节点 efc0f586ed
当前提交 e315e78b39
找不到此签名对应的密钥
GPG 密钥 ID: 220CD1C5BDEED020
共有 1 个文件被更改,包括 5 次插入6 次删除

查看文件

@ -7,11 +7,10 @@
\item When are types checked in haskell?
\item What are the differences between lists and pairs?
\end{itemize}
Does this compile? If not, fix it. Is this a total or a partial function?
Is this a total or a partial function? Would you extend it? How?
\begin{haskellcode}
data IntOrDouble = MkDouble Double
| MkInt Int
f :: Int -> IntOrDouble
f 0 = 0.5
even :: Int -> Bool
f 0 = True
f 2 = True
f 4 = True
\end{haskellcode}