Browse Source

Add "You should be able to answer these questions" section

Julian Ospald 4 years ago
parent
commit
66b0198a2c
No account linked to committer's email address
1 changed files with 22 additions and 0 deletions
  1. 22
    0
      VL1.tex

+ 22
- 0
VL1.tex View File

@@ -672,6 +672,28 @@ For haskell IDEs, see \url{https://wiki.haskell.org/IDEs}
672 672
 \end{itemize}
673 673
 \end{frame}
674 674
 
675
+\begin{frame}[fragile]
676
+\frametitle{You should be able to answer these questions}
677
+\begin{itemize}
678
+\item What are side effects?
679
+\item What is referential transparency?
680
+\item Can you have referential transparency with side effects?
681
+\item What does the output of a haskell function depend on?
682
+\item What is laziness?
683
+\item When are types checked in haskell?
684
+\end{itemize}
685
+\vspace{\baselineskip}
686
+Does this compile? If not, fix it. Is this a total function?
687
+\setHaskellCodeStyle
688
+\begin{lstlisting}
689
+data FakeInt = MkDouble Double
690
+             | MkInt Int
691
+
692
+f :: Int -> FakeInt
693
+f 0 = 0.5
694
+\end{lstlisting}
695
+\end{frame}
696
+
675 697
 \begin{frame}
676 698
 \frametitle{Sources}
677 699
 \begin{itemize}