Safe Haskell | None |
---|---|
Language | Haskell98 |
- f' :: (BucketName -> ObjectKey -> a) -> Address -> a
- (+/) :: Text -> Text
- calculateChunks :: Int -> Int -> [(Int, Int, Int)]
- calculateChunksCapped :: Int -> Int -> Int -> [(Int, Int, Int)]
- bytesRange :: Int -> Int -> Text
- sinkChan :: MonadIO m => ConduitT () a m () -> Chan a -> m Int
- sinkChanWithDelay :: MonadIO m => Int -> ConduitT () a m () -> Chan a -> m Int
- sinkQueue :: Env -> ConduitT () a AWS () -> Queue a -> IO ()
- waitForNResults :: Int -> Chan a -> IO [a]
- withFileSafe :: (MonadCatch m, MonadIO m) => FilePath -> (FilePath -> m a) -> m a
Documentation
add a "/" at the end of some text if missing and if the text is not empty
withFileSafe :: (MonadCatch m, MonadIO m) => FilePath -> (FilePath -> m a) -> m a Source #
Create a temporary file location that can be used safely, and on a successful operation, do an (atomic) rename
NOTE: This function requires that the FilePath
provided in the callback exists, otherwise throws an exception