From 3cfdec16ed5d5ca0f532575dd972d0b14e38ee94 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 23 Apr 2015 22:02:44 +0200 Subject: [PATCH] Use footnotes for urls --- VL1/content/VL1_difficulties2.tex | 4 ++-- VL1/content/VL1_toolchain.tex | 4 ++-- VL2/content/VL2_fold4.tex | 4 ++-- VL2/content/VL2_let_vs_where.tex | 4 +--- common/content/VL_links.tex | 12 ++++++------ common/content/VL_sources.tex | 8 ++++---- 6 files changed, 17 insertions(+), 19 deletions(-) diff --git a/VL1/content/VL1_difficulties2.tex b/VL1/content/VL1_difficulties2.tex index cb0c823..9462923 100644 --- a/VL1/content/VL1_difficulties2.tex +++ b/VL1/content/VL1_difficulties2.tex @@ -1,5 +1,5 @@ \begin{itemizep} \item \ifger{einige Probleme die trivial in imperativen Sprachen sind, sind sehr schwierig in idiomatischem Haskell zu lösen und umgekehrt}{some problems that are trivial in imperative languages, can be very difficult to solve in idiomatic haskell and vice versa} -\item \ifger{praktische Kryptographie ist möglich, aber ein schwieriges Thema, siehe}{practical cryptography is possible, but a difficult topic in haskell, see} \url{https://mail.haskell.org/pipermail/haskell-cafe/2015-February/118059.html} -\item \ifger{obwohl Haskell \emph{lazy} ist, gibt es ein paar Dinge, die laziness zunichte machen können, siehe auch}{although haskell is \emph{lazy}, there are a few things that can break laziness, see} \url{https://wiki.haskell.org/Maintaining_laziness} +\item \ifger{praktische Kryptographie ist möglich, aber ein schwieriges Thema, siehe}{practical cryptography is possible, but a difficult topic in haskell, see}\footnote{\url{https://mail.haskell.org/pipermail/haskell-cafe/2015-February/118059.html}} +\item \ifger{obwohl Haskell \emph{lazy} ist, gibt es ein paar Dinge, die laziness zunichte machen können, siehe auch}{although haskell is \emph{lazy}, there are a few things that can break laziness, see}\footnote{\url{https://wiki.haskell.org/Maintaining_laziness}} \end{itemizep} \ No newline at end of file diff --git a/VL1/content/VL1_toolchain.tex b/VL1/content/VL1_toolchain.tex index ab058ac..0d84979 100644 --- a/VL1/content/VL1_toolchain.tex +++ b/VL1/content/VL1_toolchain.tex @@ -4,5 +4,5 @@ \item \textbf{GHCi}: \ifger{das ist die interaktive Compiler-Umgebung, ähnlich der ruby shell \emph{irb}}{this an interactive environment of GHC, similar to the interactive ruby shell \emph{irb}} \item \textbf{The Haskell Platform}: \ifger{eine Kollektion die GHC, GHCi und Standardbibliotheken beinhaltet}{a collection including GHC, GHCi and basic libraries} \end{itemize} -\ifger{Siehe}{Go to} \url{https://www.haskell.org/platform}\\ -\ifger{Für Haskell IDEs, siehe}{For haskell IDEs, see} \url{https://wiki.haskell.org/IDEs} \ No newline at end of file +\ifger{Siehe}{Go to}\footnote{\url{https://www.haskell.org/platform}}\\ +\ifger{Für Haskell IDEs, siehe}{For haskell IDEs, see}\footnote{\url{https://wiki.haskell.org/IDEs}} \ No newline at end of file diff --git a/VL2/content/VL2_fold4.tex b/VL2/content/VL2_fold4.tex index 2cca7a4..91b0ecf 100644 --- a/VL2/content/VL2_fold4.tex +++ b/VL2/content/VL2_fold4.tex @@ -8,10 +8,10 @@ foldl f z [a,b,c] == ((z `f` a) `f` b) `f` c \vspace{\baselineskip} \\ \pause -\ifger{Wir können sogar foldl mittels foldr ausdrücken und umgekehrt. Wer interessiert daran ist, sollte hier weiterlesen:}{We can even express foldl in terms of foldr and vice versa. If you are interested, have a look here:}\\ \url{http://lambda.jstolarek.com/2012/07/expressing-foldl-in-terms-of-foldr/} +\ifger{Wir können sogar foldl mittels foldr ausdrücken und umgekehrt. Wer interessiert daran ist, sollte hier\footnote{\url{http://lambda.jstolarek.com/2012/07/expressing-foldl-in-terms-of-foldr}} weiterlesen.}{We can even express foldl in terms of foldr and vice versa. If you are interested, have a look here\footnote{\url{http://lambda.jstolarek.com/2012/07/expressing-foldl-in-terms-of-foldr}}.} \vspace{\baselineskip} \\ -\ifger{Es macht Sinn diese Funktionen in \emph{Prelude} anzuschauen und ein bisschen damit herumzuspielen:}{You should definitely look them up in the Prelude and play with them:} \url{https://hackage.haskell.org/package/base-4.8.0.0/docs/Prelude.html} +\ifger{Es macht Sinn diese Funktionen in \emph{Prelude}\footnote{\url{https://hackage.haskell.org/package/base-4.8.0.0/docs/Prelude.html}} anzuschauen und ein bisschen damit herumzuspielen:}{You should definitely look them up in the \emph{Prelude}\footnote{\url{https://hackage.haskell.org/package/base-4.8.0.0/docs/Prelude.html}} and play with them:} \begin{haskellcode*}{bgcolor=mygrey,frame=single,numbers=none,label=GHCi} > foldr (-) 0 [1, 2, 3] > foldl (-) 0 [1, 2, 3] diff --git a/VL2/content/VL2_let_vs_where.tex b/VL2/content/VL2_let_vs_where.tex index 6d66819..ae47d20 100644 --- a/VL2/content/VL2_let_vs_where.tex +++ b/VL2/content/VL2_let_vs_where.tex @@ -10,8 +10,6 @@ f x \ifger{während dies mit \hinline{let} so nicht möglich ist. Dieses ist hingegen ein echter Ausdruck und kann überall dort benutzt werden, wo Ausdrücke erlaubt sind (z.b. innerhalb von \emph{Monaden}, dazu später mehr).}{While that is not possible with \hinline{let}, which is an actual expression and can be used whenever expressions are allowed (e.g. inside \emph{Monads}, we'll know more about these in a few weeks).} \vspace{\baselineskip} \\ -\ifger{Es gibt hier noch ein paar weitere Feinheiten, aber generell ist es einfach nur Geschmackssache:}{There are a few more intricacies, but most of the time this is just style consideration:}\\ \url{https://wiki.haskell.org/Let_vs._Where} +\ifger{Es gibt hier noch ein paar weitere Feinheiten\footnote{\url{https://wiki.haskell.org/Let_vs._Where}}, aber generell ist es einfach nur Geschmackssache.}{There are a few more intricacies\footnote{\url{https://wiki.haskell.org/Let_vs._Where}}, but most of the time this is just style consideration.} \pause -\vspace{\baselineskip} -\\ \ifger{Wie müssten wir die Funktion umschreiben um \hinline{let} zu benutzen?}{How would we have to rewrite the function in order to use \hinline{let}?} \ No newline at end of file diff --git a/common/content/VL_links.tex b/common/content/VL_links.tex index 0c30057..135da41 100644 --- a/common/content/VL_links.tex +++ b/common/content/VL_links.tex @@ -1,8 +1,8 @@ \begin{itemize} -\item \ifger{der wohl populärste Haskell-Kurs von Brent Yorgey:}{the most popular haskell course from Brent Yorgey:}\\ \url{https://www.seas.upenn.edu/~cis194/fall14/spring13/lectures.html} -\item \ifger{sehr ausführliches und enthusiastisches Haskell-Buch, gut zum einmal lesen:}{very verbose and enthusiastic haskell book, good for reading once:}\\ \url{http://learnyouahaskell.com} -\item \ifger{eine Kollektion von Webseiten, mit deren Hilfe man Haskell lernen kann}{collection of websites teaching haskell}:\\ \url{https://github.com/bitemyapp/learnhaskell} -\item \ifger{Haskell Programmiertips (und wiki)}{haskell programming tips (and wiki)}:\\ \url{https://wiki.haskell.org/Haskell_programming_tips} -\item \ifger{Das Standardmodul (ähnlich wie libc in C):}{the standard module (similar to libc in C):}\\ \url{https://hackage.haskell.org/package/base-4.7.0.0/docs/Prelude.html} -\item \ifger{debuggen in Haskell}{debugging in haskell}:\\ \url{https://wiki.haskell.org/Debugging} +\item \ifger{der wohl populärste Haskell-Kurs von Brent Yorgey}{the most popular haskell course from Brent Yorgey}\footnote{\url{https://www.seas.upenn.edu/~cis194/fall14/spring13/lectures.html}} +\item \ifger{sehr ausführliches und enthusiastisches Haskell-Buch, gut zum einmal lesen.}{very verbose and enthusiastic haskell book, good for reading once.}\footnote{\url{http://learnyouahaskell.com}} +\item \ifger{eine Kollektion von Webseiten, mit deren Hilfe man Haskell lernen kann}{collection of websites teaching haskell}\footnote{\url{https://github.com/bitemyapp/learnhaskell}} +\item \ifger{Haskell Programmiertips (und wiki)}{haskell programming tips (and wiki)}\footnote{\url{https://wiki.haskell.org/Haskell_programming_tips}} +\item \ifger{Das Standardmodul (ähnlich wie libc in C)}{the standard module (similar to libc in C)}\footnote{\url{https://hackage.haskell.org/package/base-4.7.0.0/docs/Prelude.html}} +\item \ifger{debuggen in Haskell}{debugging in haskell}\footnote{\url{https://wiki.haskell.org/Debugging}} \end{itemize} \ No newline at end of file diff --git a/common/content/VL_sources.tex b/common/content/VL_sources.tex index e262d4f..ba9e18d 100644 --- a/common/content/VL_sources.tex +++ b/common/content/VL_sources.tex @@ -1,6 +1,6 @@ \begin{itemize} -\item \ifger{viel Stoff ist entlehnt von oder basiert auf dem Haskell-Kurs von Brent Yorgey:}{much content was borrowed or is based on the haskell course from Brent Yorgey:}\\ \url{https://www.seas.upenn.edu/~cis194/fall14/spring13/lectures.html} -\item \ifger{ein paar kleinere Teile aus dem LYAH Buch}{a few small pieces from the LYAH book} \url{http://learnyouahaskell.com} -\item \ifger{allgemeine Informationen von Wikipedia:}{general information from wikipedia:} \\ \url{https://en.wikipedia.org} -\item \ifger{allgemeine Informationen vom Haskell Wiki:}{general information from haskell wiki:} \\ \url{https://wiki.haskell.org} +\item \ifger{viel Stoff ist entlehnt von oder basiert auf dem Haskell-Kurs von Brent Yorgey}{much content was borrowed or is based on the haskell course from Brent Yorgey}\footnote{\url{https://www.seas.upenn.edu/~cis194/fall14/spring13/lectures.html}} +\item \ifger{ein paar kleinere Teile aus dem LYAH Buch}{a few small pieces from the LYAH book}\footnote{\url{http://learnyouahaskell.com}} +\item \ifger{allgemeine Informationen von Wikipedia}{general information from wikipedia}\footnote{\url{https://en.wikipedia.org}} +\item \ifger{allgemeine Informationen vom Haskell Wiki}{general information from haskell wiki}\footnote{\url{https://wiki.haskell.org}} \end{itemize} \ No newline at end of file