From 1390d6e55d3bfab417660b863af96bb5359064ec Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Sun, 1 Jul 2018 04:14:35 +0300 Subject: [PATCH] Add a workaround for a cabal bug haskell-infra/hackage-trustees#165 --- http-client/ChangeLog.md | 4 ++++ http-client/http-client.cabal | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/http-client/ChangeLog.md b/http-client/ChangeLog.md index 658bbc94..6c3f4dee 100644 --- a/http-client/ChangeLog.md +++ b/http-client/ChangeLog.md @@ -1,3 +1,7 @@ +## 0.5.13.1 + +* Add a workaround for a cabal bug [haskell-infra/hackage-trustees#165](https://github.com/haskell-infra/hackage-trustees/issues/165) + ## 0.5.13 * Adds `setRequestCheckStatus` and `throwErrorStatusCodes` functions. diff --git a/http-client/http-client.cabal b/http-client/http-client.cabal index 0234454b..36658ad1 100644 --- a/http-client/http-client.cabal +++ b/http-client/http-client.cabal @@ -1,5 +1,5 @@ name: http-client -version: 0.5.13 +version: 0.5.13.1 synopsis: An HTTP client engine description: Hackage documentation generation is not reliable. For up to date documentation, please see: . homepage: https://github.com/snoyberg/http-client @@ -68,7 +68,12 @@ library -- See build failure at https://travis-ci.org/snoyberg/http-client/jobs/359573631 if impl(ghc < 7.10) - buildable: False + -- Disable building with GHC before 8.0.2. + -- Due to a cabal bug, do not use buildable: False, + -- but instead give it an impossible constraint. + -- See: https://github.com/haskell-infra/hackage-trustees/issues/165 + build-depends: unsupported-ghc-version > 1 && < 1 + if os(mingw32) build-depends: Win32, safe