jgm/zip-archive

Inaccurate version bound on `base`

hvr opened this issue · 0 comments

hvr commented

Contrary to the advertised compatibility with base >= 3 && < 5, this can be falsified with base < 4.5:

Configuring library for zip-archive-0.4.1..
Preprocessing library for zip-archive-0.4.1..
Building library for zip-archive-0.4.1..
/opt/ghc/7.0.4/lib/ghc-7.0.4/ghc -B/opt/ghc/7.0.4/lib/ghc-7.0.4 -pgmc /usr/bin/gcc -pgma /usr/bin/gcc -pgml /usr/bin/gcc -pgmP /usr/bin/gcc -E -undef -traditional --make -fbuilding-cabal-package -O -outputdir /tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build -odir /tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build -hidir /tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build -stubdir /tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build -i -i/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build -isrc -i/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build/autogen -i/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build/global-autogen -I/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build/autogen -I/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build/global-autogen -I/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build -optP-include -optP/tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build/autogen/cabal_macros.h -package-name zip-archive-0.4.1 -hide-all-packages -no-user-package-conf -package-conf /matrix/.cabal/store/ghc-7.0.4/package.db -package-conf /tmp/matrix-worker/1556000046/dist-newstyle/packagedb/ghc-7.0.4 -package-conf /tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/package.conf.inplace -package-id array-0.3.0.2-143060371bda4ff52c270d1067551fe8 -package-id base-4.3.1.0-bafbc7ad22c91044397c91929f8c61bc -package-id binary-0.8.2.1-ac4ef41f35971e6efc0b383682cc4c1776f9e97874255e7ce158e0fa30195ea4 -package-id bytestring-0.10.8.2-707db3366704fdefee7401a214abc04cfcdd0571cd35723d20009af0db52f6fa -package-id containers-0.4.0.0-b4885363abca642443ccd842502a3b7e -package-id digest-0.0.1.2-8431de2ba8fa0d8e505368bffcd5070e8c318cea390158d4549e1a81c559765f -package-id directory-1.2.0.1-5947aca0b601aa0a61df7df7c298bb1c4ce348f22e43d9d739072ee661ebf849 -package-id filepath-1.2.0.0-b4f4cf7e95546b00f075372f0ccb0653 -package-id mtl-2.2.2-70c5331ff6878818104cc879650655684df8a02a0dd5a02d0904aff9725b5377 -package-id pretty-1.0.1.2-f8dc299a95cc94a3e513e27c5b80f951 -package-id text-1.2.3.1-2597b4605275010fa1b4ef1079216e319be3138e738bdfceda02687ee7d3d0da -package-id time-1.2.0.3-3493203919ef238f1a58223fa55b1ceb -package-id unix-2.4.2.0-7643ffafb38b84c18b4316347085103e -package-id zlib-0.6.2-5ad36fd829f4d0a9c75b45a9d116b60b5c9f80c22d6921ba1c479e6581d6b2af -XHaskell98 Codec.Archive.Zip -Wall -hide-all-packages +RTS -M1750M -t 
[1 of 1] Compiling Codec.Archive.Zip ( src/Codec/Archive/Zip.hs, /tmp/matrix-worker/1556000046/dist-newstyle/build/x86_64-linux/ghc-7.0.4/zip-archive-0.4.1/build/Codec/Archive/Zip.o )

src/Codec/Archive/Zip.hs:424:20:
    Not in scope: data constructor `CMode'
<<ghc: 323951264 bytes, 544 GCs, 9873329/28553800 avg/max bytes residency (6 samples), 59M in use, 0.00 INIT (0.00 elapsed), 0.11 MUT (0.12 elapsed), 0.17 GC (0.17 elapsed) :ghc>>

See also https://matrix.hackage.haskell.org/package/zip-archive@1555999843

I've already fixed up the meta-data accordingly (see https://hackage.haskell.org/package/zip-archive-0.4.1/revisions/)