From 42fed3b69605edc84a07fdff6131784c1e1e61ff Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 16 Apr 2015 20:10:56 +0200 Subject: [PATCH] Reword code types --- VL1.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VL1.tex b/VL1.tex index c4281ed..d2195d4 100644 --- a/VL1.tex +++ b/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}