[arch-commits] Commit in haskell-fourmolu/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jul 9 04:23:40 UTC 2021


    Date: Friday, July 9, 2021 @ 04:23:40
  Author: felixonmars
Revision: 975887

upgpkg: haskell-fourmolu 0.3.0.0-82: rebuild with ghc 9.0.1

Modified:
  haskell-fourmolu/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-09 04:17:16 UTC (rev 975886)
+++ PKGBUILD	2021-07-09 04:23:40 UTC (rev 975887)
@@ -3,13 +3,13 @@
 _hkgname=fourmolu
 pkgname=haskell-fourmolu
 pkgver=0.3.0.0
-pkgrel=81
+pkgrel=82
 pkgdesc="A formatter for Haskell source code"
 url="https://github.com/parsonsmatt/fourmolu"
 license=("BSD")
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-hsyaml' 'haskell-hsyaml-aeson' 'haskell-aeson' 'haskell-dlist'
-         'haskell-ghc' 'haskell-gitrev' 'haskell-optparse-applicative' 'haskell-syb')
+         'haskell-ghc-lib-parser' 'haskell-gitrev' 'haskell-optparse-applicative' 'haskell-syb')
 makedepends=('ghc' 'uusi' 'haskell-hspec' 'haskell-hspec-discover' 'haskell-path' 'haskell-path-io')
 source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
 sha256sums=('ba7201c78ee61665eaf1fce10cd297dd5383d36053cd3984e41a5094d96e096d')
@@ -16,8 +16,11 @@
 
 prepare() {
   cd $_hkgname-$pkgver
-  uusi --all -rghc-lib-parser:ghc,ghc-boot,ghc-boot-th $_hkgname.cabal
-  sed -i 's/using ghc-lib-parser/using ghc/;s/VERSION_ghc_lib_parser/VERSION_ghc/' app/Main.hs
+  uusi -u path $_hkgname.cabal
+  # uusi -rghc-lib-parser:ghc,ghc-boot,ghc-boot-th $_hkgname.cabal
+  # sed -i 's/using ghc-lib-parser/using ghc/;s/VERSION_ghc_lib_parser/VERSION_ghc/' app/Main.hs
+
+  sed -i 's/matchIgnoringSrcSpans = genericQuery/matchIgnoringSrcSpans x = genericQuery x/;1i{-# LANGUAGE ImpredicativeTypes #-}' src/Ormolu/Diff.hs
 }
 
 build() {




More information about the arch-commits mailing list