on master help sign in
Require recent bytestring with ghc-8.0 or later

This is somewhat band-aid solution for: Data/Aeson/Encoding/Builder.hs:87:21: error: • No instance for (Semigroup Builder) arising from a use of ‘<>’ But there aren't better solution: we don't include anything from semigroups on ghc >= 8.0; so semigroups couldn't even in theory provide that instance. Also a lot of older aeson releases are "broken" because of this, if one downgrades bytestring. Usually no-one does that, except weird automatic QA tools.

commit5c0eeff75b244c57e6ddb47746627b62decd9a69 authorOleg Grenrus <oleg.grenrus@iki.fi> dateWed 15 May 2019, 00:43 (7 years ago) parent378ff14
2 files changed+6−2
aeson.cabal+4−1 cabal.project+2−1
aeson.cabal+4−1
@@ -111,12 +111,15 @@ library
111111 text >= 1.2.3.0 && < 1.3,
112112 time >= 1.4 && < 1.9
113113
114+ if impl(ghc >= 8.0)
115+ build-depends: bytestring >= 0.10.8.1
116+
114117 -- Compat
115118 build-depends:
116119 base-compat >= 0.9.1 && < 0.11
117120
118121 if flag(bytestring-builder)
119− build-depends: bytestring >= 0.9.2 && < 0.10.4,
122+ build-depends: bytestring >= 0.9.2.1 && < 0.10.4,
120123 bytestring-builder >= 0.10.4 && < 1
121124 else
122125 build-depends: bytestring >= 0.10.4 && < 0.11
cabal.project+2−1
@@ -1,2 +1,3 @@
11with-compiler: ghc
2−packages: ., attoparsec-iso8601, benchmarks
2+packages: .
3+packages: attoparsec-iso8601, benchmarks