Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype Compressed a = Compressed {
- getCompressed :: a
- compressBytes :: ByteString -> Compressed ByteString
- decompressBytes :: Compressed ByteString -> Either CompressedError ByteString
- data CompressedError
- fromFileWith :: MonadIO m => (ByteString -> m b) -> (FilePath -> m b) -> FilePath -> m b
- loadCompressed :: MonadIO m => (ByteString -> m b) -> FilePath -> m b
- compressedExts :: [FilePath]
Compressed container
newtype Compressed a Source #
Compressed | |
|
Instances
Typeable a => Show (Compressed a) Source # | |
Defined in Resource.Compressed.Zstd showsPrec :: Int -> Compressed a -> ShowS # show :: Compressed a -> String # showList :: [Compressed a] -> ShowS # |
data CompressedError Source #
Instances
Exception CompressedError Source # | |
Defined in Resource.Compressed.Zstd | |
Show CompressedError Source # | |
Defined in Resource.Compressed.Zstd showsPrec :: Int -> CompressedError -> ShowS # show :: CompressedError -> String # showList :: [CompressedError] -> ShowS # | |
Eq CompressedError Source # | |
Defined in Resource.Compressed.Zstd (==) :: CompressedError -> CompressedError -> Bool # (/=) :: CompressedError -> CompressedError -> Bool # |
Loading files
fromFileWith :: MonadIO m => (ByteString -> m b) -> (FilePath -> m b) -> FilePath -> m b Source #
loadCompressed :: MonadIO m => (ByteString -> m b) -> FilePath -> m b Source #
compressedExts :: [FilePath] Source #