Date: Saturday, May 14, 2022 @ 05:24:40 Author: felixonmars Revision: 1203260
upgpkg: haskell-ixset-typed 0.5.1.0-1: rebuild with ixset-typed 0.5.1.0 Modified: haskell-ixset-typed/trunk/PKGBUILD Deleted: haskell-ixset-typed/trunk/ghc9.patch ------------+ PKGBUILD | 14 ++++---------- ghc9.patch | 54 ------------------------------------------------------ 2 files changed, 4 insertions(+), 64 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-05-14 05:21:59 UTC (rev 1203259) +++ PKGBUILD 2022-05-14 05:24:40 UTC (rev 1203260) @@ -2,8 +2,8 @@ _hkgname=ixset-typed pkgname=haskell-ixset-typed -pkgver=0.5 -pkgrel=260 +pkgver=0.5.1.0 +pkgrel=1 pkgdesc="Efficient relational queries on Haskell sets" url="https://hackage.haskell.org/package/${_hkgname}" license=('BSD') @@ -11,15 +11,9 @@ depends=('ghc-libs' 'haskell-safecopy' 'haskell-syb') makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck') -source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz - ghc9.patch) -sha512sums=('0f25a540835805cdea68b46de5956afa887172cf16135f7d13e1c1f59e750652defae74d3ecebdacdb606ddf3bdc515c370e0b57f7ada21e3aa3f6e1b62fe582' - '4febefe2d34337482033ad4bfb28ec037323b176127e4a015244d630f8c5071a685d967a633cf64016865b095eb8f473abd5ec829bdf51c431e00ccd478abb0a') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('af14bad6b5e6dad55390cf8f70653279cdbb4ec909d0a0812e54bec72678acb2deb7ba9a1c26afbea199ddf1d9c36b739e83e0ca96bdbfbf33a18136428b3ca4') -prepare() { - patch -d $_hkgname-$pkgver -p1 < ghc9.patch -} - build() { cd $_hkgname-$pkgver Deleted: ghc9.patch =================================================================== --- ghc9.patch 2022-05-14 05:21:59 UTC (rev 1203259) +++ ghc9.patch 2022-05-14 05:24:40 UTC (rev 1203260) @@ -1,54 +0,0 @@ -commit fb8a9ae632ae7685e7fe9e1f9024b22f2e980b4a -Author: Felix Yan <[email protected]> -Date: Tue Jun 22 09:59:29 2021 +0800 - - Add support for template-haskell 2.17 - -diff --git a/ixset-typed.cabal b/ixset-typed.cabal -index 458577b..43c784c 100644 ---- a/ixset-typed.cabal -+++ b/ixset-typed.cabal -@@ -38,7 +38,7 @@ library - deepseq >= 1.3 && < 2, - safecopy >= 0.8 && < 0.11, - syb >= 0.4 && < 1, -- template-haskell >= 2.8 && < 2.17 -+ template-haskell >= 2.8 && < 2.18 - - hs-source-dirs: src - exposed-modules: -diff --git a/src/Data/IxSet/Typed.hs b/src/Data/IxSet/Typed.hs -index 75be66d..fc628ea 100644 ---- a/src/Data/IxSet/Typed.hs -+++ b/src/Data/IxSet/Typed.hs -@@ -594,7 +594,13 @@ inferIxSet ixset typeName calName entryPoints - getCalType t' = error ("Unexpected type in getCalType: " ++ pprint t') - -} - mkEntryPoint n = (conE 'Ix) `appE` -- (sigE (varE 'Map.empty) (forallT binders (return context) $ -+ (sigE (varE 'Map.empty) (forallT -+#if MIN_VERSION_template_haskell(2,17,0) -+ (map (SpecifiedSpec <$) binders) -+#else -+ binders -+#endif -+ (return context) $ - appT (appT (conT ''Map) (conT n)) - (appT (conT ''Set) typeCon))) `appE` - (varE 'flattenWithCalcs `appE` varE calName) -@@ -610,9 +616,15 @@ inferIxSet ixset typeName calName entryPoints - return $ [i, ixType'] -- ++ d - _ -> error "IxSet.inferIxSet calInfo unexpected match" - -+#if MIN_VERSION_template_haskell(2,17,0) -+tyVarBndrToName :: TyVarBndr () -> Name -+tyVarBndrToName (PlainTV nm _) = nm -+tyVarBndrToName (KindedTV nm _ _) = nm -+#else - tyVarBndrToName :: TyVarBndr -> Name - tyVarBndrToName (PlainTV nm) = nm - tyVarBndrToName (KindedTV nm _) = nm -+#endif - - -- | Generically traverses the argument to find all occurences of - -- values of type @b@ and returns them as a list.
