Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Provides functionality for handling the directorysizes file in the FDO spec.
Synopsis
- newtype DirectorySizes = MkDirectorySizes {}
- data DirectorySizesEntry = MkDirectorySizesEntry {}
- appendEntry :: forall m env. (HasCallStack, HasTrashHome env, MonadCatch m, MonadLoggerNS m, MonadReader env m, MonadFileReader m, MonadFileWriter m, MonadPathReader m, MonadPathWriter m, MonadTime m) => DirectorySizesEntry -> m ()
- appendEntryTrashHome :: forall m. (HasCallStack, MonadCatch m, MonadLoggerNS m, MonadFileReader m, MonadFileWriter m, MonadPathReader m, MonadPathWriter m, MonadTime m) => PathI TrashHome -> DirectorySizesEntry -> m ()
- writeDirectorySizes :: (HasCallStack, HasTrashHome env, MonadCatch m, MonadFileWriter m, MonadLoggerNS m, MonadPathReader m, MonadPathWriter m, MonadReader env m, MonadTime m) => DirectorySizes -> m ()
- writeDirectorySizesTrashHome :: (HasCallStack, MonadCatch m, MonadFileWriter m, MonadLoggerNS m, MonadPathReader m, MonadPathWriter m, MonadTime m) => PathI TrashHome -> DirectorySizes -> m ()
- removeEntry :: (HasCallStack, HasTrashHome env, MonadCatch m, MonadReader env m, MonadFileReader m, MonadFileWriter m, MonadLoggerNS m, MonadPathReader m, MonadPathWriter m, MonadTime m) => ByteString -> m ()
- readDirectorySizes :: (HasCallStack, HasTrashHome env, MonadFileReader m, MonadPathReader m, MonadReader env m, MonadThrow m) => m DirectorySizes
- readDirectorySizesTrashHome :: (HasCallStack, MonadFileReader m, MonadPathReader m, MonadThrow m) => PathI TrashHome -> m DirectorySizes
- getDirectorySizesPath :: (HasTrashHome env, MonadReader env m) => m OsPath
Types
newtype DirectorySizes Source #
Represents the directorysizes contents.
Instances
data DirectorySizesEntry Source #
directorysizes entry.
Instances
Adding
appendEntry :: forall m env. (HasCallStack, HasTrashHome env, MonadCatch m, MonadLoggerNS m, MonadReader env m, MonadFileReader m, MonadFileWriter m, MonadPathReader m, MonadPathWriter m, MonadTime m) => DirectorySizesEntry -> m () Source #
Appends an entry to directorysizes.
appendEntryTrashHome :: forall m. (HasCallStack, MonadCatch m, MonadLoggerNS m, MonadFileReader m, MonadFileWriter m, MonadPathReader m, MonadPathWriter m, MonadTime m) => PathI TrashHome -> DirectorySizesEntry -> m () Source #
Appends an entry to directorysizes.
writeDirectorySizes :: (HasCallStack, HasTrashHome env, MonadCatch m, MonadFileWriter m, MonadLoggerNS m, MonadPathReader m, MonadPathWriter m, MonadReader env m, MonadTime m) => DirectorySizes -> m () Source #
Writes entries to directorysizes.
writeDirectorySizesTrashHome :: (HasCallStack, MonadCatch m, MonadFileWriter m, MonadLoggerNS m, MonadPathReader m, MonadPathWriter m, MonadTime m) => PathI TrashHome -> DirectorySizes -> m () Source #
Writes entries to directorysizes.
Removing
removeEntry :: (HasCallStack, HasTrashHome env, MonadCatch m, MonadReader env m, MonadFileReader m, MonadFileWriter m, MonadLoggerNS m, MonadPathReader m, MonadPathWriter m, MonadTime m) => ByteString -> m () Source #
Removes an entry from directory sizes.
Reading
readDirectorySizes :: (HasCallStack, HasTrashHome env, MonadFileReader m, MonadPathReader m, MonadReader env m, MonadThrow m) => m DirectorySizes Source #
Reads directorysizes.
readDirectorySizesTrashHome :: (HasCallStack, MonadFileReader m, MonadPathReader m, MonadThrow m) => PathI TrashHome -> m DirectorySizes Source #
Reads directorysizes.
getDirectorySizesPath :: (HasTrashHome env, MonadReader env m) => m OsPath Source #