[arch-commits] Commit in haskell-th-env/trunk (PKGBUILD ghc9.patch)

Felix Yan felixonmars at gemini.archlinux.org
Mon Jan 3 17:44:50 UTC 2022


    Date: Monday, January 3, 2022 @ 17:44:50
  Author: felixonmars
Revision: 1092501

upgpkg: haskell-th-env 0.1.0.3-1: rebuild with th-env 0.1.0.3

Modified:
  haskell-th-env/trunk/PKGBUILD
Deleted:
  haskell-th-env/trunk/ghc9.patch

------------+
 PKGBUILD   |   15 ++++-----------
 ghc9.patch |   25 -------------------------
 2 files changed, 4 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-03 17:30:33 UTC (rev 1092500)
+++ PKGBUILD	2022-01-03 17:44:50 UTC (rev 1092501)
@@ -2,8 +2,8 @@
 
 _hkgname=th-env
 pkgname=haskell-th-env
-pkgver=0.1.0.2
-pkgrel=65
+pkgver=0.1.0.3
+pkgrel=1
 pkgdesc="Template Haskell splice that expands to an environment variable"
 url="https://github.com/dzhus/th-env#readme"
 license=("BSD")
@@ -10,16 +10,9 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-th-compat')
 makedepends=('ghc' 'haskell-markdown-unlit')
-source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz"
-        ghc9.patch)
-sha256sums=('c0d29be2104dd0964f534637841b8ceb665d594b02318062aa4a245ccb353a8f'
-            '67f0ed6d9e5e84e81f679fbb394aeb7ac04b1a4a8de9ddb3ad37455bd74a6cf0')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('81219d473a745e153c74f5eafd8bef98c0bf3626d44149bc2427bf75ed485ccf')
 
-prepare() {
-  patch -d $_hkgname-$pkgver -p1 < ghc9.patch
-  sed -i '/template-haskell/a \    , th-compat' $_hkgname-$pkgver/$_hkgname.cabal
-}
-
 build() {
   cd $_hkgname-$pkgver
 

Deleted: ghc9.patch
===================================================================
--- ghc9.patch	2022-01-03 17:30:33 UTC (rev 1092500)
+++ ghc9.patch	2022-01-03 17:44:50 UTC (rev 1092501)
@@ -1,25 +0,0 @@
-diff --git a/src/Language/Haskell/TH/Env.hs b/src/Language/Haskell/TH/Env.hs
-index 38859e2..62c88fe 100644
---- a/src/Language/Haskell/TH/Env.hs
-+++ b/src/Language/Haskell/TH/Env.hs
-@@ -8,6 +8,7 @@ where
- 
- import Data.String
- import Language.Haskell.TH
-+import Language.Haskell.TH.Syntax.Compat
- import System.Environment
- 
- -- | Produce a typed expression with the current value of an
-@@ -15,8 +16,8 @@ import System.Environment
- envQ :: IsString a
-      => String
-      -- ^ Environment variable name.
--     -> TExpQ (Maybe a)
--envQ name =
-+     -> SpliceQ (Maybe a)
-+envQ name = liftSplice $
-   runIO (lookupEnv name) >>= \case
--    Just v  -> [|| Just (fromString v) ||]
--    Nothing -> [|| Nothing ||]
-+    Just v  -> fromCode $ toCode [|| Just (fromString v) ||]
-+    Nothing -> fromCode $ toCode [|| Nothing ||]



More information about the arch-commits mailing list