Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data ContentAddressedDirectory
- init :: HashFunction -> FilePath -> ContentAddressedDirectory
- writeStreaming :: ContentAddressedDirectory -> (forall m. MonadIO m => (ByteString -> m ()) -> m ()) -> IO WriteResult
- writeLazy :: ContentAddressedDirectory -> ByteString -> IO WriteResult
- data WriteResult = WriteResult {}
- data WriteType
Type
:: HashFunction | Which hash function to use |
-> FilePath | Directory where content-addressed files are stored |
-> ContentAddressedDirectory |
Specification of a content-addressed directory
Write operations
:: ContentAddressedDirectory | The content-addressed file store to write to; see |
-> (forall m. MonadIO m => (ByteString -> m ()) -> m ()) | Monadic action which is allowed to emit |
-> IO WriteResult |
Write a stream of strict byte strings to a content-addressed directory
:: ContentAddressedDirectory | The content-addressed file store to write to; see |
-> ByteString | The content to write to the store |
-> IO WriteResult | The file path where the contents of the lazy byte string now reside. This path includes the store directory. |
Write a lazy byte string to a content-addressed directory
data WriteResult Source #
WriteResult | |
|