haskell-lectures/VL1/VL1.tex

322 lines
6.8 KiB
TeX

\documentclass[10pt,a5paper,mathserif,serif,usenames,dvipsnames]{beamer}
% packages
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{minted}
% for \verb inside \item
\usepackage[T1]{fontenc}
\usepackage[Q=yes]{examplep}
% package configuration
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[frame number]
\usemintedstyle{friendly}
\newminted{haskell}{frame=single,numbers=left}
\newminted{cpp}{frame=single,numbers=left}
\newminted{c}{frame=single,numbers=left}
\renewcommand{\theFancyVerbLine}{\ttfamily
\textcolor[rgb]{0.0,0.0,0.0}{\footnotesize
\oldstylenums{\arabic{FancyVerbLine}}}}
% title page information
\author{Julian Ospald}
\institute{FH Bielefeld}
\title{Haskell: introduction}
% color definition
\definecolor{solarized}{HTML}{002B36}
\definecolor{mygreen}{rgb}{0,0.6,0}
% macros and environments
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\slidep}{\onslide<+->}
\newenvironment{itemizep}
{\begin{itemize}[<+->]}
{\end{itemize}}
\begin{document}
\frame{\titlepage}
\begin{frame}[allowframebreaks=0.8]
\frametitle{Table of Contents}
\tableofcontents
\end{frame}
\section{1. Why haskell?}
\begin{frame}
\frametitle{1. Why haskell?}
\input{./content/VL1_why_haskell1.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{1. Why haskell? (ctn.)}
\input{./content/VL1_why_haskell2.tex}
\end{frame}
\begin{frame}
\frametitle{1. Why haskell? (ctn.)}
\input{./content/VL1_why_haskell3.tex}
\end{frame}
\begin{frame}
\frametitle{1. Why haskell? (ctn.)}
\input{./content/VL1_why_haskell4.tex}
\end{frame}
\begin{frame}
\frametitle{1. Why haskell? (ctn.)}
\input{./content/VL1_why_haskell5.tex}
\end{frame}
\section{2. What is haskell?}
\begin{frame}
\frametitle{2. What is haskell?}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
\begin{frame}
\frametitle{2. What is haskell? (ctn.)}
\input{./content/VL1_what_is_haskell1.tex}
\end{frame}
\subsection{2.1. What does functional mean?}
\begin{frame}
\frametitle{2.1. What does \textbf{functional} mean?}
\input{./content/VL1_what_is_haskell2.tex}
\end{frame}
\begin{frame}
\frametitle{2.1. What does \textbf{functional} mean? (ctn.)}
\input{./content/VL1_what_is_haskell3.tex}
\end{frame}
\subsection{2.2. What does pure mean?}
\begin{frame}
\frametitle{2.2. What does \textbf{pure} mean?}
\input{./content/VL1_what_is_haskell4.tex}
\end{frame}
\subsection{2.3. What does lazy mean?}
\begin{frame}
\frametitle{2.3. What does \textbf{lazy} mean?}
\input{./content/VL1_what_is_haskell5.tex}
\end{frame}
\subsection{2.4. What does statically typed mean?}
\begin{frame}
\frametitle{2.4. What does \textbf{statically typed} mean?}
\input{./content/VL1_what_is_haskell6.tex}
\end{frame}
\subsection{2.5. Summary}
\begin{frame}
\frametitle{2.5. What is haskell again?}
\input{./content/VL1_what_is_haskell7.tex}
\end{frame}
\section{3. How to think haskell?}
\begin{frame}
\frametitle{3. How to think haskell?}
\input{./content/VL1_think_haskell.tex}
\end{frame}
\section{4. How to write haskell?}
\begin{frame}
\frametitle{4. How to write haskell?}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
\subsection{4.1. Declarations}
\begin{frame}[fragile]
\frametitle{4.1. Declarations}
\input{./content/VL1_write_haskell1.tex}
\end{frame}
\subsection{4.2. Arithmetic and co.}
\begin{frame}[fragile]
\frametitle{4.2. Arithmetic and co.}
\input{./content/VL1_write_haskell2.tex}
\end{frame}
\subsection{4.3. Functions and control structures}
\begin{frame}[fragile]
\frametitle{4.3. Functions and control structures}
\input{./content/VL1_write_haskell3.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.3. Functions and control structures (ctn.)}
\input{./content/VL1_write_haskell4.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.3. Functions and control structures (ctn.)}
\input{./content/VL1_write_haskell5.tex}
\end{frame}
\subsection{4.4. Lists}
\begin{frame}[fragile]
\frametitle{4.4. Lists}
\input{./content/VL1_write_haskell6.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.4. Lists (ctn.)}
\input{./content/VL1_write_haskell7.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.4. Lists (ctn.)}
\input{./content/VL1_write_haskell8.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.4. Lists (ctn.)}
\input{./content/VL1_write_haskell9.tex}
\end{frame}
\subsection{4.5. Pairs}
\begin{frame}[fragile]
\frametitle{4.5. Pairs}
\input{./content/VL1_write_haskell10.tex}
\end{frame}
\subsection{4.6. Algebraic Data Types}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types}
\input{./content/VL1_write_haskell11.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types (ctn.)}
\input{./content/VL1_write_haskell12.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types (ctn.)}
\input{./content/VL1_write_haskell13.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types (ctn.)}
\input{./content/VL1_write_haskell14.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types (ctn.)}
\input{./content/VL1_write_haskell15.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types (ctn.)}
\input{./content/VL1_write_haskell16.tex}
\end{frame}
\begin{frame}[fragile]
\frametitle{4.6. Algebraic Data Types (ctn.)}
\input{./content/VL1_write_haskell17.tex}
\end{frame}
\section{5. Résumé}
\begin{frame}
\frametitle{5. Résumé}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
\subsection{5.1. Questions so far?}
\begin{frame}
\frametitle{5.1. Questions so far?}
\input{./content/VL1_resume1.tex}
\end{frame}
\subsection{5.2. Common misconceptions}
\begin{frame}
\frametitle{5.2. Common misconceptions}
\input{./content/VL1_resume2.tex}
\end{frame}
\subsection{5.3. Difficulties}
\begin{frame}
\frametitle{5.3. Difficulties}
\input{./content/VL1_resume3.tex}
\end{frame}
\section{6. Toolchain}
\begin{frame}
\frametitle{6. Toolchain}
\input{./content/VL1_toolchain.tex}
\end{frame}
\section{7. Reflection}
\begin{frame}
\frametitle{7. Reflection}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
\subsection{7.1. What you should know}
\begin{frame}
\frametitle{7.1. What you should know now}
\input{./content/VL1_reflection1.tex}
\end{frame}
\subsection{7.2. Questions for you}
\begin{frame}[fragile]
\frametitle{7.2. Questions for you}
\input{./content/VL1_reflection2.tex}
\end{frame}
\section{8. References}
\begin{frame}
\frametitle{8. References}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
\subsection{8.1. Links}
\begin{frame}
\frametitle{8.1. Further reading and useful links}
\input{../common/content/VL_links.tex}
\end{frame}
\subsection{8.2. Sources}
\begin{frame}
\frametitle{8.2. Sources}
\input{../common/content/VL_sources.tex}
\end{frame}
\end{document}