X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=appendix%2Fclean_for_haskell_programmers.tex;h=ad0b06d818d8849d50bb3e865ff51402b928d79b;hb=f14909a1fc10adc898c994bbf0c67a98b03ebcd4;hp=f07bc6bd55c2785eb007992e77ce4e52a0cbaf4a;hpb=45c4c1f86ffe493bbe929f262f6672a20c3cd8bf;p=phd-thesis.git diff --git a/appendix/clean_for_haskell_programmers.tex b/appendix/clean_for_haskell_programmers.tex index f07bc6b..ad0b06d 100644 --- a/appendix/clean_for_haskell_programmers.tex +++ b/appendix/clean_for_haskell_programmers.tex @@ -3,28 +3,34 @@ \begin{document} \ifSubfilesClassLoaded{ - \pagenumbering{arabic} - \author{Mart Lubbers\and Peter Achten} + \author{% + Mart Lubbers\\ + \texttt{mart@cs.ru.nl} + \and + Peter Achten\\ + \texttt{peter@cs.ru.nl} + } \title{Clean for Haskell Programmers} \date{\today} \stopthumb{}% \setcounter{chapter}{1} - { - \let\clearpage\relax - \let\vfil\relax - \let\cleardoublepage\relax - \let\newpage\relax - \maketitle - \tableofcontents - } - + \pagenumbering{arabic} + \maketitle + \tableofcontents }{ \chapter{\glsentrytext{CLEAN} for \glsentrytext{HASKELL} Programmers}% \label{chp:clean_for_haskell_programmers} } +This note is meant to give people who are familiar with the functional programming language \gls{HASKELL} a consise overview of \gls{CLEAN} language elements and how they differ from \gls{HASKELL}. +The goal is to support the reader when reading \gls{CLEAN} code. +Table~\ref{tbl:syn_clean_haskell} shows frequently occuring \gls{CLEAN} language elements on the left side and their \gls{HASKELL} equivalent on the right side. +Obviously, this summary is not exhaustive. +Some \gls{CLEAN} language elements that are not easily translatable to \gls{HASKELL} and thus do not occur in the summary follow below. +We hope you enjoy these notes and that it aids you in reading \gls{CLEAN} programs. + While \gls{CLEAN} and \gls{HASKELL} were both conceived around 1987 and have similar syntax, there are some subtle differences in syntax and functionality. This section describes some of the history of \gls{CLEAN} and provides a crash course in \gls{CLEAN} pecularities written for \gls{HASKELL} programmers. It is based on the