Update haskell stack, remove deprecated modules

parent c1269608
......@@ -50,3 +50,4 @@ user.conf
*.log
*.log*
.SRCINFO
......@@ -2,20 +2,21 @@
pkgname=cabal-install
pkgver=1.22.9.0
pkgrel=1
pkgrel=2
pkgdesc="The command-line interface for Cabal and Hackage."
url="http://hackage.haskell.org/package/cabal-install"
license=('custom:BSD3')
arch=('x86_64')
depends=('gmp' 'zlib' 'libffi')
makedepends=('ghc' 'haskell-random' 'haskell-stm')
makedepends=("ghc=7.10.3" "haskell-http" "haskell-mtl" "haskell-network" "haskell-network-uri"
"haskell-random" "haskell-stm" "haskell-zlib")
source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
sha256sums=('874035e5730263653c7aa459f270efbffc06da92ea0c828e09ebc04400e94940')
build() {
cd cabal-install-${pkgver}
./bootstrap.sh
sh bootstrap.sh --user
}
package() {
......
......@@ -7,7 +7,7 @@
# This implies that all libraries need to be rebuilt when ghc is rebuilt.
pkgname=ghc
pkgver=7.10.1
pkgver=7.10.3
pkgrel=1
pkgdesc='The Glasgow Haskell Compiler'
arch=('i686' 'x86_64')
......@@ -72,8 +72,8 @@ replaces=('haskell-array<0.5.1.0'
source=("http://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-src.tar.bz2"
"http://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-testsuite.tar.bz2"
'build.mk')
md5sums=('3a18fbf8b79035b7ea2613aa9196e421'
'aeec2669c2b3ec3150efc4761a0909b8'
md5sums=('afd94782875acc57673965fe890246b0'
'bc158a295231b8846463ed847ab2a5b6'
'c367ef26300648ee9b8aca3dee5c9669')
build() {
......
......@@ -5,7 +5,7 @@
pkgname=happy
pkgver=1.19.5
pkgrel=1
pkgrel=2
pkgdesc="The Parser Generator for Haskell"
url="http://hackage.haskell.org/package/happy"
arch=('x86_64')
......
......@@ -9,17 +9,17 @@
_hkgname=binary
pkgname=haskell-binary
pkgver=0.7.1.0
pkgver=0.8.3.0
pkgrel=1
pkgdesc="Binary serialisation for Haskell values using lazy ByteStrings."
url="http://hackage.haskell.org/package/binary"
license=('custom:BSD3')
arch=('x86_64')
depends=("ghc=7.6.3")
depends=("ghc=7.10.3")
options=('strip' 'staticlibs')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
md5sums=('ae88f6bb387c4f91e667d38648b27f73')
install="${pkgname}.install"
md5sums=('f91313c126ad5530c973f853804251e4')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
......
......@@ -10,7 +10,7 @@
_hkgname=bytestring-show
pkgname=haskell-bytestring-show
pkgver=0.3.5.6
pkgrel=4
pkgrel=5
pkgdesc="Efficient conversion of values into readable byte strings."
url="http://hackage.haskell.org/package/bytestring-show"
license=("BSD3")
......
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
# Stephen McIntosh <stephenmac7[at]gmail[dot]com>
# Thomas Dziedzic <gostrc@gmail.com>
# Vesa Kaihlavirta <vesa@archlinux.org>
# Arch Haskell Team <arch-haskell@haskell.org>
## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ##
_hkgname=cabal-install
pkgname=haskell-cabal-install
pkgver=1.18.0.2
pkgrel=1
pkgdesc="Command-line interface for Cabal and Hackage"
url="http://hackage.haskell.org/package/cabal-install"
license=('custom:BSD3')
arch=('x86_64')
depends=('gmp' 'zlib')
makedepends=('ghc')
options=('strip' 'staticlibs')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install="${pkgname}.install"
md5sums=('e7e46406d43539616388aeafa01c689d')
build() {
cd cabal-install-${pkgver}
sh bootstrap.sh --user
}
package() {
cd cabal-install-${pkgver}
install -D -m755 /build/.cabal/bin/cabal $pkgdir/usr/bin/cabal
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Add bash completion
install -d "${pkgdir}/usr/share/bash-completion/completions"
install -m644 bash-completion/cabal \
"${pkgdir}/usr/share/bash-completion/completions"
}
HS_DIR=usr/share/haskell/haskell-cabal-install
post_install() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_upgrade() {
${HS_DIR}/unregister.sh
}
post_upgrade() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_remove() {
${HS_DIR}/unregister.sh
}
post_remove() {
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
# # # helpful information # # #
When you update Haskell packages you'll have to update the entire stack to not break it.
To help you I wrote a simple guide.
## NOTE: it's possible that some new haskell-package has been added to our repository, so before you update the entire stack you need to check it and then proceed
> First you have to update these packaes:
haskell-binary
haskell-bytestring-show
haskell-dataenc
haskell-deepseq
haskell-extensible-exceptions
haskell-html
haskell-mmap
haskell-primitive
haskell-random
haskell-syb
haskell-stm
haskell-terminfo
haskell-transformers
haskell-mtl
haskell-utf8-string
haskell-zlib
haskell-tar
> Next update one-by-one the following packages:
haskell-text
haskell-json
haskell-parsec
haskell-network
haskell-http
haskell-hslogger
haskell-vector
haskell-regex-base
haskell-regex-posix
haskell-regex-compat
haskell-hashed-storage
haskell-haskeline
> Then update:
happy
hasktags
> ...lastly you have to update:
haskell-cabal-install
END.
[UtG]
\ No newline at end of file
......@@ -4,17 +4,17 @@
_hkgname=deepseq
pkgname=haskell-deepseq
pkgver=1.3.0.2
pkgrel=2
pkgver=1.4.2.0
pkgrel=1
pkgdesc="Deep evaluation of data structures"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('x86_64')
depends=('ghc=7.6.3-1')
depends=('ghc')
options=('strip' 'staticlibs')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('3e7d75ece665292c9252e927dbcbc884')
md5sums=('e95d0c6b6a6992fbf26dff6d72a843aa')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
......
......@@ -10,7 +10,7 @@
_hkgname=extensible-exceptions
pkgname=haskell-extensible-exceptions
pkgver=0.1.1.4
pkgrel=5
pkgrel=6
pkgdesc="Extensible exceptions"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
# Stephen McIntosh <stephenmac7[at]gmail[dot]com>
# Thomas Dziedzic <gostrc@gmail.com>
# Vesa Kaihlavirta <vesa@archlinux.org>
# Arch Haskell Team <arch-haskell@haskell.org>
## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ##
_hkgname=hashed-storage
pkgname=haskell-hashed-storage
pkgver=0.5.11
pkgrel=2
pkgdesc="Hashed file storage support code."
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('x86_64')
depends=("ghc" 'haskell-dataenc' 'haskell-extensible-exceptions' 'haskell-mmap' 'haskell-mtl' 'haskell-zlib')
options=('strip' 'staticlibs')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('7b99ba4da4be44ffb5018e43a498fdb0')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
runhaskell Setup configure \
-O \
-p \
--enable-split-objs \
--enable-shared \
--prefix=/usr \
--docdir="/usr/share/doc/${pkgname}" \
--libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
package() {
cd "${srcdir}/${_hkgname}-${pkgver}"
install -D -m744 register.sh \
"${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
install -m744 unregister.sh \
"${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
# Documentation
ln -s "/usr/share/doc/${pkgname}/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/hashed-storage"
# License
install -D -m644 LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
runhaskell Setup copy --destdir="${pkgdir}"
}
# # # helpful information # # #
When you update Haskell packages you'll have to update the entire stack to not break it.
To help you I wrote a simple guide.
## NOTE: it's possible that some new haskell-package has been added to our repository, so before you update the entire stack you need to check it and then proceed
> First you have to update these packaes:
haskell-binary
haskell-bytestring-show
haskell-dataenc
haskell-deepseq
haskell-extensible-exceptions
haskell-html
haskell-mmap
haskell-primitive
haskell-random
haskell-syb
haskell-stm
haskell-terminfo
haskell-transformers
haskell-mtl
haskell-utf8-string
haskell-zlib
haskell-tar
> Next update one-by-one the following packages:
haskell-text
haskell-json
haskell-parsec
haskell-network
haskell-http
haskell-hslogger
haskell-vector
haskell-regex-base
haskell-regex-posix
haskell-regex-compat
haskell-hashed-storage
haskell-haskeline
> Then update:
happy
hasktags
> ...lastly you have to update:
haskell-cabal-install
END.
[UtG]
\ No newline at end of file
HS_DIR=usr/share/haskell/haskell-hashed-storage
post_install() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_upgrade() {
${HS_DIR}/unregister.sh
}
post_upgrade() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_remove() {
${HS_DIR}/unregister.sh
}
post_remove() {
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
......@@ -9,7 +9,7 @@
_hkgname=haskeline
pkgname=haskell-haskeline
pkgver=0.7.1.3
pkgver=0.7.2.3
pkgrel=1
pkgdesc="A command-line interface for user input, written in Haskell."
url="http://hackage.haskell.org/package/${_hkgname}"
......@@ -19,7 +19,7 @@ depends=("ghc" 'haskell-extensible-exceptions' 'haskell-mtl' 'haskell-terminfo'
options=('strip' 'staticlibs')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('385abd50241e222e244574936d87e698')
md5sums=('a6e475cb4ad52de43d8e2dd8598b05d8')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
......
......@@ -9,17 +9,17 @@
_hkgname=hslogger
pkgname=haskell-hslogger
pkgver=1.2.8
pkgver=1.2.9
pkgrel=1
pkgdesc="Versatile logging framework"
url="http://hackage.haskell.org/package/hslogger"
license=('custom:BSD3')
arch=('x86_64')
depends=('ghc' 'haskell-mtl' 'haskell-network')
depends=('ghc' 'haskell-mtl' 'haskell-network' 'haskell-old-locale')
options=('strip' 'staticlibs')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install="${pkgname}.install"
md5sums=('e5960e170f9809486ede60f8165bb770')
md5sums=('db8fd8ac6f8085317d66821ee27acd20')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
......
......@@ -6,7 +6,7 @@
_hkgname=html
pkgname=haskell-html
pkgver=1.0.1.2
pkgrel=14
pkgrel=15
pkgdesc="HTML combinator library"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
......@@ -9,30 +9,33 @@
_hkgname=HTTP
pkgname=haskell-http
pkgver=4000.2.19
pkgver=4000.3.3
pkgrel=1
pkgdesc="A library for client-side HTTP"
url="http://hackage.haskell.org/package/HTTP"
license=('custom:BSD3')
arch=('x86_64')
depends=('ghc' 'haskell-mtl>=2.0' 'haskell-mtl<2.3' 'haskell-network<2.7' 'haskell-parsec')
depends=('ghc' 'haskell-mtl>=2.0' 'haskell-mtl<2.3' 'haskell-network<2.7' 'haskell-parsec'
'haskell-network-uri')
options=('strip' 'staticlibs')
source=("http://hackage.haskell.org/packages/archive/HTTP/${pkgver}/HTTP-${pkgver}.tar.gz")
md5sums=('92f1d0d3ca56ddf1519aa4ea5b9c7a93')
md5sums=('3f2d84d59e36476ca02c882419632d7d')
build() {
cd "${srcdir}/HTTP-${pkgver}"
runhaskell Setup configure \
-O \
-p \
--enable-split-objs \
--enable-shared \
--prefix=/usr \
--docdir=/usr/share/doc/haskell-http \
--libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup configure -O \
--enable-library-profiling \
--enable-shared \
--prefix=/usr \
--docdir=/usr/share/doc/${pkgname} \
--libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
......
......@@ -4,7 +4,7 @@
_hkgname=json
pkgname=haskell-json
pkgver=0.9
pkgver=0.9.1
pkgrel=1
pkgdesc="Support for serialising Haskell to and from JSON"
url="http://hackage.haskell.org/package/${_hkgname}"
......@@ -14,7 +14,7 @@ depends=("ghc" 'haskell-text' 'haskell-mtl' 'haskell-syb>=0.3.3')
source=("http://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install=$pkgname.install
options=('strip' 'staticlibs')
sha256sums=('124526d4c80746be95255e380397190ea00118405acbc832eefa2406218467e4')
sha256sums=('96b57e4d167e45dc80aeff872a922ae9cdb953a1ded29ebbb51019b68f0085a2')
build() {
cd "$srcdir/$_hkgname-$pkgver"
......
......@@ -10,7 +10,7 @@
_hkgname=mmap
pkgname=haskell-mmap
pkgver=0.5.9
pkgrel=2
pkgrel=3
pkgdesc="Memory mapped files for POSIX and Windows"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
......@@ -10,7 +10,7 @@
_hkgname=mtl
pkgname=haskell-mtl
pkgver=2.2.1
pkgrel=1
pkgrel=2
pkgdesc="Monad classes, using functional dependencies"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
......@@ -7,7 +7,7 @@
_hkgname=network-uri
pkgname=haskell-network-uri
pkgver=2.6.0.1
pkgver=2.6.1.0
pkgrel=1
pkgdesc="A library for URI manipulation"
url="http://hackage.haskell.org/package/${_hkgname}"
......@@ -17,7 +17,7 @@ options=('staticlibs')
depends=('ghc' 'haskell-parsec<3.2')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install=${pkgname}.install
md5sums=('9f7eb108125b67719db88ea7961463ef')
md5sums=('c6ed1e8314a9b1674a3d118d9019a229')
build() {
cd "${_hkgname}-${pkgver}"
......
......@@ -9,7 +9,7 @@
_hkgname=network
pkgname=haskell-network
pkgver=2.6.0.2
pkgver=2.6.2.1
pkgrel=1
pkgdesc="Low-level networking interface"
url="http://hackage.haskell.org/package/network"
......@@ -19,7 +19,7 @@ depends=('ghc' 'haskell-parsec>=3.0')
options=('strip' 'staticlibs')
source=("http://hackage.haskell.org/packages/archive/network/${pkgver}/network-${pkgver}.tar.gz")
install="${pkgname}.install"
md5sums=('c6e5e3fafedb45cd945b72e35cd3abe0')
md5sums=('c58ab6f46a20a755970bec73f7bd4612')
build() {
cd "${srcdir}/network-${pkgver}"
......
......@@ -2,11 +2,11 @@
## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ##
_hkgname=dataenc
pkgname=haskell-dataenc
pkgver=0.14.0.7
_hkgname=old-locale
pkgname=haskell-old-locale
pkgver=1.0.0.7
pkgrel=1
pkgdesc="Data encoding library"
pkgdesc="Versatile logging framework"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('x86_64')
......@@ -14,7 +14,7 @@ depends=('ghc')
options=('strip' 'staticlibs')
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
install=${pkgname}.install
md5sums=('28491649dbeafb9512b4ea187cc6fddf')
md5sums=('507bd2d3ce2407403e2a2d1136c3d149')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
......@@ -24,7 +24,7 @@ build() {
--enable-split-objs \
--enable-shared \
--prefix="/usr" \
--docdir="/usr/share/doc/haskell-dataenc" \
--docdir="/usr/share/doc/${pkgname}" \
--libsubdir='$compiler/site-local/$pkgid'
runhaskell Setup build
runhaskell Setup haddock
......@@ -39,13 +39,13 @@ package() {
install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
# Documentation
ln -s "/usr/share/doc/haskell-dataenc/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/dataenc"
ln -s "/usr/share/doc/${pkgname}/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
# License
install -D -m644 LICENSE \
"${pkgdir}/usr/share/licenses/haskell-dataenc/LICENSE"
rm -f "${pkgdir}/usr/share/doc/haskell-dataenc/LICENSE"
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
runhaskell Setup copy --destdir="${pkgdir}"
}
HS_DIR=usr/share/haskell/haskell-dataenc
HS_DIR=usr/share/haskell/haskell-old-locale
post_install() {
${HS_DIR}/register.sh
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
......
......@@ -9,7 +9,7 @@
_hkgname=parsec
pkgname=haskell-parsec
pkgver=3.1.8
pkgver=3.1.11
pkgrel=1
pkgdesc="Monadic parser combinators"
url="http://hackage.haskell.org/package/${_hkgname}"
......@@ -19,7 +19,7 @@ depends=('ghc' 'haskell-mtl' 'haskell-text')
options=('strip' 'staticlibs')
install=${pkgname}.install
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
md5sums=('31ae00ec47cc85695c84f7bc15565fb3')
md5sums=('447a121444940cc86b644b13f773e1c7')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
......
......@@ -9,7 +9,7 @@
_hkgname=primitive
pkgname=haskell-primitive
pkgver=0.5.4.0
pkgver=0.6.1.0
pkgrel=1
pkgdesc="Wrappers for primitive array operations"
url="http://hackage.haskell.org/package/primitive"
......@@ -20,7 +20,7 @@ depends=("ghc")
options=('strip' 'staticlibs')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
install="${pkgname}.install"
sha256sums=('203c2a288a65ef6b75d2150d6f91f8204aa437add108d8e16cb9f581867ced15')
sha256sums=('93731fa72eaf74e8e83453f080828e18cec9fbc82bee91b49ba8b61c043d38c8')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
......
......@@ -10,7 +10,7 @@
_hkgname=random
pkgname=haskell-random
pkgver=1.1
pkgrel=1
pkgrel=2
pkgdesc="random number library"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
......@@ -10,7 +10,7 @@
_hkgname=regex-base
pkgname=haskell-regex-base
pkgver=0.93.2
pkgrel=9
pkgrel=10
pkgdesc="Replaces/Enhances Text.Regex"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
......@@ -10,7 +10,7 @@
_hkgname=regex-compat
pkgname=haskell-regex-compat
pkgver=0.95.1
pkgrel=9
pkgrel=10
pkgdesc="Replaces/Enhances Text.Regex"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
......@@ -10,7 +10,7 @@
_hkgname=regex-posix
pkgname=haskell-regex-posix
pkgver=0.95.2
pkgrel=6
pkgrel=7
pkgdesc="Replaces/Enhances Text.Regex"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
......
pkgname=haskell-sha
pkgver=1.6.4.2
pkgrel=1
pkgrel=2
pkgdesc="Implementations of the SHA suite of message digest functions"
url="http://hackage.haskell.org/package/SHA"
license=('BSD3')
......