[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Monday, June 29, 2020 @ 08:34:15 Author: felixonmars Revision: 655946 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 655945, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 655945, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 655945, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-29 08:34:15 UTC (rev 655946) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=240 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 655945, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-29 08:34:15 UTC (rev 655946) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Sys
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Wednesday, June 24, 2020 @ 09:19:15 Author: felixonmars Revision: 652165 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 652164, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 652164, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 652164, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-24 09:19:15 UTC (rev 652165) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=237 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 652164, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-24 09:19:15 UTC (rev 652165) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Friday, June 19, 2020 @ 16:34:47 Author: felixonmars Revision: 647742 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 647741, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 647741, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 647741, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-19 16:34:47 UTC (rev 647742) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=236 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 647741, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-19 16:34:47 UTC (rev 647742) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Sys
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Wednesday, June 17, 2020 @ 19:53:30 Author: felixonmars Revision: 646605 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 646604, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 646604, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 646604, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-17 19:53:30 UTC (rev 646605) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=235 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 646604, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-17 19:53:30 UTC (rev 646605) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Tuesday, June 16, 2020 @ 03:06:50 Author: felixonmars Revision: 645808 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 645807, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 645807, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 645807, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-16 03:06:50 UTC (rev 645808) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=234 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 645807, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-16 03:06:50 UTC (rev 645808) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Sy
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Sunday, June 14, 2020 @ 02:40:57 Author: felixonmars Revision: 643705 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 643704, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 643704, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 643704, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-14 02:40:57 UTC (rev 643705) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=233 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 643704, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-14 02:40:57 UTC (rev 643705) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Sys
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Wednesday, June 10, 2020 @ 07:53:42 Author: felixonmars Revision: 641197 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 641196, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 641196, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 641196, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-10 07:53:42 UTC (rev 641197) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=232 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 641196, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-10 07:53:42 UTC (rev 641197) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Sunday, June 7, 2020 @ 21:21:30 Author: felixonmars Revision: 640132 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 640131, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 640131, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 640131, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-07 21:21:30 UTC (rev 640132) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=231 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 640131, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-06-07 21:21:30 UTC (rev 640132) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Syst
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Monday, May 25, 2020 @ 02:06:42 Author: felixonmars Revision: 633685 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 633684, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 633684, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 633684, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-25 02:06:42 UTC (rev 633685) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=230 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 633684, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-05-25 02:06:42 UTC (rev 633685) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Syst
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Saturday, May 23, 2020 @ 19:44:10 Author: felixonmars Revision: 632512 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 632511, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 632511, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 632511, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-23 19:44:10 UTC (rev 632512) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=229 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 632511, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-05-23 19:44:10 UTC (rev 632512) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Sy
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Thursday, May 21, 2020 @ 11:22:01 Author: felixonmars Revision: 631123 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 631122, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 631122, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 631122, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-21 11:22:01 UTC (rev 631123) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=228 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +runhaskell Setup build $MAKEFLAGS +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 631122, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-05-21 11:22:01 UTC (rev 631123) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import Sy
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Sunday, May 17, 2020 @ 18:51:41 Author: felixonmars Revision: 628878 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 628877, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 628877, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 628877, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-17 18:51:41 UTC (rev 628878) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=227 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 628877, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-05-17 18:51:41 UTC (rev 628878) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import System.FilePath
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Tuesday, May 12, 2020 @ 19:20:01 Author: felixonmars Revision: 627183 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 627182, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 627182, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 627182, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-12 19:20:01 UTC (rev 627183) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=226 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 627182, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-05-12 19:20:01 UTC (rev 627183) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import System.FilePat
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Saturday, April 25, 2020 @ 23:59:39 Author: felixonmars Revision: 621229 archrelease: copy trunk to community-staging-x86_64 Added: haskell-project-template/repos/community-staging-x86_64/ haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 621228, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 621228, haskell-project-template/trunk/base64-bytestring-1.1.patch) -+ PKGBUILD| 51 + base64-bytestring-1.1.patch | 98 ++ 2 files changed, 149 insertions(+) Copied: haskell-project-template/repos/community-staging-x86_64/PKGBUILD (from rev 621228, haskell-project-template/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-04-25 23:59:39 UTC (rev 621229) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0.1 +pkgrel=225 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-resourcet') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"; +base64-bytestring-1.1.patch) +sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea' + 'c426265cdb54a4c62d4ea743cf381f07f20e0641daea194ab17afbb15ee74db968a030260beb39158594c10131b78b6aaa2c04160e8f50d5d69d166e2d932f02') + +prepare() { +cd $_hkgname-$pkgver +patch -p1 -i ../base64-bytestring-1.1.patch +} + +build() { +cd $_hkgname-$pkgver + +runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ +--prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ +--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid +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 +} + +check() { +cd $_hkgname-$pkgver +runhaskell Setup test +} + +package() { +cd $_hkgname-$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: haskell-project-template/repos/community-staging-x86_64/base64-bytestring-1.1.patch (from rev 621228, haskell-project-template/trunk/base64-bytestring-1.1.patch) === --- community-staging-x86_64/base64-bytestring-1.1.patch (rev 0) +++ community-staging-x86_64/base64-bytestring-1.1.patch2020-04-25 23:59:39 UTC (rev 621229) @@ -0,0 +1,98 @@ +--- project-template-0.2.0.1/Text/ProjectTemplate.hs.orig 2020-04-26 07:50:54.007400644 +0800 project-template-0.2.0.1/Text/ProjectTemplate.hs 2020-04-26 07:56:46.698254606 +0800 +@@ -1,3 +1,4 @@ ++{-# LANGUAGE BangPatterns #-} + {-# LANGUAGE DeriveDataTypeable#-} + {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE MultiParamTypeClasses #-} +@@ -15,6 +16,7 @@ + , receiveFS + -- * Exceptions + , ProjectTemplateException (..) ++, joinWith + ) where + + import Control.Exception(Exception, assert) +@@ -27,6 +29,7 @@ + import Data.ByteString (ByteString) + import qualified Data.ByteString as S + import qualified Data.ByteString.Base64 as B64 ++import Data.ByteString.Internal + import qualified Data.ByteString.Lazy as L + import Data.Conduit (ConduitM, await, +awaitForever, leftover, yield, +@@ -42,6 +45,8 @@ + import Data.Text.Encoding (encodeUtf8) + import Data.Typeable(Typeable) + import Data.Void(Void) ++import Foreign.ForeignPtr (withForeignPtr) ++import Foreign.Ptr (minusPtr, plusPtr) + import System.Directory (createDirectoryIfMissing) + import System.File
[arch-commits] Commit in haskell-project-template/repos (3 files)
Date: Friday, March 4, 2016 @ 13:43:19 Author: fyan Revision: 164764 archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-project-template/repos/community-staging-i686/ haskell-project-template/repos/community-staging-i686/PKGBUILD (from rev 164763, haskell-project-template/trunk/PKGBUILD) haskell-project-template/repos/community-staging-i686/haskell-project-template.install (from rev 164763, haskell-project-template/trunk/haskell-project-template.install) --+ PKGBUILD | 44 + haskell-project-template.install | 18 +++ 2 files changed, 62 insertions(+) Copied: haskell-project-template/repos/community-staging-i686/PKGBUILD (from rev 164763, haskell-project-template/trunk/PKGBUILD) === --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-03-04 12:43:19 UTC (rev 164764) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=project-template +pkgname=haskell-project-template +pkgver=0.2.0 +pkgrel=14 +pkgdesc="Specify Haskell project templates and generate files" +url="https://github.com/fpco/haskell-ide"; +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=("ghc=7.10.3" "haskell-base64-bytestring" "haskell-conduit" + "haskell-conduit-extra" "haskell-mtl" "haskell-resourcet" + "haskell-text") +options=('staticlibs') +source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) +install="${pkgname}.install" +sha256sums=('aeabd7d1785b31abaffc78f02d9dda67d57d01822755f09614bfc65e99506310') + +build() { +cd "${srcdir}/${_hkgname}-${pkgver}" + +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 --hoogle --html +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" +ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +runhaskell Setup copy --destdir="${pkgdir}" +install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +} Copied: haskell-project-template/repos/community-staging-i686/haskell-project-template.install (from rev 164763, haskell-project-template/trunk/haskell-project-template.install) === --- community-staging-i686/haskell-project-template.install (rev 0) +++ community-staging-i686/haskell-project-template.install 2016-03-04 12:43:19 UTC (rev 164764) @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-project-template +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) +}