--- haskell98-tutorial-200006.orig/intro.verb +++ haskell98-tutorial-200006/intro.verb @@ -21,8 +21,8 @@ in Haskell, see \cite{huda89a}. The Haskell language has evolved significantly since its birth in 1987. -This tutorial deals with \anchor{http://haskell.org/report} -{Haskell 98}. Older versions of the language are now obsolete; +This tutorial deals with Haskell~98~\cite{haskell-98}. +Older versions of the language are now obsolete; Haskell users are encouraged to use Haskell 98. There are also many extensions to Haskell 98 that have been widely implemented. These are not yet a formal part of the Haskell language and are not covered in @@ -34,8 +34,7 @@ completely ignore the details until the {\em Gentle Introduction} has been completely read. On the other hand, Haskell's Standard Prelude (in Appendix A of the Report and the standard libraries -(found in the \anchor{http://haskell.org/library} -Library Report~\cite{haskell-libs}) contain +(found in the Library Report~\cite{haskell-libs}) contain lots of useful examples of Haskell code; we encourage a thorough reading once this tutorial is completed. This will not only give the reader a feel for what real Haskell code looks --- haskell98-tutorial-200006.orig/moretypes.verb +++ haskell98-tutorial-200006/moretypes.verb @@ -56,7 +56,7 @@ use of @newtype@ avoids the extra level of indirection (caused by laziness) that the @data@ declaration would introduce. See section -\ref{datatype-renaming} of the report for a more discussion of the +\see{datatype-renaming} of the report for a more discussion of the relation between @newtype@, @data@, and @type@ declarations. \syn{Except for the keyword, the @newtype@ declaration uses the same --- haskell98-tutorial-200006.orig/tex.hs +++ haskell98-tutorial-200006/tex.hs @@ -1129,8 +1129,8 @@ HPara] _ -> HString ("Unknown begin: \\begin{" ++ a ++ "}\n") where (opts,d') = case (break (== ';') d) of - (str,"") -> ("", str) - (o,';':s) -> (o,s) + (str,"") -> ("", str) + (o,';':s) -> (o,s) doEnd s l ls = let (a,l',ls') = getSArg l ls in if a == "thebibliography" @@ -1299,7 +1299,7 @@ file = lookup ref (refMap (gs s)) anc x = case file of Just fn -> - HAnchor ("../onlinereport/" ++ fn ++ ".html#" ++ ref) x + HAnchor ("../../haskell98-report/html/haskell98-report-html/" ++ fn ++ ".html#" ++ ref) x Nothing -> x in case txt of --- haskell98-tutorial-200006.orig/make-html +++ haskell98-tutorial-200006/make-html @@ -8,4 +8,4 @@ cp *.gif html cp *.html html cp -r code html -runhugs tex.hs +runhugs -c60 -h5000000 tex.hs --- haskell98-tutorial-200006.orig/debian/changelog +++ haskell98-tutorial-200006/debian/changelog @@ -0,0 +1,20 @@ +haskell98-tutorial (200006-3) unstable; urgency=low + + * Fix links into haskell98-report. Closes: #204935. + * Add a recommends for haskell98-report. + * Replace 404-ing URLs with citations. + * Update debhelper build-dep to >= 4. + + -- Ian Lynagh (wibble) Thu, 13 Nov 2003 18:47:37 +0000 + +haskell98-tutorial (200006-2) unstable; urgency=low + + * Fix tex.hs indentation so the latest hugs accepts it. Closes: #191529. + + -- Ian Lynagh (wibble) Sat, 03 May 2003 17:06:26 +0100 + +haskell98-tutorial (200006-1) unstable; urgency=low + + * Split package out from haskell-doc [Ganesh Sittampalam] + + -- Ian Lynagh (wibble) Mon, 31 Mar 2003 18:06:25 +0100 --- haskell98-tutorial-200006.orig/debian/control +++ haskell98-tutorial-200006/debian/control @@ -0,0 +1,18 @@ +Source: haskell98-tutorial +Maintainer: Ian Lynagh (wibble) +Section: doc +Priority: optional +Standards-Version: 3.5.9.0 +Build-Depends-Indep: hugs, flex, debhelper (>= 4), tetex-bin, fakeroot + +Package: haskell98-tutorial +Architecture: all +Recommends: haskell98-report +Suggests: lynx | www-browser +Conflicts: haskell-doc (<= 19991028-3) +Description: A Gentle Introduction to Haskell 98 + The Gentle Introduction is designed to serve as a supplement to the + Haskell 98 Report; it provides a tutorial introduction for someone + who is already familiar with another programming language (preferably + a functional one). + --- haskell98-tutorial-200006.orig/debian/postinst +++ haskell98-tutorial-200006/debian/postinst @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + + --- haskell98-tutorial-200006.orig/debian/rules +++ haskell98-tutorial-200006/debian/rules @@ -0,0 +1,100 @@ +#!/usr/bin/make -f + +# This is the debian/rules file for haskell98-tutorial, based on +# the architecture independent debhelper example file by Joey Hess. + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +PREFIX=`pwd`/debian/`dh_listpackages` +DOCDIR=$(PREFIX)/usr/share/doc/`dh_listpackages` +HTMLDIR=$(DOCDIR)/html +CODEDIR=$(HTMLDIR)/code + +SECTIONS=arrays classes end functions goodies io intro modules \ + monads moretypes numbers patterns pitfalls stdclasses +PARTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 +OTHERCODE=Fringe Tree TreeADT +GIFS=fig1 fig2 title + +build: build-stamp +build-stamp: + dh_testdir + + $(MAKE) verbatim haskell-tutorial.dvi + ./make-html + ./make-html + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + rm -rf html/ + rm -f verbatim tutrefs + rm -f haskell-tutorial.{dvi,log,aux,tex} + for d in $(SECTIONS) ; do rm -f $$d.tex ; done + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -d $(HTMLDIR) + + for d in $(SECTIONS) index indextutorial haskell-tutorial; \ + do install -m 644 html/$$d.html $(HTMLDIR) ; \ + done + + for d in $(GIFS) ; do install -m 644 html/$$d.gif $(HTMLDIR) ; done + + install -d $(CODEDIR) + install -m 644 code/index.html $(CODEDIR) + + for d in $(PARTS) ; \ + do install -m 644 code/part$$d.lhs $(CODEDIR) ; \ + done + + for d in $(OTHERCODE) ; \ + do install -m 644 code/$$d.lhs $(CODEDIR) ; \ + done + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms + dh_installdeb +# dh_perl + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- haskell98-tutorial-200006.orig/debian/postrm +++ haskell98-tutorial-200006/debian/postrm @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + + --- haskell98-tutorial-200006.orig/debian/compat +++ haskell98-tutorial-200006/debian/compat @@ -0,0 +1 @@ +4 --- haskell98-tutorial-200006.orig/debian/copyright +++ haskell98-tutorial-200006/debian/copyright @@ -0,0 +1,30 @@ + +This package was first put together by Antti-Juhani Kaijanaho +. + +On 24 Nov 2002 +* Ian Lynagh took over as Debian maintainer +* Ian Lynagh and Ganesh Sittampalam took over as upstream editors. + +The tutorial was then split off from haskell-doc into this new package. +The source was downloaded from +http://www.haskell.org/tutorial/haskell-98-tutorial-sources.tar.gz +linked off of http://www.haskell.org/tutorial/ + +The following copyright notice applies to it: + +Copyright (C) 1999 Paul Hudak, John Peterson and Joseph Fasel + +Permission is hereby granted, free of charge, to any person obtaining a +copy of "A Gentle Introduction to Haskell" (the Text), to deal in the +Text without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Text, and to permit persons to whom the Text is furnished +to do so, subject to the following condition: The above copyright notice +and this permission notice shall be included in all copies or +substantial portions of the Text. + +All other files in this collection were authored by Antti-Juhani +Kaijanaho, Ian Lynagh and Ganesh Sittampalam and can be treated as if +they were in the public domain. + --- haskell98-tutorial-200006.orig/debian/preinst +++ haskell98-tutorial-200006/debian/preinst @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + --- haskell98-tutorial-200006.orig/debian/prerm +++ haskell98-tutorial-200006/debian/prerm @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + --- haskell98-tutorial-200006.orig/debian/haskell98-tutorial.doc-base +++ haskell98-tutorial-200006/debian/haskell98-tutorial.doc-base @@ -0,0 +1,16 @@ +Document: haskell98-tutorial +Title: A Gentle Introduction to Haskell +Author: Paul Hudak, John Peterson, Joseph Fasel +Abstract: The purpose of this tutorial is not to teach programming, + nor even to teach functional programming. Rather, it is intended to + serve as a supplement to the Haskell Report , which is otherwise a + rather dense technical exposition. Our goal is to provide a gentle + introduction to Haskell for someone who has experience with at least + one other language, preferably a functional language (even if only an + "almost-functional" language such as ML or Scheme). +Section: programming + +Format: HTML +Index: /usr/share/doc/haskell98-tutorial/html/index.html +Files: /usr/share/doc/haskell98-tutorial/html/* + /usr/share/doc/haskell98-tutorial/html/code/*