[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-12-18 Thread Felix Yan via arch-commits
Date: Sunday, December 19, 2021 @ 01:37:41
  Author: felixonmars
Revision: 1078110

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1078109, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1078109, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1078109, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-12-19 01:37:41 UTC (rev 1078110)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=393
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1078109, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-12-19 01:37:41 UTC (rev 1078110)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-12-16 Thread Felix Yan via arch-commits
Date: Thursday, December 16, 2021 @ 12:48:03
  Author: felixonmars
Revision: 1074401

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1074400, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1074400, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1074400, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-12-16 12:48:03 UTC (rev 1074401)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=392
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1074400, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-12-16 12:48:03 UTC (rev 1074401)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-12-13 Thread Felix Yan via arch-commits
Date: Monday, December 13, 2021 @ 17:03:54
  Author: felixonmars
Revision: 1071971

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1071970, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1071970, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1071970, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-12-13 17:03:54 UTC (rev 1071971)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=391
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1071970, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-12-13 17:03:54 UTC (rev 1071971)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-12-11 Thread Felix Yan via arch-commits
Date: Sunday, December 12, 2021 @ 06:27:30
  Author: felixonmars
Revision: 1068747

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1068746, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1068746, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1068746, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-12-12 06:27:30 UTC (rev 1068747)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=390
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1068746, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-12-12 06:27:30 UTC (rev 1068747)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-29 Thread Felix Yan via arch-commits
Date: Monday, November 29, 2021 @ 08:24:27
  Author: felixonmars
Revision: 1056611

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1056610, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1056610, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1056610, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-29 08:24:27 UTC (rev 1056611)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=389
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1056610, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-29 08:24:27 UTC (rev 1056611)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-18 Thread Felix Yan via arch-commits
Date: Thursday, November 18, 2021 @ 22:15:10
  Author: felixonmars
Revision: 1052648

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1052647, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1052647, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1052647, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-18 22:15:10 UTC (rev 1052648)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=388
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1052647, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-18 22:15:10 UTC (rev 1052648)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-17 Thread Felix Yan via arch-commits
Date: Wednesday, November 17, 2021 @ 15:10:52
  Author: felixonmars
Revision: 1050179

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1050178, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1050178, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1050178, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-17 15:10:52 UTC (rev 1050179)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=387
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1050178, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-17 15:10:52 UTC (rev 1050179)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-14 Thread Felix Yan via arch-commits
Date: Monday, November 15, 2021 @ 02:29:03
  Author: felixonmars
Revision: 1047760

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1047759, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1047759, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1047759, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-15 02:29:03 UTC (rev 1047760)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=386
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1047759, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-15 02:29:03 UTC (rev 1047760)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-13 Thread Felix Yan via arch-commits
Date: Saturday, November 13, 2021 @ 23:39:06
  Author: felixonmars
Revision: 1046383

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1046382, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1046382, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1046382, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-13 23:39:06 UTC (rev 1046383)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=385
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1046382, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-13 23:39:06 UTC (rev 1046383)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-12 Thread Felix Yan via arch-commits
Date: Friday, November 12, 2021 @ 13:10:14
  Author: felixonmars
Revision: 1043691

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1043690, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1043690, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1043690, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-12 13:10:14 UTC (rev 1043691)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=384
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1043690, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-12 13:10:14 UTC (rev 1043691)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-10 Thread Felix Yan via arch-commits
Date: Thursday, November 11, 2021 @ 04:09:55
  Author: felixonmars
Revision: 1040984

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1040983, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1040983, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1040983, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-11 04:09:55 UTC (rev 1040984)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=383
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1040983, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-11 04:09:55 UTC (rev 1040984)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-08 Thread Felix Yan via arch-commits
Date: Monday, November 8, 2021 @ 20:59:58
  Author: felixonmars
Revision: 1038934

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1038933, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1038933, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1038933, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-08 20:59:58 UTC (rev 1038934)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=382
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1038933, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-08 20:59:58 UTC (rev 1038934)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-07 Thread Felix Yan via arch-commits
Date: Sunday, November 7, 2021 @ 11:09:14
  Author: felixonmars
Revision: 1038491

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1038490, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1038490, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1038490, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-07 11:09:14 UTC (rev 1038491)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=381
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1038490, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-07 11:09:14 UTC (rev 1038491)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-06 Thread Felix Yan via arch-commits
Date: Sunday, November 7, 2021 @ 01:46:28
  Author: felixonmars
Revision: 1038070

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1038069, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1038069, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1038069, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-07 01:46:28 UTC (rev 1038070)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=380
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1038069, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-07 01:46:28 UTC (rev 1038070)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-11-03 Thread Felix Yan via arch-commits
Date: Thursday, November 4, 2021 @ 02:00:37
  Author: felixonmars
Revision: 1035913

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1035912, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1035912, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1035912, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-04 02:00:37 UTC (rev 1035913)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=379
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1035912, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-11-04 02:00:37 UTC (rev 1035913)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-10-25 Thread Felix Yan via arch-commits
Date: Monday, October 25, 2021 @ 07:52:04
  Author: felixonmars
Revision: 108

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 107, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 107, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
107, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-25 07:52:04 UTC (rev 108)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=378
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
107, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-10-25 07:52:04 UTC (rev 108)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-10-24 Thread Felix Yan via arch-commits
Date: Sunday, October 24, 2021 @ 21:23:03
  Author: felixonmars
Revision: 1033247

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1033246, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1033246, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1033246, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-24 21:23:03 UTC (rev 1033247)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=377
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1033246, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-10-24 21:23:03 UTC (rev 1033247)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-10-22 Thread Felix Yan via arch-commits
Date: Friday, October 22, 2021 @ 15:07:35
  Author: felixonmars
Revision: 1032437

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1032436, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1032436, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1032436, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-22 15:07:35 UTC (rev 1032437)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=376
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1032436, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-10-22 15:07:35 UTC (rev 1032437)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-10-19 Thread Felix Yan via arch-commits
Date: Wednesday, October 20, 2021 @ 02:29:33
  Author: felixonmars
Revision: 1031225

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1031224, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1031224, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1031224, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-20 02:29:33 UTC (rev 1031225)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=375
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1031224, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-10-20 02:29:33 UTC (rev 1031225)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-10-12 Thread Felix Yan via arch-commits
Date: Tuesday, October 12, 2021 @ 13:21:56
  Author: felixonmars
Revision: 1029860

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1029859, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1029859, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1029859, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-12 13:21:56 UTC (rev 1029860)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=374
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1029859, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-10-12 13:21:56 UTC (rev 1029860)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-10-02 Thread Felix Yan via arch-commits
Date: Saturday, October 2, 2021 @ 11:20:23
  Author: felixonmars
Revision: 1026762

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1026761, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1026761, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1026761, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-10-02 11:20:23 UTC (rev 1026762)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=373
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1026761, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-10-02 11:20:23 UTC (rev 1026762)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-30 Thread Felix Yan via arch-commits
Date: Thursday, September 30, 2021 @ 14:28:35
  Author: felixonmars
Revision: 1026174

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1026173, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1026173, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1026173, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-30 14:28:35 UTC (rev 1026174)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=372
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1026173, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-30 14:28:35 UTC (rev 1026174)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-25 Thread Felix Yan via arch-commits
Date: Sunday, September 26, 2021 @ 00:12:40
  Author: felixonmars
Revision: 1025315

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1025314, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1025314, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1025314, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-26 00:12:40 UTC (rev 1025315)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=371
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1025314, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-26 00:12:40 UTC (rev 1025315)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-24 Thread Felix Yan via arch-commits
Date: Saturday, September 25, 2021 @ 02:29:49
  Author: felixonmars
Revision: 1024236

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1024235, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1024235, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1024235, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-25 02:29:49 UTC (rev 1024236)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=370
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid 
--ghc-option=-fllvm
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1024235, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-25 02:29:49 UTC (rev 1024236)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-22 Thread Felix Yan via arch-commits
Date: Wednesday, September 22, 2021 @ 13:25:22
  Author: felixonmars
Revision: 1021524

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1021523, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1021523, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1021523, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-22 13:25:22 UTC (rev 1021524)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=369
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1021523, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-22 13:25:22 UTC (rev 1021524)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-20 Thread Felix Yan via arch-commits
Date: Monday, September 20, 2021 @ 21:56:11
  Author: felixonmars
Revision: 1019824

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1019823, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1019823, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1019823, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-20 21:56:11 UTC (rev 1019824)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=368
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1019823, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-20 21:56:11 UTC (rev 1019824)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-20 Thread Felix Yan via arch-commits
Date: Monday, September 20, 2021 @ 09:16:37
  Author: felixonmars
Revision: 1018623

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1018622, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1018622, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1018622, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-20 09:16:37 UTC (rev 1018623)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=367
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1018622, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-20 09:16:37 UTC (rev 1018623)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-16 Thread Felix Yan via arch-commits
Date: Thursday, September 16, 2021 @ 21:46:07
  Author: felixonmars
Revision: 1016631

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1016630, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1016630, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1016630, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-16 21:46:07 UTC (rev 1016631)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=366
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1016630, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-16 21:46:07 UTC (rev 1016631)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-15 Thread Felix Yan via arch-commits
Date: Wednesday, September 15, 2021 @ 10:33:12
  Author: felixonmars
Revision: 1015457

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1015456, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1015456, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1015456, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-15 10:33:12 UTC (rev 1015457)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=365
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1015456, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-15 10:33:12 UTC (rev 1015457)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-11 Thread Felix Yan via arch-commits
Date: Saturday, September 11, 2021 @ 07:37:57
  Author: felixonmars
Revision: 1014151

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1014150, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1014150, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1014150, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-11 07:37:57 UTC (rev 1014151)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=364
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1014150, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-11 07:37:57 UTC (rev 1014151)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-10 Thread Felix Yan via arch-commits
Date: Friday, September 10, 2021 @ 16:46:56
  Author: felixonmars
Revision: 1013617

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1013616, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1013616, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1013616, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-10 16:46:56 UTC (rev 1013617)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=363
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1013616, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-10 16:46:56 UTC (rev 1013617)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-07 Thread Felix Yan via arch-commits
Date: Wednesday, September 8, 2021 @ 04:55:41
  Author: felixonmars
Revision: 1012446

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1012445, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1012445, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1012445, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-08 04:55:41 UTC (rev 1012446)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=362
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1012445, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-08 04:55:41 UTC (rev 1012446)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-09-04 Thread Felix Yan via arch-commits
Date: Saturday, September 4, 2021 @ 12:42:03
  Author: felixonmars
Revision: 1011196

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1011195, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1011195, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1011195, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-09-04 12:42:03 UTC (rev 1011196)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=361
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1011195, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-09-04 12:42:03 UTC (rev 1011196)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-29 Thread Felix Yan via arch-commits
Date: Sunday, August 29, 2021 @ 09:15:47
  Author: felixonmars
Revision: 1009069

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1009068, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1009068, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1009068, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-29 09:15:47 UTC (rev 1009069)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=360
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1009068, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-29 09:15:47 UTC (rev 1009069)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-26 Thread Felix Yan via arch-commits
Date: Thursday, August 26, 2021 @ 15:28:32
  Author: felixonmars
Revision: 1006255

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1006254, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1006254, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1006254, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-26 15:28:32 UTC (rev 1006255)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=359
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1006254, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-26 15:28:32 UTC (rev 1006255)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-23 Thread Felix Yan via arch-commits
Date: Monday, August 23, 2021 @ 10:58:53
  Author: felixonmars
Revision: 1004342

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1004341, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1004341, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1004341, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-23 10:58:53 UTC (rev 1004342)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=358
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1004341, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-23 10:58:53 UTC (rev 1004342)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-22 Thread Felix Yan via arch-commits
Date: Sunday, August 22, 2021 @ 10:07:54
  Author: felixonmars
Revision: 1004205

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1004204, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1004204, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1004204, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-22 10:07:54 UTC (rev 1004205)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=357
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1004204, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-22 10:07:54 UTC (rev 1004205)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-17 Thread Felix Yan via arch-commits
Date: Tuesday, August 17, 2021 @ 21:01:09
  Author: felixonmars
Revision: 1002681

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 1002680, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 1002680, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
1002680, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-17 21:01:09 UTC (rev 1002681)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=356
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
1002680, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-17 21:01:09 UTC (rev 1002681)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-15 Thread Felix Yan via arch-commits
Date: Monday, August 16, 2021 @ 04:37:32
  Author: felixonmars
Revision: 103

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 102, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 102, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
102, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-16 04:37:32 UTC (rev 103)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=355
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
102, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-16 04:37:32 UTC (rev 103)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-13 Thread Felix Yan via arch-commits
Date: Friday, August 13, 2021 @ 16:00:33
  Author: felixonmars
Revision: 998150

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 998149, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 998149, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
998149, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-13 16:00:33 UTC (rev 998150)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=354
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
998149, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-13 16:00:33 UTC (rev 998150)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-08 Thread Felix Yan via arch-commits
Date: Monday, August 9, 2021 @ 02:14:59
  Author: felixonmars
Revision: 996300

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 996299, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 996299, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
996299, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-09 02:14:59 UTC (rev 996300)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=353
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
996299, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-09 02:14:59 UTC (rev 996300)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-06 Thread Felix Yan via arch-commits
Date: Friday, August 6, 2021 @ 06:37:53
  Author: felixonmars
Revision: 994020

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 994019, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 994019, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
994019, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-06 06:37:53 UTC (rev 994020)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=352
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
994019, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-06 06:37:53 UTC (rev 994020)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-02 Thread Felix Yan via arch-commits
Date: Monday, August 2, 2021 @ 18:55:35
  Author: felixonmars
Revision: 992936

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 992935, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 992935, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
992935, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-02 18:55:35 UTC (rev 992936)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=351
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
992935, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-02 18:55:35 UTC (rev 992936)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-08-02 Thread Felix Yan via arch-commits
Date: Monday, August 2, 2021 @ 11:01:39
  Author: felixonmars
Revision: 992332

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 992331, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 992331, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
992331, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-02 11:01:39 UTC (rev 992332)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=350
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
992331, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-08-02 11:01:39 UTC (rev 992332)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-31 Thread Felix Yan via arch-commits
Date: Saturday, July 31, 2021 @ 20:46:28
  Author: felixonmars
Revision: 991423

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 991422, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 991422, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
991422, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-31 20:46:28 UTC (rev 991423)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=349
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
991422, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-31 20:46:28 UTC (rev 991423)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-30 Thread Felix Yan via arch-commits
Date: Friday, July 30, 2021 @ 16:36:55
  Author: felixonmars
Revision: 991019

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 991018, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 991018, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
991018, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-30 16:36:55 UTC (rev 991019)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=348
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
991018, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-30 16:36:55 UTC (rev 991019)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-29 Thread Felix Yan via arch-commits
Date: Thursday, July 29, 2021 @ 18:31:10
  Author: felixonmars
Revision: 990516

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 990515, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 990515, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
990515, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-29 18:31:10 UTC (rev 990516)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=347
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
990515, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-29 18:31:10 UTC (rev 990516)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-29 Thread Felix Yan via arch-commits
Date: Thursday, July 29, 2021 @ 06:45:37
  Author: felixonmars
Revision: 989990

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 989989, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 989989, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
989989, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-29 06:45:37 UTC (rev 989990)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=346
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
989989, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-29 06:45:37 UTC (rev 989990)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-28 Thread Felix Yan via arch-commits
Date: Wednesday, July 28, 2021 @ 19:57:17
  Author: felixonmars
Revision: 989442

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 989441, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 989441, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
989441, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-28 19:57:17 UTC (rev 989442)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=345
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
989441, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-28 19:57:17 UTC (rev 989442)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-28 Thread Felix Yan via arch-commits
Date: Wednesday, July 28, 2021 @ 11:21:36
  Author: felixonmars
Revision: 988780

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 988779, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 988779, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
988779, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-28 11:21:36 UTC (rev 988780)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=344
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
988779, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-28 11:21:36 UTC (rev 988780)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-27 Thread Felix Yan via arch-commits
Date: Tuesday, July 27, 2021 @ 16:57:15
  Author: felixonmars
Revision: 987894

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 987893, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 987893, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
987893, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-27 16:57:15 UTC (rev 987894)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=343
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
987893, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-27 16:57:15 UTC (rev 987894)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-26 Thread Felix Yan via arch-commits
Date: Tuesday, July 27, 2021 @ 01:20:47
  Author: felixonmars
Revision: 986362

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 986361, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 986361, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
986361, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-27 01:20:47 UTC (rev 986362)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=342
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
986361, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-27 01:20:47 UTC (rev 986362)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-21 Thread Felix Yan via arch-commits
Date: Thursday, July 22, 2021 @ 05:27:47
  Author: felixonmars
Revision: 982876

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 982875, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 982875, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
982875, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-22 05:27:47 UTC (rev 982876)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=341
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
982875, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-22 05:27:47 UTC (rev 982876)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-20 Thread Felix Yan via arch-commits
Date: Tuesday, July 20, 2021 @ 14:54:55
  Author: felixonmars
Revision: 980167

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 980166, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 980166, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
980166, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-20 14:54:55 UTC (rev 980167)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=340
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
980166, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-20 14:54:55 UTC (rev 980167)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-07 Thread Felix Yan via arch-commits
Date: Thursday, July 8, 2021 @ 03:04:27
  Author: felixonmars
Revision: 975392

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 975391, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 975391, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
975391, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-08 03:04:27 UTC (rev 975392)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=339
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
975391, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-08 03:04:27 UTC (rev 975392)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-06 Thread Felix Yan via arch-commits
Date: Wednesday, July 7, 2021 @ 04:42:31
  Author: felixonmars
Revision: 973975

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 973974, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 973974, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
973974, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-07 04:42:31 UTC (rev 973975)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=338
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
973974, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-07 04:42:31 UTC (rev 973975)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-04 Thread Felix Yan via arch-commits
Date: Monday, July 5, 2021 @ 04:29:46
  Author: felixonmars
Revision: 972216

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 972215, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 972215, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
972215, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-05 04:29:46 UTC (rev 972216)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=337
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
972215, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-05 04:29:46 UTC (rev 972216)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-04 Thread Felix Yan via arch-commits
Date: Monday, July 5, 2021 @ 02:42:16
  Author: felixonmars
Revision: 972201

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 972200, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 972200, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
972200, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-05 02:42:16 UTC (rev 972201)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=336
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
972200, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-05 02:42:16 UTC (rev 972201)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-07-02 Thread Felix Yan via arch-commits
Date: Friday, July 2, 2021 @ 09:44:33
  Author: felixonmars
Revision: 970605

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 970604, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 970604, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
970604, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-07-02 09:44:33 UTC (rev 970605)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=335
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
970604, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-02 09:44:33 UTC (rev 970605)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-



[arch-commits] Commit in haskell-mustache/repos (3 files)

2021-06-28 Thread Felix Yan via arch-commits
Date: Tuesday, June 29, 2021 @ 02:27:26
  Author: felixonmars
Revision: 967820

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mustache/repos/community-staging-x86_64/
  haskell-mustache/repos/community-staging-x86_64/PKGBUILD
(from rev 967819, haskell-mustache/trunk/PKGBUILD)
  haskell-mustache/repos/community-staging-x86_64/ghc9.patch
(from rev 967819, haskell-mustache/trunk/ghc9.patch)

+
 PKGBUILD   |   50 ++
 ghc9.patch |   40 
 2 files changed, 90 insertions(+)

Copied: haskell-mustache/repos/community-staging-x86_64/PKGBUILD (from rev 
967819, haskell-mustache/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-06-29 02:27:26 UTC (rev 967820)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+
+_hkgname=mustache
+pkgname=haskell-mustache
+pkgver=2.3.1
+pkgrel=334
+pkgdesc="A mustache template parser library."
+url="https://github.com/JustusAdam/mustache;
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-either' 
'haskell-unordered-containers' 'haskell-vector'
+ 'haskell-scientific' 'haskell-th-lift' 'haskell-cmdargs' 
'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec' 'haskell-base-unicode-symbols' 
'haskell-wreq' 'haskell-zlib'
+ 'haskell-tar' 'haskell-lens' 'haskell-temporary')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ghc9.patch)
+sha512sums=('162360cb635d40086721d4dd350036884207679b240d30420b9fc71eebef847e542bd143275931a22a42c583d513d0c906a6b112d780824dc189ad07e3027aa3'
+
'bb1a1df1ce2972998b65014a020dcab8467a89325a332df4b842881f11f3263f9720167c958b4164061443db44ea2bea82de07fcc57be90120e75d0eaca0c649')
+
+prepare() {
+patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+}
+
+build() {
+cd $_hkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build $MAKEFLAGS
+runhaskell Setup register --gen-script
+runhaskell Setup unregister --gen-script
+sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+cd $_hkgname-$pkgver
+runhaskell Setup test --show-details=direct
+}
+
+package() {
+cd $_hkgname-$pkgver
+
+install -D -m744 register.sh 
"$pkgdir"/usr/share/haskell/register/$pkgname.sh
+install -D -m744 unregister.sh 
"$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+runhaskell Setup copy --destdir="$pkgdir"
+install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-mustache/repos/community-staging-x86_64/ghc9.patch (from rev 
967819, haskell-mustache/trunk/ghc9.patch)
===
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-06-29 02:27:26 UTC (rev 967820)
@@ -0,0 +1,40 @@
+diff --git a/src/Text/Mustache/Internal/Types.hs 
b/src/Text/Mustache/Internal/Types.hs
+index d824ba7..1552d09 100644
+--- a/src/Text/Mustache/Internal/Types.hs
 b/src/Text/Mustache/Internal/Types.hs
+@@ -24,7 +24,8 @@ import   Data.Text
+ import   Data.Text
+ import qualified Data.Text.Lazy   as LT
+ import qualified Data.Vector  as V
+-import   Language.Haskell.TH.Lift (Lift (lift), deriveLift)
++import   Language.Haskell.TH.Lift (deriveLift)
++import Language.Haskell.TH.Syntax
+
+
+ -- | Type of errors we may encounter during substitution.
+@@ -380,16 +381,20 @@ data Template = Template
+   , partials :: TemplateCache
+   } deriving (Show)
+
++
++deriveLift ''DataIdentifier
++deriveLift ''Node
++deriveLift ''Template
++
+ instance Lift TemplateCache where
++#if MIN_VERSION_template_haskell(2,16,0)
++  liftTyped m = [|| HM.fromList $$(liftTyped $ HM.toList m) ||]
++#else
+   lift m = [| HM.fromList $(lift $ HM.toList m) |]
++#endif
+
+ --Data.Text 1.2.4.0 introduces its own Lift Text instance
+ #if !MIN_VERSION_text(1,2,4)
+ instance Lift Text where
+   lift = lift . unpack
+ #endif
+-
+-deriveLift ''DataIdentifier
+-deriveLift ''Node
+-deriveLift ''Template
+-