Julian Ospald
hace 9 años
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 220CD1C5BDEED020
Se han
modificado 1 ficheros con
3 adiciones y
3 borrados
-
VL1.tex
|
|
@@ -692,10 +692,10 @@ For haskell IDEs, see \url{https://wiki.haskell.org/IDEs} |
|
|
|
Does this compile? If not, fix it. Is this a total function? |
|
|
|
\setHaskellCodeStyle |
|
|
|
\begin{lstlisting} |
|
|
|
data FakeInt = MkDouble Double |
|
|
|
| MkInt Int |
|
|
|
data IntOrDouble = MkDouble Double |
|
|
|
| MkInt Int |
|
|
|
|
|
|
|
f :: Int -> FakeInt |
|
|
|
f :: Int -> IntOrDouble |
|
|
|
f 0 = 0.5 |
|
|
|
\end{lstlisting} |
|
|
|
\end{frame} |
|
|
|