Selaa lähdekoodia

Reword code types

stripped-german
Julian Ospald 9 vuotta sitten
vanhempi
commit
42fed3b696
No known key found for this signature in database GPG Key ID: 220CD1C5BDEED020
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +3
    -3
      VL1.tex

+ 3
- 3
VL1.tex Näytä tiedosto

@@ -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}


Ladataan…
Peruuta
Tallenna