Reword code types
This commit is contained in:
parent
8f9343cb36
commit
42fed3b696
4
VL1.tex
4
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?
|
Does this compile? If not, fix it. Is this a total function?
|
||||||
\setHaskellCodeStyle
|
\setHaskellCodeStyle
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
data FakeInt = MkDouble Double
|
data IntOrDouble = MkDouble Double
|
||||||
| MkInt Int
|
| MkInt Int
|
||||||
|
|
||||||
f :: Int -> FakeInt
|
f :: Int -> IntOrDouble
|
||||||
f 0 = 0.5
|
f 0 = 0.5
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
Loading…
Reference in New Issue
Block a user