da-x / cpio-conduit Goto Github PK
View Code? Open in Web Editor NEWHaskell conduit-based CPIO encoder/decoder
License: Apache License 2.0
Haskell conduit-based CPIO encoder/decoder
License: Apache License 2.0
tests/file.cpio
seems to be missing from cpio-conduit-0.7.0.tar.gz
:
Linking dist/build/cpio-test/cpio-test ...
> /tmp/stackage-build12/cpio-conduit-0.7.0$ dist/build/cpio-test/cpio-test
cpio-test: tests/file.cpio: openBinaryFile: does not exist (No such file or directory)
I see that version 0.7.3
is tagged here but there hasn't been a release to hackage. Is that something that would be possible in the future? For now I can reference the GH repo directly in cabal.project
.
Thanks!
In the jump from base16-bytestring==0.1.1.7
to base16-bytestring==1.0.0.0
, it looks like there were breaking changes that affect this package:
[1 of 1] Compiling Data.CPIO ( src/Data/CPIO.hs, dist/build/Data/CPIO.o, dist/build/Data/CPIO.dyn_o )
src/Data/CPIO.hs:125:8: error:
• Couldn't match expected type ‘Either String ByteString’
with actual type ‘(ByteString, a1)’
• In the pattern: (decoded, "")
In a case alternative:
(decoded, "")
-> return $ runGet getWord32be $ BL.fromChunks [decoded]
In a stmt of a 'do' block:
case B16.decode v of
(decoded, "")
-> return $ runGet getWord32be $ BL.fromChunks [decoded]
(_, _) -> E.throw (InvalidHex v)
|
125 | (decoded, "") ->
| ^^^^^^^^^^^^^^
src/Data/CPIO.hs:127:8: error:
• Couldn't match expected type ‘Either String ByteString’
with actual type ‘(a0, b0)’
• In the pattern: (_, _)
In a case alternative: (_, _) -> E.throw (InvalidHex v)
In a stmt of a 'do' block:
case B16.decode v of
(decoded, "")
-> return $ runGet getWord32be $ BL.fromChunks [decoded]
(_, _) -> E.throw (InvalidHex v)
|
127 | (_, _) ->
| ^^^^^^
I can definitely open a PR for these changes if you'd like. And thanks a ton for this package; it's been really useful 🙂
Line 115 in dc4aab6
The above line has flipped logic. It should be if has_crc then Just crc32 else Nothing
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.