Safe Haskell | None |
---|---|
Language | Haskell2010 |
Deal with downloading and the cli options involved
Synopsis
- downloadIfNeccisary :: MonadMask m => MonadIO m => FileIO InputSource -> (FileIO FilePath -> m a) -> m a
- downloadCutifNeccisary :: MonadMask m => MonadIO m => ListenCutOptionsT InputSource -> (ListenCutOptionsT FilePath -> m a) -> m a
Documentation
downloadIfNeccisary :: MonadMask m => MonadIO m => FileIO InputSource -> (FileIO FilePath -> m a) -> m a Source #
FileIO
can have a remote, if so we download that and pass the downloaded
path to the continuation, if not we simply pass the input path to
the continuation.
We need a continuation to clean up the downloaded file.
downloadCutifNeccisary :: MonadMask m => MonadIO m => ListenCutOptionsT InputSource -> (ListenCutOptionsT FilePath -> m a) -> m a Source #
this does the same as downloadIfNeccisary
but makes it work for
ListenCutOptionsT
with some type weaving