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

Felix Yan felixonmars at archlinux.org
Fri Jul 9 04:16:34 UTC 2021


    Date: Friday, July 9, 2021 @ 04:16:34
  Author: felixonmars
Revision: 975883

upgpkg: haskell-ormolu 0.1.4.1-82: rebuild with ghc 9.0.1

Modified:
  haskell-ormolu/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-09 03:14:31 UTC (rev 975882)
+++ PKGBUILD	2021-07-09 04:16:34 UTC (rev 975883)
@@ -3,14 +3,13 @@
 _hkgname=ormolu
 pkgname=haskell-ormolu
 pkgver=0.1.4.1
-pkgrel=81
+pkgrel=82
 pkgdesc="A formatter for Haskell source code"
 url="https://github.com/tweag/ormolu"
 license=("BSD")
 arch=('x86_64')
-depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-diff' 'haskell-dlist' 'haskell-ghc'
-         'haskell-ghc-boot' 'haskell-ghc-boot-th' 'haskell-gitrev' 'haskell-optparse-applicative'
-         'haskell-syb')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-diff' 'haskell-dlist' 'haskell-ghc-lib-parser'
+         'haskell-gitrev' 'haskell-optparse-applicative' 'haskell-syb')
 makedepends=('ghc' 'uusi' 'haskell-hspec' 'haskell-path' 'haskell-path-io')
 source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
 sha512sums=('b63b7c185bb80365dbc5359f3c8aed3015abcf50b4937dfe941dc65572b57c9403269e82cf4067cd8eca67130b98aea8f85d889a3270e066de4eb507260f0d6b')
@@ -17,8 +16,11 @@
 
 prepare() {
   cd $_hkgname-$pkgver
-  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
+  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/ParseResult.hs
 }
 
 build() {




More information about the arch-commits mailing list