| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Erebos.Storage.Internal
Documentation
data Storage' (c :: Type -> Type) Source #
Constructors
| Storage | |
Fields | |
data StorageBacking (c :: Type -> Type) Source #
Constructors
| StorageDir | |
Fields
| |
| StorageMemory | |
Fields
| |
Instances
| Eq (StorageBacking c) Source # | |
Defined in Erebos.Storage.Internal Methods (==) :: StorageBacking c -> StorageBacking c -> Bool # (/=) :: StorageBacking c -> StorageBacking c -> Bool # | |
data WatchList (c :: Type -> Type) Source #
Constructors
| WatchList | |
Fields
| |
data WatchListItem (c :: Type -> Type) Source #
Constructors
| WatchListItem | |
Constructors
| RefDigest (Digest Blake2b_256) |
Instances
| Show RefDigest Source # | |||||
| NFData RefDigest Source # | |||||
Defined in Erebos.Storage.Internal | |||||
| StorageCompleteness Partial Source # | |||||
Defined in Erebos.Storage.Internal Associated Types
Methods returnLoadResult :: Partial a -> LoadResult Partial a Source # ioLoadBytes :: Ref' Partial -> IO (Partial ByteString) Source # | |||||
| Eq RefDigest Source # | |||||
| Ord RefDigest Source # | |||||
| Hashable RefDigest Source # | |||||
Defined in Erebos.Storage.Internal | |||||
| ByteArrayAccess RefDigest Source # | |||||
| type LoadResult Partial a Source # | |||||
Defined in Erebos.Storage.Internal | |||||
showRefDigestParts :: RefDigest -> (ByteString, ByteString) Source #
showRefDigest :: RefDigest -> ByteString Source #
readRefDigest :: ByteString -> Maybe RefDigest Source #
refDigestFromByteString :: ByteArrayAccess ba => ba -> Maybe RefDigest Source #
showHex :: ByteArrayAccess ba => ba -> ByteString Source #
newtype Generation Source #
Constructors
| Generation Int |
Instances
| Show Generation Source # | |
Defined in Erebos.Storage.Internal Methods showsPrec :: Int -> Generation -> ShowS # show :: Generation -> String # showList :: [Generation] -> ShowS # | |
| Eq Generation Source # | |
Defined in Erebos.Storage.Internal | |
newtype HeadTypeID Source #
Constructors
| HeadTypeID UUID |
Instances
| StorableUUID HeadTypeID Source # | |
Defined in Erebos.Storage | |
| Eq HeadTypeID Source # | |
Defined in Erebos.Storage.Internal | |
| Ord HeadTypeID Source # | |
Defined in Erebos.Storage.Internal Methods compare :: HeadTypeID -> HeadTypeID -> Ordering # (<) :: HeadTypeID -> HeadTypeID -> Bool # (<=) :: HeadTypeID -> HeadTypeID -> Bool # (>) :: HeadTypeID -> HeadTypeID -> Bool # (>=) :: HeadTypeID -> HeadTypeID -> Bool # max :: HeadTypeID -> HeadTypeID -> HeadTypeID # min :: HeadTypeID -> HeadTypeID -> HeadTypeID # | |
data Stored' (c :: Type -> Type) a Source #
Instances
| Storable a => Storable (Stored a) Source # | |||||
| ZeroStorable a => ZeroStorable (Stored a) Source # | |||||
| Mergeable [Stored Object] Source # | |||||
Defined in Erebos.Storage.Merge Associated Types
| |||||
| Show a => Show (Stored' c a) Source # | |||||
| Eq (Stored' c a) Source # | |||||
| Ord (Stored' c a) Source # | |||||
Defined in Erebos.Storage.Internal | |||||
| type Component [Stored Object] Source # | |||||
Defined in Erebos.Storage.Merge | |||||
class (Traversable compl, Monad compl) => StorageCompleteness (compl :: Type -> Type) where Source #
Associated Types
type LoadResult (compl :: Type -> Type) a Source #
Methods
returnLoadResult :: compl a -> LoadResult compl a Source #
ioLoadBytes :: Ref' compl -> IO (compl ByteString) Source #
Instances
| StorageCompleteness Complete Source # | |||||
Defined in Erebos.Storage.Internal Associated Types
Methods returnLoadResult :: Complete a -> LoadResult Complete a Source # ioLoadBytes :: Ref' Complete -> IO (Complete ByteString) Source # | |||||
| StorageCompleteness Partial Source # | |||||
Defined in Erebos.Storage.Internal Associated Types
Methods returnLoadResult :: Partial a -> LoadResult Partial a Source # ioLoadBytes :: Ref' Partial -> IO (Partial ByteString) Source # | |||||
unsafeStoreRawBytes :: forall (c :: Type -> Type). Storage' c -> ByteString -> IO (Ref' c) Source #
ioLoadBytesFromStorage :: forall (c :: Type -> Type). Storage' c -> RefDigest -> IO (Maybe ByteString) Source #
writeFileOnce :: FilePath -> ByteString -> IO () Source #
writeFileChecked :: FilePath -> Maybe ByteString -> ByteString -> IO (Either (Maybe ByteString) ()) Source #