bdcs-0.1.0: Tools for managing a content store of software packages

Copyright(c) 2017 Red Hat Inc.
LicenseLGPL
Maintainerhttps://github.com/weldr
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

BDCS.Import.Conduit

Description

Utilities for working with Conduits when importing.

Synopsis

Documentation

getFromURI :: MonadResource m => URI -> Producer m ByteString Source #

Load data from a given file: or http: URI into a ByteString.

ungzipIfCompressed :: MonadResource m => Conduit ByteString m ByteString Source #

If the ByteString in a Conduit is compressed, pass it through ungzip to uncompress it. Otherwise, pass it through without doing anything. We determine whether a stream is compressed by looking for the gzip magic bytes at the start of the stream.