Copyright | (c) Colin Woodbury 2012 - 2018 |
---|---|
License | GPL3 |
Maintainer | Colin Woodbury <colin@fosskers.ca> |
Safe Haskell | None |
Language | Haskell2010 |
Handle the saving and restoring of installed package states.
Synopsis
- data PkgState = PkgState {}
- saveState :: Settings -> IO ()
- restoreState :: (Member (Reader Settings) r, Member (Error Failure) r, Member IO r) => Eff r ()
- inState :: SimplePkg -> PkgState -> Bool
- readState :: Path Absolute -> IO (Maybe PkgState)
- stateCache :: Path Absolute
- getStateFiles :: IO [Path Absolute]
Documentation
All packages installed at some specific ZonedTime
. Any "pinned" PkgState will
never be deleted by `-Bc`.
saveState :: Settings -> IO () Source #
Save a package state.
In writing the first state file, the states
directory is created automatically.
restoreState :: (Member (Reader Settings) r, Member (Error Failure) r, Member IO r) => Eff r () Source #
Does its best to restore a state chosen by the user.
inState :: SimplePkg -> PkgState -> Bool Source #
Does a given package have an entry in a particular PkgState
?
readState :: Path Absolute -> IO (Maybe PkgState) Source #
Given a FilePath
to a package state file, attempt to read and parse
its contents. As of Aura 2.0, only state files in JSON format are accepted.
stateCache :: Path Absolute Source #
The default location of all saved states: /var/cache/aura/states