--- haskell-parsec2-2.1.0.1.orig/debian/rules
+++ haskell-parsec2-2.1.0.1/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+DEB_CABAL_PACKAGE=parsec2
+DEB_HADDOCK_DIR=/usr/share/ghc6-doc/ghc-$(shell ghc --numeric-version)/haddock/parsec2/
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
--- haskell-parsec2-2.1.0.1.orig/debian/watch
+++ haskell-parsec2-2.1.0.1/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\
+filenamemangle=s|(.*)/$|parsec-$1.tar.gz|" \
+ http://hackage.haskell.org/packages/archive/parsec \
+ ([\d\.]*\d)/
--- haskell-parsec2-2.1.0.1.orig/debian/control
+++ haskell-parsec2-2.1.0.1/debian/control
@@ -0,0 +1,60 @@
+Source: haskell-parsec2
+Section: haskell
+Priority: extra
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
+Uploaders: Kari Pahula <kaol@debian.org>
+Standards-Version: 3.8.4
+Build-Depends: debhelper (>= 5),
+ haskell-devscripts (>= 0.7),
+ ghc6,
+ ghc6-prof,
+ ghc6-doc,
+ cdbs
+Homepage: http://legacy.cs.uu.nl/daan/parsec.html
+Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-parsec2
+Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-parsec2
+
+Package: libghc6-parsec2-dev
+Architecture: any
+Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: libghc6-parsec2-prof, libghc6-parsec2-doc
+Provides: libghc6-parsec-dev, ${haskell:Provides}
+Conflicts: libghc6-parsec-dev (<< 3.0.0-5)
+Replaces: libghc6-parsec-dev (<< 3.0.0-5)
+Description: Haskell monadic parser combinator library for GHC
+ This package provides a library for the Haskell programming language.
+ .
+ Parsec is designed from scratch as an industrial-strength parser
+ library. It is simple, safe, well documented, has extensive libraries
+ and good error messages, and is also fast.
+
+Package: libghc6-parsec2-prof
+Architecture: any
+Depends: ${haskell:Depends}, ${misc:Depends}
+Provides: libghc6-parsec-prof, ${haskell:Provides}
+Conflicts: libghc6-parsec-prof (<< 3.0.0-5)
+Replaces: libghc6-parsec-prof (<< 3.0.0-5)
+Description: Haskell monadic parser combinator library for GHC; profiling libraries
+ This package provides a library for the Haskell programming language,
+ compiled for profiling.
+ .
+ Parsec is designed from scratch as an industrial-strength parser
+ library. It is simple, safe, well documented, has extensive libraries
+ and good error messages, and is also fast.
+
+Package: libghc6-parsec2-doc
+Section: doc
+Architecture: all
+Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Recommends: ghc6-doc, libghc6-mtl-doc
+Suggests: libghc6-parsec2-dev
+Provides: libghc6-parsec-doc
+Conflicts: libghc6-parsec-doc (<< 3.0.0-5)
+Replaces: libghc6-parsec-doc (<< 3.0.0-5)
+Description: Haskell monadic parser combinator library for GHC; documentation
+ This package provides the documentation for a library for the Haskell
+ programming language.
+ .
+ Parsec is designed from scratch as an industrial-strength parser
+ library. It is simple, safe, well documented, has extensive libraries
+ and good error messages, and is also fast.
--- haskell-parsec2-2.1.0.1.orig/debian/copyright
+++ haskell-parsec2-2.1.0.1/debian/copyright
@@ -0,0 +1,32 @@
+This package was debianised by Kari Pahula <kaol@debian.org> on
+Sun, 31 May 2009. All of the Debian packaging scripts are released
+into the public domain.
+
+It was downloaded from
+http://hackage.haskell.org/packages/archive/parsec/
+
+-----
+
+Upstream Authors: Daan Leijen <daan@cs.uu.nl>.
+
+Copyright (c) 1999-2001, Daan Leijen.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+This software is provided by the copyright holders "as is" and any express or
+implied warranties, including, but not limited to, the implied warranties of
+merchantability and fitness for a particular purpose are disclaimed. In no
+event shall the copyright holders be liable for any direct, indirect,
+incidental, special, exemplary, or consequential damages (including, but not
+limited to, procurement of substitute goods or services; loss of use, data,
+or profits; or business interruption) however caused and on any theory of
+liability, whether in contract, strict liability, or tort (including
+negligence or otherwise) arising in any way out of the use of this software,
+even if advised of the possibility of such damage.
--- haskell-parsec2-2.1.0.1.orig/debian/compat
+++ haskell-parsec2-2.1.0.1/debian/compat
@@ -0,0 +1 @@
+5
--- haskell-parsec2-2.1.0.1.orig/debian/changelog
+++ haskell-parsec2-2.1.0.1/debian/changelog
@@ -0,0 +1,45 @@
+haskell-parsec2 (2.1.0.1-2) unstable; urgency=low
+
+ [ Marco TĂșlio Gontijo e Silva ]
+ * debian/control: Use more sintetic name for Vcs-Darcs.
+ * 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.
+
+ [ Joachim Breitner ]
+ * Fix double field Provides:
+ * Bump haskell-devscripts dependency to 0.7
+
+ -- Joachim Breitner <nomeata@debian.org> Thu, 11 Feb 2010 22:04:17 +0100
+
+haskell-parsec2 (2.1.0.1-1.1) unstable; urgency=low
+
+ * Remove unnecessary build-dependency on mtl
+ * Adopt for the Haskell Group with maintainer permission. Thanks to kaol for
+ his previous maintenance.
+ * Bump standards version (no change)
+ * Tighten build dependencies
+ * Vcs-Darcs field added
+ * Add watch file (matching 2.* only)
+
+ -- Joachim Breitner <nomeata@debian.org> Fri, 24 Jul 2009 13:02:33 +0200
+
+haskell-parsec2 (2.1.0.1-1) unstable; urgency=low
+
+ * Initial release.
+ * Packaged the old version since 3.x is still regarded immature.
+ * Set to provide, and replace and conflict with earlier versions of
+ libghc6-parsec-*.
+ * Moved .haddock file to avoid conflict with libghc6-parsec3-doc.
+
+ -- Kari Pahula <kaol@debian.org> Sun, 31 May 2009 00:44:27 +0300