Browse Source

Reword code types

Julian Ospald 4 years ago
parent
commit
42fed3b696
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      VL1.tex

+ 3
- 3
VL1.tex View File

@@ -692,10 +692,10 @@ For haskell IDEs, see \url{https://wiki.haskell.org/IDEs}
692 692
 Does this compile? If not, fix it. Is this a total function?
693 693
 \setHaskellCodeStyle
694 694
 \begin{lstlisting}
695
-data FakeInt = MkDouble Double
696
-             | MkInt Int
695
+data IntOrDouble = MkDouble Double
696
+                 | MkInt Int
697 697
 
698
-f :: Int -> FakeInt
698
+f :: Int -> IntOrDouble
699 699
 f 0 = 0.5
700 700
 \end{lstlisting}
701 701
 \end{frame}