debian/0000755000000000000000000000000012151110460007155 5ustar debian/watch0000644000000000000000000000032612036252156010222 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|HaXml-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/HaXml \ ([\d\.]*\d)/ debian/clean0000644000000000000000000000001212036252156010166 0ustar changelog debian/haxml.links0000644000000000000000000000022112036252156011336 0ustar usr/share/man/man1/Xtract.1.gz usr/share/man/man1/XtractLazy.1.gz usr/share/man/man1/Canonicalise.1.gz usr/share/man/man1/CanonicaliseLazy.1.gz debian/rules0000755000000000000000000000044312036252156010251 0ustar #!/usr/bin/make -f # Standard way of building Haskell binary. include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk #build/$(CABAL_PACKAGE) :: changelog build-ghc-stamp # #changelog : docs/changelog.html # html2text -nobs docs/changelog.html > changelog debian/Xtract.10000644000000000000000000000462512036252156010526 0ustar .TH Xtract "1" "October 2007" "Xtract, version 1.17" "User Commands" .SH NAME Xtract, XtractLazy \- structured \(oqgrep\(cq-like programs for XML documents .SH SYNOPSIS .B Xtract .I [ .IR file " ..." ] .br .B XtractLazy .I [ .IR file " ..." ] .SH DESCRIPTION \fBXtract\fP and \fBXtractLazy\fP are structured \(oqgrep\(cq-like programs for XML documents, loosely based on the XPath and XQL query languages. \fBXtract\fP takes an \fIpattern\fP and reads an XML file from a file or from the standard input and extracts information from the XML file and prints it on the standard output. \fBXtractLazy\fP does the same as \fBXtract\fP but uses the lazy parser combinators instead of the normal parser combinators and a such works faster and uses less memory than \fbXtract\fP. .SH COPYRIGHT .TP The HaXml library and tools were written by and are copyright to Copyright \(co 1998 \(en 2006 Malcolm Wallace and Colin Runciman .TP The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace Copyright \(co 1996 Graham Hutton and Erik Meijer .TP with modifications Copyright \(co 1998 \(en 2000 Malcolm Wallace .TP and may also use or incorporate the module Text.PrettyPrint.HughesPJ Copyright \(co 1996 \(en 1997 John Hughes and Simon Peyton Jones .PP The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception: .RS .PP As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with. .RE .PP The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf, are licensed under the terms of the GNU General Public Licence (GPL). .PP This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details. .SH "SEE ALSO" .BR DtdToHaskell (1) .SH AUTHOR This contents of this manual page was copied from the HTML documentation and slightly edited by Arjan Oosting for the Debian system (but may be used by others). debian/Canonicalise.10000644000000000000000000000467712036252156011660 0ustar .TH Canonicalise "1" "October 2007" "Canonicalise, version 1.17" "User Commands" .SH NAME Canonicalise, CanonicaliseLazy \- \(oqcat\(cq filters for XML documents .SH SYNOPSIS .B Canonicalise [ .I file ] .br .B CanonicaliseLazy [ .I file ] .SH DESCRIPTION \fBCanonicalise\fP reads a XML document from a file or from the standard input and parses and pretty-prints the document using the HaXml library. \fBCanonicaliseLazy\fP also reads, parses and pretty-prints the XML document, but parses the document with the lazy parser combinators while \fBCanonicalise\fP uses the non-lazy parser combinators. This causes \fBCanonicaliseLazy\fP to parse to XML document faster and use less memory then \fBCanonicalise\fP. \fBCanonicalise\fP and \fBCanonicaliseLazy\fP show the standard parsing and pretty-printing behaviour of the HaXml library. .SH COPYRIGHT .TP The HaXml library and tools were written by and are copyright to Copyright \(co 1998 \(en 2006 Malcolm Wallace and Colin Runciman .TP The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace Copyright \(co 1996 Graham Hutton and Erik Meijer .TP with modifications Copyright \(co 1998 \(en 2000 Malcolm Wallace .TP and may also use or incorporate the module Text.PrettyPrint.HughesPJ Copyright \(co 1996 \(en 1997 John Hughes and Simon Peyton Jones .PP The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception: .RS .PP As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with. .RE .PP The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf, are licensed under the terms of the GNU General Public Licence (GPL). .PP This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details. .SH "SEE ALSO" .BR DtdToHaskell (1) .SH AUTHOR This contents of this manual page was copied from the HTML documentation and slightly edited by Arjan Oosting for the Debian system (but may be used by others). debian/DtdToHaskell.10000644000000000000000000001153612036252156011602 0ustar .TH DtdToHaskell "1" "October 2007" "DtdToHaskell, version 1.17" "User Commands" .SH NAME DtdToHaskell \- a XML DTD to Haskell translator .SH SYNOPSIS .B DtdToHaskell [ .I dtdfile [ .I outfile ]] .PP Missing file arguments or dashes (\-) indicate standard input or output respectively. . .SH DESCRIPTION DtdToHaskell is a tool for translating any valid XML DTD into equivalent Haskell types. This allows you to generate, edit, and transform documents as normal typed values in programs, and to read and write them as human-readable XML documents. It uses the Text.XML.HaXml.XmlContent class as a framework for printing and parsing. .PP \fBDtdToHaskell\fP reads and parses a DTD from \fIdtdfile\fP (which may be either just a DTD, or a full XML document containing an internal DTD). It generates into \fIoutfile\fP a Haskell module containing a collection of type definitions plus some class instance declarations for I/O. .PP In order to use the resulting module, you need to import it, and also to import Text.XML.HaXml.XmlContent. To read and write XML files as values of the declared types, use some of the convenience functions from XmlContent. .PP You will need to study the automatically-generated type declarations to write your own code using them - but most things have pretty obvious parallels to the DTD structure. .PP . .SH LIMITATIONS The generated Haskell contains references to types like OneOf3 where there is a choice between n (in this case 3) different tags. Currently, the module Text.XML.HaXml.OneOfN defines these types up to n=20. If your DTD requires larger choices, then use the tool \fBMkOneOf\fP to generate the extra size or range of sizes you need. .PP We mangle tag names and attribute names to ensure that they have the correct lexical form in Haskell, but this means that (for instance) we can't distinguish Myname and myname, which are different names in XML but translate to overlapping types in Haskell (and hence probably won't compile). .PP Attribute names translate into named fields: but because Haskell doesn't allow different types to have the same named field, this means your XML document which uses the same name for similar attributes on different tags would crash and burn. We have fixed this by incorporating the tagname into the named field in addition to the attribute name, e.g. tagAttr instead of just attr. Uglier, but more portable. .PP XML namespaces. Currently, we just mangle the namespace identifier into any tag name which uses it. Probably the right way to do it is to regard the namespace as a separate imported module, and hence translate the namespace prefix into a module qualifier. Does this sound about right? (It isn't implemented yet.) .PP External subset. Since HaXml release 1.00, we support the XML DTD external subset. This means we can read and parse a whole bunch of files as part of the same DTD, and we respect INCLUDE and IGNORE conditional sections. The sub-DTD files must be available locally - we don't go looking for them on the web. .PP There are some fringe parts of the DTD we are not entirely sure about, such as Tokenised Types and Notation Types. In particular, there is no validity checking of these external references. If you find a problem, mail us: .br Malcolm.Wallace@cs.york.ac.uk . .SH COPYRIGHT .TP The HaXml library and tools were written by and are copyright to Copyright \(co 1998 \(en 2006 Malcolm Wallace and Colin Runciman .TP The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace Copyright \(co 1996 Graham Hutton and Erik Meijer .TP with modifications Copyright \(co 1998 \(en 2000 Malcolm Wallace .TP and may also use or incorporate the module Text.PrettyPrint.HughesPJ Copyright \(co 1996 \(en 1997 John Hughes and Simon Peyton Jones .PP The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception: .RS .PP As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with. .RE .PP The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf, are licensed under the terms of the GNU General Public Licence (GPL). .PP This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details. . .SH "SEE ALSO" .BR MkOneOf (1), .BR Validate (1) . .SH AUTHOR This contents of this manual page was copied from the HTML documentation and slightly edited by Arjan Oosting for the Debian system (but may be used by others). debian/haxml.install0000644000000000000000000000035112036252156011670 0ustar dist-ghc/build/Canonicalise/Canonicalise usr/bin dist-ghc/build/DtdToHaskell/DtdToHaskell usr/bin dist-ghc/build/MkOneOf/MkOneOf usr/bin dist-ghc/build/Validate/Validate usr/bin dist-ghc/build/Xtract/Xtract usr/bin debian/copyright0000644000000000000000000000453512036252156011132 0ustar This package was debianized by Arjan Oosting on Mon, 7 Feb 2005 18:36:29 +0100. It was downloaded from http://hackage.haskell.org/package/HaXml Copyright: The HaXml library and tools were written by and are copyright to Copyright (c) 1998-2006 Malcolm Wallace and Colin Runciman The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace Copyright (c) 1996 Graham Hutton and Erik Meijer with modifications Copyright (c) 1998-2000 Malcolm Wallace and may also use or incorporate the module Text.PrettyPrint.HughesPJ Copyright (c) 1996-1997 John Hughes and Simon Peyton Jones Upstream Author: Malcolm Wallace License: The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception: ---- As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with. ---- The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf, are licensed under the terms of the GNU General Public Licence (GPL). This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details. If these licensing terms are not acceptable to you, please contact me for negotiation. :-) Malcolm.Wallace@cs.york.ac.uk On Debian systems, the complete text of the GNU Lesser General Public License and the GNU Public License can be respectively found in `/usr/share/common-licenses/LGPL-2.1' and `/usr/share/common-licenses/GPL-2' Debian packaging copyright: (C) 2005-2007 Arjan Oosting The Debian packaging can be redistributed and/or modified under the terms of the GNU Public License version 2. Patches for the HaXml Library and changes to the HaXml Library can be redistributed and/or modified under the same terms as the HaXml Library itself. debian/haxml.manpages0000644000000000000000000000013712036252156012017 0ustar debian/DtdToHaskell.1 debian/Xtract.1 debian/Validate.1 debian/Canonicalise.1 debian/MkOneOf.1 debian/source/0000755000000000000000000000000012036252156010470 5ustar debian/source/format0000644000000000000000000000001412036252156011676 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012036252156010617 5ustar debian/patches/remove-random0000644000000000000000000000105512036252156013316 0ustar Description: remove random from cabal file Remove random from cabal file, as this package is split out of ghc 7.4, and is not actually used by haxml. Author: Joey Hess --- haxml-1.22.5.orig/HaXml.cabal +++ haxml-1.22.5/HaXml.cabal @@ -67,7 +67,7 @@ library hs-source-dirs: src build-depends: polyparse >= 1.5, filepath if flag(splitBase) - build-depends: base >= 3 && < 6, pretty, random, containers + build-depends: base >= 3 && < 6, pretty, containers else build-depends: base < 3 if flag(bytestringInBase) debian/patches/series0000644000000000000000000000001612036252156012031 0ustar remove-random debian/compat0000644000000000000000000000000212147616375010400 0ustar 9 debian/control0000644000000000000000000000574312147621376010613 0ustar Source: haxml Priority: extra Section: haskell Maintainer: Debian Haskell Group Uploaders: Erik de Castro Lopo Build-Depends: debhelper (>= 9), cdbs, haskell-devscripts (>= 0.8.13), ghc, ghc-prof, ghc-doc, libghc-polyparse-dev, libghc-polyparse-prof, libghc-polyparse-doc, html2text, Standards-Version: 3.9.4 Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haxml/ Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haxml Homepage: http://hackage.haskell.org/package/HaXml Package: haxml Architecture: any Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends} Suggests: ${haskell:Suggests} Recommends: libghc-haxml-dev (= ${binary:Version}) Description: utilities for using XML documents with Haskell . HaXml is a collection of utilities for parsing, filtering, transforming, and generating XML documents using Haskell. Its basic facilities include: - a parser for XML, - a separate error-correcting parser for HTML, - an XML validator, - pretty-printers for XML and HTML. . This package contains the HaXml command-line tools. Package: libghc-haxml-dev Architecture: any Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: GHC libraries for using XML documents with Haskell HaXml is a collection of utilities for parsing, filtering, transforming, and generating XML documents using Haskell. Its basic facilities include: - a parser for XML, - a separate error-correcting parser for HTML, - an XML validator, - pretty-printers for XML and HTML. . This package contains the HaXml combinator library for generic XML document processing, including transformation, editing, and generation for use with GHC. Package: libghc-haxml-prof Architecture: any Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: Profiling libraries for the haskell haxml library HaXml is a collection of utilities for parsing, filtering, transforming, and generating XML documents using Haskell. Its basic facilities include: - a parser for XML, - a separate error-correcting parser for HTML, - an XML validator, - pretty-printers for XML and HTML. . This package contains the profiling libraries compiled for GHC. Package: libghc-haxml-doc Architecture: all Section: doc Depends: ${haskell:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: haxml-doc Description: Documentation of HaXml HaXml is a collection of utilities for parsing, filtering, transforming, and generating XML documents using Haskell. Its basic facilities include: - a parser for XML, - a separate error-correcting parser for HTML, - an XML validator, - pretty-printers for XML and HTML. . This package contains the HaXml documentation. debian/changelog0000644000000000000000000005170412151110460011036 0ustar haxml (1:1.23.3-2build1) saucy; urgency=low * Rebuild for new GHC ABIs. -- Colin Watson Tue, 28 May 2013 12:12:48 +0100 haxml (1:1.23.3-2) unstable; urgency=low * Enable compat level 9 -- Joachim Breitner Fri, 24 May 2013 12:52:41 +0200 haxml (1:1.23.3-1) experimental; urgency=low * Depend on haskell-devscripts 0.8.13 to ensure this packages is built against experimental * Bump standards version, no change * New upstream release -- Joachim Breitner Fri, 19 Oct 2012 22:38:42 +0200 haxml (1:1.22.5-2) unstable; urgency=low * Sourceful upload to rebuild documentation package * Remove random from cabal file, as this package is split out of ghc 7.4, and is not actually used by haxml. -- Joey Hess Mon, 27 Feb 2012 19:53:03 -0400 haxml (1:1.22.5-1) unstable; urgency=low * New upstream release -- Joachim Breitner Mon, 13 Feb 2012 21:48:45 +0100 haxml (1:1.20.2-2) unstable; urgency=medium * Remove stray libghc6 reference in control * Standards-Version → 3.9.2, no changes required -- Iain Lane Mon, 06 Jun 2011 09:02:22 +0100 haxml (1:1.20.2-1) unstable; urgency=low [ Marco Túlio Gontijo e Silva ] * control: Remove remaining references to ghc6. * haxml-doc: Change package name and provides to allow versioned dependency on libghc6-haxml-doc. * libghc-haxml-doc.doc-base: Remove file. [ Joachim Breitner ] * New upstream release -- Joachim Breitner Fri, 27 May 2011 16:40:22 +0200 haxml (1:1.13.3-5) unstable; urgency=low [ Marco Silva ] * Use ghc instead of ghc6 -- Joachim Breitner Tue, 05 Apr 2011 22:26:49 +0530 haxml (1:1.13.3-4) unstable; urgency=low * control: haxml-doc: Provides: libghc6-haxml-doc. -- Marco Túlio Gontijo e Silva Thu, 06 May 2010 09:01:23 -0300 haxml (1:1.13.3-3) unstable; urgency=low [ Marco Túlio Gontijo e Silva ] * debian/control: Change Priority: to extra. * debian/watch: Use format that works for --download-current-version. * debian/watch: Add .tar.gz to downloaded filename. * debian/watch: Include package name in downloaded .tar.gz. * debian/watch: Remove spaces, since they're not allowed by uscan. * debian/control: Add field Provides: ${haskell:Provides} to -dev and -prof packages. * debian/control: Use Vcs-Browser: field. * debian/control: Remove dependency in hscolour, since it's now a dependency of haskell-devscripts. * debian/control: Remove haddock from Build-Depends:, since it's now a Depends: of haskell-devscripts. * debian/control: Bump Standards-Version: to 3.8.4, no changes needed. * debian/control: Remove uneeded Build-Depends: in libghc6-base-doc and libghc6-haskell98-doc. [ Joachim Breitner ] * Bump haskell-devscripts dependency to 0.7 * Switch to 3.0 (quilt) version * Clean changelog via debian/clean -- Joachim Breitner Sat, 20 Feb 2010 18:18:25 +0100 haxml (1:1.13.3-1) unstable; urgency=low * Switch back to the latest stable release of haxml, as to not break its reverse build dependencies * Thus do not depend on polyparse, remove patch adjusting the polyparse dependency. * Remove patches/09_fix-lexical-error, does not apply to this version of HaXml -- Joachim Breitner Tue, 15 Sep 2009 16:26:10 +0200 haxml (1.19.7-1) unstable; urgency=low [ Erik de Castro Lopo ] * New upstream release (Closes: 539951, 527987, 464362) * debian/compat version 7. * debian/control: - Make Debian Haskell Group the Maintainer. - Standards version 3.8.3. - Update ghc, haddock version dependencies. - Update debhelper version to prevent lintian warnings. - Add binary package libghc6-haxml-prof. - Remove hugs binary packages. - Section haskell. - Build depend on libghc6-polyparse-dev. * New CDBS/haskell-devscipts based build to replace old debian/rules. * Specify LGPL-2.1 and GPL-2 in debian/copyright. * Point debian/watch at hackage.haskell.org. * Convert dpatch patches to quilt and remove unneeded patches. -- Joachim Breitner Mon, 07 Sep 2009 16:34:41 +0200 haxml (1.17-6) experimental; urgency=low * debian/control: - Use the new Homepage field. * debian/{Canonicalise.1,Xtract.1: - Fix spelling error(s). (Closes: #445070) - Update the dates, versions and my email address. -- Arjan Oosting Tue, 09 Oct 2007 22:59:15 +0200 haxml (1.17-5) experimental; urgency=low * debian/control: - Adjust Xs-Vcs-* fields as the package has moved to the pkg-haskell repository on svn.debian.org. - Add doc-base to the Recommends of haxml-doc. * debian/mk-haskell-depends: - Small cleanups. * Generate links to other API documentation packages: - debian/control: + Add libghc6-base-doc and libghc6-haskell98-doc to the Build-Depends-Indep so haddock can link to names in other packages. + Add libghc6-base-doc and libghc6-haskell98-doc to the Recommends of haskell-http-doc. - debian/patches/10_link-to-other-docs.dpatch + Add the appropriate --use-package options so haddock will link to names in other packages. -- Arjan Oosting Mon, 28 May 2007 17:03:59 +0200 haxml (1.17-4) experimental; urgency=low * Drop the use of diversions to install libhugs-haxml: - debian/control: + Make the dependency hugs versioned so we have a hugs which is splitted into multiple packages. + Add a conflicts against other libhugs-haxml packages. - debian/libhugs-haxml.{preinst.in,postrm.in}: dropped. * debian/mk-haskell-depends: update script to take installed package configuration files as arguments. * debian/rules: - Call mk-haskell-depends with installed package configuration file as argument. - Expose package by default after installation (Closes: #392238) - Enclose paths in double quotes because directories can contain spaces. -- Arjan Oosting Sat, 13 Jan 2007 21:39:32 +0100 haxml (1.17-3) experimental; urgency=low * debian/rules: fix typo which caused HaXml.package.conf to be missing from the binary package. (Closes: #394307) * debian/patches/07_no-hscolour-cmd.dpatch: don't remove the --source-entity and --source-module options as haddock 0.8 is in unstable. * Stop using update-haskell-control and $ghc6_* variables, as it is not necessary and not using it simplifies the work for porters and for me. -- Arjan Oosting Fri, 20 Oct 2006 22:34:59 +0200 haxml (1.17-2) experimental; urgency=low * debian/control.in: - add XS-Vcs-Svn field pointing to subversion archive which contains this package. - replace ${ghc6:Depends} with ${haskell:Depends} which is used by the new debian/mk-haskell-depends script. - change maintainer email address. * debian/rules: - replace debian/mk-ghc6-vars with debian/mk-haskell-depends script which determines all dependencies by using the installed package description file used by ghc-pkg. - redo the way we detect if libghc6-haxml-dev gets build. * debian/patches/03_build-haxml-prof.dpatch: rearranged to make other patches easier. * debian/patches/06_hcflags-support.dpatch: only use -package-name HaXml for library source but not for the tools. This is needed to build the tools with GHC 6.6. -- Arjan Oosting Tue, 17 Oct 2006 03:51:55 +0200 haxml (1.17-1) experimental; urgency=low * New upstream release: - New: lazier pretty-printer Text.XML.HaXml.ShowXmlLazy - Works with ghc-6.6 (changed uses of Data.FiniteMap to Data.Map). * debian/control.in: - add ppc64 to the list of architectures which ghc6 supports. - drop cpphs from the Build-Depends as it is not used. - add dctrl-tools to Build-Depends as we use grep-dctrl in the debian/rules file. * debian/libghc6-haxml-dev.prerm: don't fail it HaXml is not registered. * debian/rules: - only install HaXml.package.conf if we are building libghc6-haxml-dev. - make configure script executable. - remove info about executables and empty lines from HaXml.package.conf. - make sure cpp gets called with the -P flag. * debian/patches/00_fix-makefile.dpatch: removed. Fixed upstream. * debian/patches/10_remove-deprecated-FiniteMap.dpatch: removed. Done upstream. -- Arjan Oosting Thu, 14 Sep 2006 13:13:40 +0200 haxml (1.16-1) experimental; urgency=low * New upstream release. - This is a development version. - Adds a new set of lazy parser combinators which can be used to make a program quicker and make it use less memory. The side-effects are that if an error is found in the document and exception will be thrown and the error messages will be less accurate as with the original parser combinators. - The Xml2Haskell and Haskell2Xml classes are merged into a new XmlContent class. - A SAX like stream parser is added. * Sync Debian packaging with version 1.13.1-2. * debian/{Canonicalise.1,DtdToHaskell.1,MkOneOf.1,Validate.1,Xtract.1}: - update copyright years with info from COPYRIGHT file. - added information for CanonicaliseLazy and XtractLazy. * debian/copyright: - update copyright years with info from COPYRIGHT file. - added Debian packaging copyright notice. * debian/haxml.links: added. Create links for the CanonicalizeLazy and XtractLazy man pages. * debian/patches/07_no-hscolour-cmd.dpatch: added. Do not use HsColour when generating documentation as HsColour is not packaged for Debian. -- Arjan Oosting Fri, 14 Jul 2006 23:10:48 +0200 haxml (1.13.1-2) unstable; urgency=low * debian/patches/04_no-hugs-package-cmd.dpatch: fix bashism in this patch. (thanks John Goerzen). * debian/rules: install the linda override file for libhugs-haxml in the right location. -- Arjan Oosting Thu, 6 Jul 2006 11:34:14 +0200 haxml (1.13.1-1) unstable; urgency=low * New upstream release. - Bugfix to permit percent character in attribute values. - Bugfix to parse unquoted attribute values starting '+' or '#' in HTML. - Bugfix to keep the original DTD in output of 'processXmlWith'. * First upload to the Debian archive (Closes: #310920) * debian/control.in: - Add libhugs-haxml entry again. * debian/libhugs-haxml.preinst.in: added. Divert HaXml library files shipped with Hugs until Hugs drops the HaXml library. * debian/libhugs-haxml.postrm.in: added. Remove diversions when libhugs-haxml is removed. * debian/rules: - switch from CDBS + simple-patchsys to simple debhelper + dpatch. - remove --buildwith flag to enable build of the Hugs library. * debian/patches: convert all patches to dpatch patch files. * debian/patches/07_redirect-haddock-output: dropped. Use dh_installdocs instead to install the API documentation. * debian/patches/09_correct-version.patch: dropped. The version number in the Makefile is correct now. -- Arjan Oosting Thu, 6 Jul 2006 02:07:50 +0200 haxml (1.13-17) unstable; urgency=low * debian/copyright: added Debian packaging copyright notice. * debian/haxml-doc.doc-base: adjust to Index to the right index page. -- Arjan Oosting Wed, 5 Jul 2006 23:10:00 +0200 haxml (1.13-16) unstable; urgency=low * debian/control.in.in: - Use the new substitution variables binary:Version and source:Version and build depend on dpkg-dev (>= 1.13.19) which introduces these new variables. - Drop build dependency on ghc6 which is already pulled in by the build dependency on ghc6-prof. - Upgrade to policy version 3.7.2. No changes needed -- Arjan Oosting Mon, 8 May 2006 17:59:29 +0200 haxml (1.13-15) unstable; urgency=low * Backport some packaging updates, and cleanup source package. * Remove support for building nhc98 libraries, because it is removed from the archive. * debian/rules: - generate dependencies on ghc6 during build to make a (bin-)NMU easier. - cleanup mess from earlier packaging. - make sure targets only run once during build. * debian/control.in.in: loosen dependencies to make a bin-NMU easier. * debian/mk-ghc6-vars: added to generate ghc6:Depends substitution variable. * debian/changelog: fix some spelling mistakes. -- Arjan Oosting Tue, 11 Apr 2006 18:43:13 +0200 haxml (1.13-14) unstable; urgency=low * debian/rules: install more with debhelper. * Do not compress .dtd files in the examples. * Updated man pages to Branden Robinson's recommendations. * Don't install the README which does not contain useful information for us. * debian/patches/08_update-licences.patch: added. The FSF has a new address. -- Arjan Oosting Mon, 15 Aug 2005 18:30:00 +0200 haxml (1.13-13) unstable; urgency=low * Don't build libnhc98-haxml-dev and libhugs-haxml just yet. Wait until HaXml is removed from hugs and nhc98. * Ready for upload to Debian archive. (Closes: #310920) -- Arjan Oosting Thu, 30 Jun 2005 22:16:01 +0200 haxml (1.13-12) unstable; urgency=low * Ship LICENCE-GPL and LICENCE-LGPL again in haxml-doc, because /usr/share/common-licenses is not available when using an web server. * debian/patches/02_change-references.patch: updated. * debian/haxml-doc.doc-base: added. Register HaXml documentation. -- Arjan Oosting Thu, 30 Jun 2005 17:35:32 +0200 haxml (1.13-11) unstable; urgency=low * Remove the COPYRIGHT, LICENSE-GPL and LICENSE-LGPL files from the haxml-doc binary. * debian/haxml-doc.linda-overrides: not longer necessary. * debian/02_refercompress.patch renamed to debian/patches/02_change- refernces.patch and changes references to COPYRIGHT, LICENCE-GPL and LICENCE-LGPL to respectively copyright, ../common-licenses/GPL and ../common-licenses/LGPL. * debian/patches/04_no-hugs-package-cmd.patch: updated to install the hugs library in the right place. * debian/rules: install examples in usr/share/doc/haxml-doc/examples. * debian/patches/07_redirect-haddock-output.patch, debian/rules: also link API documentation with haskell98 API documentation. -- Arjan Oosting Thu, 30 Jun 2005 14:59:53 +0200 haxml (1.13-10) unstable; urgency=low * Changes in this version: - Install the libraries for nhc98 and hugs in the same place as the original libraries included with nhc98 and hugs. Note that libnhc98-haxml-dev and libhugs-haxml can't be installed until debian packages of nhc98 and hugs stop shipping HaXml. - Build libraries and binaries with -01 and honor DEB_BUILD_OPTIONS=noopt. - libnhc98-haxml-dev now supports heap and time profiling. - The HaXml API documentation in haxml-doc links to the Haskell base API documentation from ghc6-doc. * debian/patches/00_destdir.patch: updated. * debian/patches/01_configure_typo.patch: fix a typo in the configure script. * debian/patches/03_build-haxml-prof.patch: also build HaXml with profiling for nhc98. * debian/patches/04_no-hugs-package-cmd.patch: updated. Install library in /usr/lib/hugs/packages and do not install Text/PrettyPrint/HughesPJ.hs. * debian/patches/05_no-harch-cmd.patch: updated. * debian/patches/06_include-extra-objs.patch: removed. * debian/patches/06_hcflags_support.patch: add support for HCFLAGS. * debian/rules: use HCFLAGS to create optimized libraries and binaries. * New Standard-Version 3.6.2. No changes needed. * debian/patches/07_redirect-haddock-output.patch: added. Keeps original source clean (and diff.gz small). * debian/control.in.in: let the library packages recommend HaXml in stead of depending on it. * debian/control.in.in: add Replaces: hugs to libhugs-haxml as it replaces the HaXml package included in Hugs. * debian/control.in.in: add Replaces: nhc98 to libnhc98-haxml-dev as it replaces the HaXml package included in nhc98. -- Arjan Oosting Thu, 30 Jun 2005 02:16:05 +0200 haxml (1.13-9) unstable; urgency=low * debian/rules: added update-haskell-control target to update /debian/control. * Disable DEB_AUTO_UPDATE_DEBIAN_CONTROL. Updating debian/control during regular builds is considered bad feature of cdbs. The update-debian-control target of debian/rules can be used to update debian/control. -- Arjan Oosting Sun, 5 Jun 2005 03:36:57 +0200 haxml (1.13-8) unstable; urgency=low * debian/patches/04_no-hugs-package-cmd.patch: use cpp to install haskell library. * debian/control.in.in: added. Use update-haskell-control to generate GHC and NHC98 (build) dependencies. * debian/rules: added update-haskell-control --check to verify consistency between debian/control.in.in and debian/control.in -- Arjan Oosting Sat, 4 Jun 2005 16:43:12 +0200 haxml (1.13-7) unstable; urgency=low * Rebuild for unstable. -- Arjan Oosting Fri, 27 May 2005 01:40:13 +0200 haxml (1.13-6) testing; urgency=low * debian/haxml.manpages: added man pages for all the binaries. * debian/rules: disable DEB_AUTO_UPDATE_DEBIAN_CONTROL. * debian/haxml-doc.linda-overrides: don't complain about the extra license files which are used in the documentation. * debian/rules: install linda overrides. * debian/libhugs-haxml.dirs, debian/haxml-doc.dirs: create linda overrides directory. -- Arjan Oosting Fri, 27 May 2005 01:00:19 +0200 haxml (1.13-5) unstable; urgency=low * Fix debian/rules; spaces are no tabs... -- Arjan Oosting Mon, 16 May 2005 02:43:47 +0200 haxml (1.13-4) unstable; urgency=low * Rebuild for unstable. -- Arjan Oosting Sun, 15 May 2005 06:23:45 +0200 haxml (1.13-3) testing; urgency=low * debian/patches/06_include-extra-objs.patch: nhc98 does not ship Text.PrettyPrinting.HughesPJ so include it in the archive. * debian/patches/02_refercompress.patch: updated. * debian/rules: (re)make documentation with haddock. -- Arjan Oosting Sun, 15 May 2005 06:00:45 +0200 haxml (1.13-2) testing; urgency=low * debian/libghc6-haxml-dev.postinst, debian/libghc6-haxml-dev.prerm, debian/rules: added support for ghc 6.4. -- Arjan Oosting Sun, 15 May 2005 02:49:01 +0200 haxml (1.13-1) testing; urgency=low * New upstream release. - Bug fixes to the document validator: no more infinite loops. - Bug fixes to lexing mixed text and references between quote chars. - Updated to work with ghc-6.4's new package mechanism. * Change from tarball-in-tarball packaging to normal upstream is orig.tar.gz packaging. * debian/libhugs-haxml.linda-overrides: ignore linda warning about files in /usr/lib in Architecture: all package libhugs-haxml. * debian/patches: updated to new upstream. * debian/control.in: Make libnhc98-haxml-dev architecture all again. * debian/watch: added watch file. -- Arjan Oosting Sun, 15 May 2005 01:53:08 +0200 haxml (1.12-5) unstable; urgency=low * debian/patches/03_build-haxml-prof.patch: add an profiled HaXml library. * debian/patches/04_no-hugs-package-cmd.patch: hugs-package does not exits, use cp -a instead. * debian/control.in: added ghc6-prof to build-depends. * debian/patches/05-no-harch-cmd.patch: harch is not available in Debian. * debian/control.in: only build libnhc98-haxml-dev for i386. -- Arjan Oosting Sun, 17 Apr 2005 06:41:14 +0200 haxml (1.12-4) unstable; urgency=low * debian/control.in: - move package haxml-doc to section doc. - correct Suggest of haxml. - correct Depends of libghc6-haxml-dev * debian/TODO: added. -- Arjan Oosting Thu, 10 Feb 2005 09:06:38 +0100 haxml (1.12-3) unstable; urgency=low * debian/patches/01_commonlicense.patch: removed * debian/rules: do not compress license files. * debian/haxml-doc.docs.in: copy license files. -- Arjan Oosting Tue, 8 Feb 2005 21:51:40 +0100 haxml (1.12-2) unstable; urgency=low * debian/patches/01_commonlicense.patch: fixed small error. * debian/patches/02_refercompress.patch: fixed typo. -- Arjan Oosting Tue, 8 Feb 2005 20:56:15 +0100 haxml (1.12-1) unstable; urgency=low * Initial Release. * debian/patches/00_destdir.patch: added support for DESTDIR in Makefile. * debian/patches/01_commonlicense.patch: change references to license files to license files in /usr/share/doc/common-licences. * debian/patches/02_refercompress.patch: change some references in index.html to references to compressed files for files which dh_compress compresses. -- Arjan Oosting Mon, 7 Feb 2005 18:36:29 +0100 debian/MkOneOf.10000644000000000000000000000600212036252156010546 0ustar .TH MkOneOf "1" "October 2007" "MkOneOf, version 1.17" "User Commands" .SH NAME MkOneOf \- a helper program to use with DtdToHaskell .SH SYNOPSIS .B MkOneOf n [m] .SH DESCRIPTION \fBDtdToHaskell\fP translates XML DTD into equivalent Haskell types. When there is a choice between different tags, \fBDtdToHaskell\fP uses types like OneOf2, OneOf3, OneOf4, etc. The module Text.XML.HaXml.OneOfN currently defines these types up OneOf20. If your DTD requires larger choices, you can use this program to generate them. .PP \fBMkOneOf\fP takes an integer \fBN\fP or an integer range \fBN M\fP and writes to the standard output a Haskell module with respectively the datatype OneOf\fBN\fP or the datatypes OneOf\fBN\fP up to and including OneOf\fBM\fP. .SH EXAMPLES If we run "MkOneOf 1 2", the program will print .nf module Text.XML.HaXml.OneOfN where import Text.XML.HaXml.Xml2Haskell data OneOf1 a = OneOf1 a deriving (Eq,Show) instance (XmlContent a) => XmlContent (OneOf1 a) where fromElem cs = (choice OneOf1 $ (\c->(Nothing,c))) cs toElem (OneOf1 x) = toElem x ---- data OneOf2 a b = OneOf2 a | TwoOf2 b deriving (Eq,Show) instance (XmlContent a,XmlContent b) => XmlContent (OneOf2 a b) where fromElem cs = (choice OneOf2 $ choice TwoOf2 $ (\c->(Nothing,c))) cs toElem (OneOf2 x) = toElem x toElem (TwoOf2 x) = toElem x ---- .fi .SH COPYRIGHT .TP The HaXml library and tools were written by and are copyright to Copyright \(co 1998 \(en 2006 Malcolm Wallace and Colin Runciman .TP The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace Copyright \(co 1996 Graham Hutton and Erik Meijer .TP with modifications Copyright \(co 1998 \(en 2000 Malcolm Wallace .TP and may also use or incorporate the module Text.PrettyPrint.HughesPJ Copyright \(co 1996 \(en 1997 John Hughes and Simon Peyton Jones .PP The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception: .RS .PP As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with. .RE .PP The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf, are licensed under the terms of the GNU General Public Licence (GPL). .PP This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details. .SH "SEE ALSO" .BR DtdToHaskell (1) .SH AUTHOR This contents of this manual page was copied from the HTML documentation and slightly edited by Arjan Oosting for the Debian system (but may be used by others). debian/libghc-haxml-doc.examples0000644000000000000000000000001512036252156014026 0ustar ./examples/* debian/Validate.10000644000000000000000000000371412036252156011010 0ustar .TH Validate "1" "October 2007" "Validate, version 1.17" "User Commands" .SH NAME Validate \- simple validation tool for XML documents .SH SYNOPSIS .B Validate .I dtdfile .I xmlfile .SH DESCRIPTION Validate is a simple validation tool for XML documents, which validates the XML file using the DTD file and reports all the errors it can find. .SH COPYRIGHT .TP The HaXml library and tools were written by and are copyright to Copyright \(co 1998 \(en 2006 Malcolm Wallace and Colin Runciman .TP The library incorporates the module Text.ParserCombinators.HuttonMeijerWallace Copyright \(co 1996 Graham Hutton and Erik Meijer .TP with modifications Copyright \(co 1998 \(en 2000 Malcolm Wallace .TP and may also use or incorporate the module Text.PrettyPrint.HughesPJ Copyright \(co 1996 \(en 1997 John Hughes and Simon Peyton Jones .PP The HaXml library is licensed under the terms of the GNU Lesser General Public Licence (LGPL), with the following special exception: .RS .PP As a relaxation of clause 6 of the LGPL, the copyright holders of this library give permission to use, copy, link, modify, and distribute, binary-only object-code versions of an executable linked with the Library, without requiring the supply of any mechanism to modify or replace the Library and relink (clauses 6a, 6b, 6c, 6d, 6e), provided that all the other terms of clause 6 are complied with. .RE .PP The HaXml tools Xtract, Validate, DtdToHaskell, and MkOneOf, are licensed under the terms of the GNU General Public Licence (GPL). .PP This library and toolset is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Licences for more details. .SH "SEE ALSO" .BR DtdToHaskell (1) .SH AUTHOR This contents of this manual page was copied from the HTML documentation and slightly edited by Arjan Oosting for the Debian system (but may be used by others).