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

2018-05-16 Thread Felix Yan via arch-commits
Date: Wednesday, May 16, 2018 @ 10:32:00
  Author: felixonmars
Revision: 322693

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 322692, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 322692, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 322692, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-16 10:32:00 UTC (rev 322693)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=69
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
322692, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-16 10:32:00 UTC (rev 
322693)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML 

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

2018-05-15 Thread Felix Yan via arch-commits
Date: Tuesday, May 15, 2018 @ 06:28:44
  Author: felixonmars
Revision: 322311

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 322310, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 322310, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 322310, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-15 06:28:44 UTC (rev 322311)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=68
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
322310, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-15 06:28:44 UTC (rev 
322311)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-14 Thread Felix Yan via arch-commits
Date: Monday, May 14, 2018 @ 08:23:24
  Author: felixonmars
Revision: 321845

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 321844, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 321844, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 321844, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-14 08:23:24 UTC (rev 321845)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=67
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
321844, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-14 08:23:24 UTC (rev 
321845)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-13 Thread Felix Yan via arch-commits
Date: Sunday, May 13, 2018 @ 06:20:48
  Author: felixonmars
Revision: 321449

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 321448, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 321448, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 321448, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-13 06:20:48 UTC (rev 321449)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=66
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
321448, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-13 06:20:48 UTC (rev 
321449)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-12 Thread Felix Yan via arch-commits
Date: Saturday, May 12, 2018 @ 18:54:25
  Author: felixonmars
Revision: 321202

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 321201, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 321201, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 321201, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-12 18:54:25 UTC (rev 321202)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=65
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
321201, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-12 18:54:25 UTC (rev 
321202)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-11 Thread Felix Yan via arch-commits
Date: Friday, May 11, 2018 @ 18:22:45
  Author: felixonmars
Revision: 320875

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 320874, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 320874, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 320874, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-11 18:22:45 UTC (rev 320875)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=64
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
320874, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-11 18:22:45 UTC (rev 
320875)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-11 Thread Felix Yan via arch-commits
Date: Friday, May 11, 2018 @ 07:34:25
  Author: felixonmars
Revision: 320565

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 320564, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 320564, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 320564, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-11 07:34:25 UTC (rev 320565)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=63
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
320564, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-11 07:34:25 UTC (rev 
320565)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-10 Thread Felix Yan via arch-commits
Date: Thursday, May 10, 2018 @ 10:52:44
  Author: felixonmars
Revision: 320185

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 320184, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 320184, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 320184, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-10 10:52:44 UTC (rev 320185)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=62
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
320184, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-10 10:52:44 UTC (rev 
320185)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs

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

2018-05-07 Thread Felix Yan via arch-commits
Date: Monday, May 7, 2018 @ 21:01:51
  Author: felixonmars
Revision: 319421

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 319420, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 319420, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 319420, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-07 21:01:51 UTC (rev 319421)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=61
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
319420, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-05-07 21:01:51 UTC (rev 
319421)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs
+- 

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

2018-04-26 Thread Felix Yan via arch-commits
Date: Friday, April 27, 2018 @ 04:59:27
  Author: felixonmars
Revision: 318229

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
(from rev 318228, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.6.6.patch
(from rev 318228, hoogle/trunk/extra-1.6.6.patch)

---+
 PKGBUILD  |   52 
 extra-1.6.6.patch |   42 ++
 2 files changed, 94 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 318228, 
hoogle/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-04-27 04:59:27 UTC (rev 318229)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hoogle
+pkgver=5.0.16
+pkgrel=60
+pkgdesc="Haskell API Search"
+url="http://www.haskell.org/hoogle/;
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 
'haskell-conduit'
+ 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 
'haskell-src-exts'
+ 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 
'haskell-js-jquery'
+ 'haskell-mmap' 'haskell-network' 'haskell-network-uri' 
'haskell-old-locale'
+ 'haskell-process-extras' 'haskell-resourcet' 'haskell-storable-tuple' 
'haskell-tar'
+ 'haskell-text' 'haskell-uniplate' 'haskell-utf8-string' 
'haskell-vector' 'haskell-wai'
+ 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz;
+extra-1.6.6.patch)
+sha512sums=('14b0d6290927234be7e6e6548529fef61d44972a21b9ac22815325214241095b61d60e3b95b6f20a5d40bf9386beff4036942a2c61925c745b767f2525b915c9'
+
'be1cac2d0833e8fff846af9db097dbef23d97d69531b592fc33873813b0ec7c0c58a268f3b26ec4b079e474b9c0f7782355272d955eda54bf1aee77d294d39b2')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../extra-1.6.6.patch
+}
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+-fnetwork-uri
+runhaskell Setup build
+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
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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: hoogle/repos/community-staging-x86_64/extra-1.6.6.patch (from rev 
318228, hoogle/trunk/extra-1.6.6.patch)
===
--- community-staging-x86_64/extra-1.6.6.patch  (rev 0)
+++ community-staging-x86_64/extra-1.6.6.patch  2018-04-27 04:59:27 UTC (rev 
318229)
@@ -0,0 +1,42 @@
+From b3ef6ca4f59fb5854e42fe844c9593f6832ebd25 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell 
+Date: Fri, 13 Apr 2018 19:06:26 +0100
+Subject: [PATCH] Require extra-1.6.6, so I can use escape/unescape HTML
+
+---
+ CHANGES.txt |  1 +
+ hoogle.cabal|  2 +-
+ src/General/Util.hs | 20 
+ 3 files changed, 2 insertions(+), 21 deletions(-)
+
+diff --git a/src/General/Util.hs b/src/General/Util.hs
+index 2f51c644..abfe89ec 100755
+--- a/src/General/Util.hs
 b/src/General/Util.hs
+@@ -200,26 +200,6 @@ tarballReadFiles file = f . Tar.read . GZip.decompress 
<$> LBS.readFile file
+ f (Fail e) = error $ "tarballReadFiles on " ++ file ++ ", " ++ show e
+ 
+ 
+--- | Take a piece of text and escape all the HTML special bits
+-escapeHTML :: String -> String
+-escapeHTML = concatMap f
+-where
+-f '<' = ""
+-f '>' = ""
+-f '&' = ""
+-f '\"' = ""
+-f  x  = [x]
+-
+--- | Only guarantees to be the inverse of escapeHTML
+-unescapeHTML :: String -> String
+-unescapeHTML ('&':xs)
+-| Just xs <- stripPrefix "lt;" xs = '<' : unescapeHTML xs
+-| Just xs <- stripPrefix "gt;" xs = '>' : unescapeHTML xs