debian/0000755000000000000000000000000012234763055007175 5ustar debian/copyright0000644000000000000000000000400412036250342011114 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: Haskell support for XML in source code Upstream-Contact: Niklas Broberg Source: http://hackage.haskell.org/package/hsx Files: * Copyright: © 2004-2009, Niklas Broberg License: BSD All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. 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. . 3. Neither the name of the author nor the names of his contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``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 AUTHORS OR CONTRIBUTORS 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. Files: debian/* Copyright: © 2010-2012, Giovanni Mascellani License: GPL-3+ The Debian packaging information is under the GPL, version 3 or later. On Debian GNU/Linux systems, the complete text of the GNU General Public License Version 3 can be found in `/usr/share/common-licenses/GPL-3'. debian/watch0000644000000000000000000000017112224036527010221 0ustar version=3 http://hackage.haskell.org/package/hsx/distro-monitor .*-([0-9\.]+).(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian/compat0000644000000000000000000000000212147616224010371 0ustar 9 debian/patches/0000755000000000000000000000000012234763055010624 5ustar debian/patches/series0000644000000000000000000000002012234763055012031 0ustar fix-ftbfs.patch debian/patches/fix-ftbfs.patch0000644000000000000000000001061112234763055013534 0ustar Description: Fix FTBFS This patch fix a FTBFS when trying to build this haskell-hsx against haskell-src-exts >= 1.14. It is heavily based on patch for the package haskell-hsx2hs: http://hub.darcs.net/nibro/hsx2hs/patch/20130927224058-91e9f Author: Raúl Benencia --- a/src/HSX/Transform.hs +++ b/src/HSX/Transform.hs @@ -348,7 +348,7 @@ App e1 e2 -> transform2exp e1 e2 App NegApp e -> fmap NegApp $ transformExpM e If e1 e2 e3 -> transform3exp e1 e2 e3 If - Tuple es -> fmap Tuple $ mapM transformExpM es + Tuple bx es -> fmap (Tuple bx) $ mapM transformExpM es List es -> fmap List $ mapM transformExpM es Paren e -> fmap Paren $ transformExpM e LeftSection e op -> do e' <- transformExpM e @@ -692,7 +692,7 @@ (\p1 p2 -> PInfixApp p1 n p2) renameRP PApp n ps -> renameNpat ps (PApp n) renameRP - PTuple ps -> renameNpat ps PTuple renameRP + PTuple bx ps -> renameNpat ps (PTuple bx) renameRP PList ps -> renameNpat ps PList renameRP PParen p -> rename1pat p PParen renameRP PRec n pfs -> renameNpat pfs (PRec n) renameRPf @@ -756,7 +756,7 @@ (\p1 p2 -> PInfixApp p1 n p2) renameIrrP PApp n ps -> renameNpat ps (PApp n) renameIrrP - PTuple ps -> renameNpat ps PTuple renameIrrP + PTuple bx ps -> renameNpat ps (PTuple bx) renameIrrP PList ps -> renameNpat ps PList renameIrrP PParen p -> rename1pat p PParen renameIrrP PRec n pfs -> renameNpat pfs (PRec n) renameIrrPf @@ -984,7 +984,7 @@ PNeg q -> tr1pat q PNeg (trPattern s) PInfixApp p1 op p2 -> tr2pat p1 p2 (\p1 p2 -> PInfixApp p1 op p2) (trPattern s) PApp n ps -> trNpat ps (PApp n) (trPattern s) - PTuple ps -> trNpat ps PTuple (trPattern s) + PTuple bx ps -> trNpat ps (PTuple bx) (trPattern s) PList ps -> trNpat ps PList (trPattern s) PParen p -> tr1pat p PParen (trPattern s) PRec n pfs -> trNpat pfs (PRec n) (trPatternField s) @@ -1481,7 +1481,7 @@ PInfixApp p1 _ p2 -> gatherPVars p1 ++ gatherPVars p2 PApp _ ps -> concatMap gatherPVars ps - PTuple ps -> concatMap gatherPVars ps + PTuple _ ps -> concatMap gatherPVars ps PList ps -> concatMap gatherPVars ps PParen p -> gatherPVars p PRec _ pfs -> concatMap help pfs --- a/src/Trhsx.hs +++ b/src/Trhsx.hs @@ -64,14 +64,15 @@ transform $ checkParse $ parse fp fc parse :: String -> String -> ParseResult Module -parse fn fc = parseModuleWithMode (ParseMode fn allExtensions False True (Just baseFixities)) fcuc +parse fn fc = parseModuleWithMode (ParseMode fn Haskell2010 allExtensions False True (Just baseFixities)) fcuc where fcuc= unlines $ filter (not . isPrefixOf "#") $ lines fc usageString :: String usageString = "Usage: trhsx []" -allExtensions = [RecursiveDo,ParallelListComp,MultiParamTypeClasses,FunctionalDependencies,RankNTypes,ExistentialQuantification, - ScopedTypeVariables,ImplicitParams,FlexibleContexts,FlexibleInstances,EmptyDataDecls,KindSignatures, - BangPatterns,TemplateHaskell,ForeignFunctionInterface,Arrows,Generics,NamedFieldPuns,PatternGuards, - MagicHash,TypeFamilies,StandaloneDeriving,TypeOperators,RecordWildCards,GADTs,UnboxedTuples, - PackageImports,QuasiQuotes,TransformListComp,ViewPatterns,XmlSyntax,RegularPatterns] +allExtensions = map EnableExtension + [RecursiveDo,ParallelListComp,MultiParamTypeClasses,FunctionalDependencies,RankNTypes,ExistentialQuantification, + ScopedTypeVariables,ImplicitParams,FlexibleContexts,FlexibleInstances,EmptyDataDecls,KindSignatures, + BangPatterns,TemplateHaskell,ForeignFunctionInterface,Arrows,Generics,NamedFieldPuns,PatternGuards, + MagicHash,TypeFamilies,StandaloneDeriving,TypeOperators,RecordWildCards,GADTs,UnboxedTuples, + PackageImports,QuasiQuotes,TransformListComp,ViewPatterns,XmlSyntax,RegularPatterns] debian/control0000644000000000000000000000515212150230134010563 0ustar Source: haskell-hsx Priority: extra Section: haskell Maintainer: Debian Haskell Group Uploaders: Giovanni Mascellani Build-Depends: debhelper (>= 9), haskell-devscripts, cdbs, ghc, ghc-prof, libghc-mtl-dev, libghc-mtl-prof, libghc-src-exts-dev (>= 1.13), libghc-src-exts-prof , libghc-utf8-string-dev, libghc-utf8-string-prof Build-Depends-Indep: ghc-doc, libghc-mtl-doc, libghc-src-exts-doc (>= 1.13), libghc-utf8-string-doc Standards-Version: 3.9.4 Homepage: http://hackage.haskell.org/package/hsx Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hsx Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-hsx Package: libghc-hsx-dev Architecture: any Depends: ${haskell:Depends}, ${misc:Depends}, ${shlibs:Depends} Suggests: ${haskell:Suggests} Recommends: ${haskell:Recommends} Provides: ${haskell:Provides} Breaks: libghc6-hsx-dev (<< 1:0) Replaces: libghc6-hsx-dev (<< 1:0) Description: Haskell support for XML in source code${haskell:ShortBlurb} HSX (Haskell Source with XML) allows literal XML syntax to be used in Haskell source code. The trhsx preprocessor translates .hsx source files into ordinary .hs files. Literal XML syntax is translated into function calls for creating XML values of the appropriate forms. trhsx transforms literal XML syntax into a series of function calls. . ${haskell:Blurb} Package: libghc-hsx-prof Architecture: any Depends: ${haskell:Depends}, ${misc:Depends} Suggests: ${haskell:Suggests} Recommends: ${haskell:Recommends} Provides: ${haskell:Provides} Description: Haskell support for XML in source code${haskell:ShortBlurb} HSX (Haskell Source with XML) allows literal XML syntax to be used in Haskell source code. The trhsx preprocessor translates .hsx source files into ordinary .hs files. Literal XML syntax is translated into function calls for creating XML values of the appropriate forms. trhsx transforms literal XML syntax into a series of function calls. . ${haskell:Blurb} Package: libghc-hsx-doc Section: doc Architecture: all Depends: ${haskell:Depends}, ${misc:Depends} Suggests: ${haskell:Suggests} Recommends: ${haskell:Recommends} Description: Haskell support for XML in source code${haskell:ShortBlurb} HSX (Haskell Source with XML) allows literal XML syntax to be used in Haskell source code. The trhsx preprocessor translates .hsx source files into ordinary .hs files. Literal XML syntax is translated into function calls for creating XML values of the appropriate forms. trhsx transforms literal XML syntax into a series of function calls. . ${haskell:Blurb} debian/rules0000755000000000000000000000015512036250342010244 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk debian/changelog0000644000000000000000000000522512234763055011053 0ustar haskell-hsx (0.10.4-3) unstable; urgency=low [ Joachim Breitner ] * Fix Vcs-Darcs url: http://darcs.debian.org/ instead of http://darcs.debian.org/darcs/ * Adjust watch file to new hackage layout [ Raúl Benencia ] * Fix FTBFS when building against haskell-src-exts >= 1.14.0 -- Raúl Benencia Thu, 31 Oct 2013 17:21:49 -0300 haskell-hsx (0.10.4-2) unstable; urgency=low * Enable compat level 9 * Use substvars for Haskell description blurbs -- Joachim Breitner Fri, 24 May 2013 12:51:03 +0200 haskell-hsx (0.10.4-1) experimental; urgency=low * New upstream release -- Joachim Breitner Sun, 02 Dec 2012 22:02:24 +0100 haskell-hsx (0.10.2-1) experimental; urgency=low [ Giovanni Mascellani ] * New upstream release. * Fix a few lintian warnings. * Update years in debian/copyright. * Bump Standards-Version to 3.9.3 (no changes required). * Update dependencies versions. [ Joachim Breitner ] * Bump standards version, no change -- Joachim Breitner Sun, 14 Oct 2012 12:01:12 +0200 haskell-hsx (0.9.1-3) unstable; urgency=low * Breaks and Replaces libghc6-hsx-dev (Closes: #677577) -- Joachim Breitner Fri, 15 Jun 2012 10:06:21 +0200 haskell-hsx (0.9.1-2) unstable; urgency=low * Sourceful upload to rebuild documentation package -- Iain Lane Thu, 23 Feb 2012 11:13:38 +0000 haskell-hsx (0.9.1-1) unstable; urgency=low * New upstream release -- Joachim Breitner Fri, 17 Jun 2011 10:36:12 +0200 haskell-hsx (0.9.0-1) unstable; urgency=low [ Marco Silva ] * Use ghc instead of ghc6 [ Giovanni Mascellani ] * Updated my email address. * New upstream release. * Removing doc-base files because of team policy. * Description: removing references to GHC 6. * debian/copyright: copyright years updated. * Standards-Version bumped to 3.9.1 (no changes required). * Updated some dependency versions. -- Giovanni Mascellani Wed, 20 Apr 2011 18:40:02 +0200 haskell-hsx (0.7.0-1) unstable; urgency=low * New upstream release. -- Giovanni Mascellani Mon, 24 May 2010 15:44:55 +0200 haskell-hsx (0.6.2-2) unstable; urgency=low * Installing trhsx. (closes: #581917) -- Giovanni Mascellani Fri, 21 May 2010 23:55:52 +0200 haskell-hsx (0.6.2-1) unstable; urgency=low [ Giovanni Mascellani ] * Initial release. (closes: #569508) [ Joachim Breitner ] * Add haskell Provides: substvars -- Giovanni Mascellani Tue, 06 Apr 2010 14:44:06 +0200 debian/source/0000755000000000000000000000000012036250342010463 5ustar debian/source/format0000644000000000000000000000001412036250342011671 0ustar 3.0 (quilt) debian/libghc-hsx-dev.install0000644000000000000000000000005212036250342013354 0ustar debian/tmp-inst-ghc/usr/bin/trhsx usr/bin