Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- readResource :: (MonadResource m, MonadCatch m) => Env -> Location -> m (Either UriError ByteString)
- readFirstAvailableResource :: (MonadResource m, MonadCatch m) => Env -> [Location] -> m (Either UriError (ByteString, Location))
- resourceExists :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> m Bool
- firstExistingResource :: (MonadUnliftIO m, MonadCatch m) => Env -> [Location] -> m (Maybe Location)
- headS3Uri :: (MonadResource m, MonadCatch m) => Env -> S3Uri -> m (Either UriError HeadObjectResponse)
- writeResource :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> ByteString -> ExceptT UriError m (Maybe ETag)
- writeResourceWithParent :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> ByteString -> ExceptT UriError m (Maybe ETag)
- writeResource' :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> FilePath -> ExceptT UriError m (Maybe ETag)
- createLocalDirectoryIfMissing :: (MonadCatch m, MonadIO m) => Location -> m ()
- linkOrCopyResource :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> Location -> ExceptT UriError m ()
- readHttpUri :: (MonadIO m, MonadCatch m) => Text -> m (Either UriError ByteString)
- removePathRecursive :: (MonadIO m, MonadCatch m) => FilePath -> m (Either UriError ())
- listResourcePrefix :: (MonadUnliftIO m, MonadResource m) => Env -> Location -> ExceptT UriError m [Location]
Documentation
readResource :: (MonadResource m, MonadCatch m) => Env -> Location -> m (Either UriError ByteString) Source #
readFirstAvailableResource :: (MonadResource m, MonadCatch m) => Env -> [Location] -> m (Either UriError (ByteString, Location)) Source #
resourceExists :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> m Bool Source #
firstExistingResource :: (MonadUnliftIO m, MonadCatch m) => Env -> [Location] -> m (Maybe Location) Source #
headS3Uri :: (MonadResource m, MonadCatch m) => Env -> S3Uri -> m (Either UriError HeadObjectResponse) Source #
writeResource :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> ByteString -> ExceptT UriError m (Maybe ETag) Source #
Write a lazy bytestring to a location
writeResourceWithParent :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> ByteString -> ExceptT UriError m (Maybe ETag) Source #
Write a lazy bytestring to a location, creating the parent directory if necessary.
writeResource' :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> FilePath -> ExceptT UriError m (Maybe ETag) Source #
createLocalDirectoryIfMissing :: (MonadCatch m, MonadIO m) => Location -> m () Source #
linkOrCopyResource :: (MonadUnliftIO m, MonadCatch m) => Env -> Location -> Location -> ExceptT UriError m () Source #
readHttpUri :: (MonadIO m, MonadCatch m) => Text -> m (Either UriError ByteString) Source #
removePathRecursive :: (MonadIO m, MonadCatch m) => FilePath -> m (Either UriError ()) Source #
listResourcePrefix :: (MonadUnliftIO m, MonadResource m) => Env -> Location -> ExceptT UriError m [Location] Source #