| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Encryption.OpenPGP.Compression
Synopsis
- decompressPkt :: Pkt -> Either CompressionError [Pkt]
- compressPkts :: CompressionAlgorithm -> [Pkt] -> Pkt
Documentation
decompressPkt :: Pkt -> Either CompressionError [Pkt] Source #
Decompress an OpenPGP Compressed Data packet, classifying structural
failures as 'CompressionErrorReason. Non-Compressed-Data packets are returned
unchanged in Right [p]. Corrupt compressed streams may still throw
IOException from the underlying decompression library.
compressPkts :: CompressionAlgorithm -> [Pkt] -> Pkt Source #