Safe Haskell | None |
---|
Pure functions for manipulating the configuration state.
- data ConfigState = ConfigState {}
- csConfigDataL :: Iso' ConfigState ConfigData
- mkConfigState :: ConfigData -> ConfigState
- bumpSerial :: (SerialNoObjectL a, TimeStampObjectL a) => ClockTime -> a -> a
- needsFullDist :: ConfigState -> ConfigState -> Bool
Documentation
data ConfigState Source
In future this data type will include the current configuration
(ConfigData
) and the last FStat
of its file.
Eq ConfigState | |
Show ConfigState |
csConfigDataL :: Iso' ConfigState ConfigDataSource
mkConfigState :: ConfigData -> ConfigStateSource
Creates a new configuration state.
This method will expand as more fields are added to ConfigState
.
bumpSerial :: (SerialNoObjectL a, TimeStampObjectL a) => ClockTime -> a -> aSource
needsFullDist :: ConfigState -> ConfigState -> BoolSource
Given two versions of the configuration, determine if its distribution needs to be fully commited before returning the corresponding call to WConfD.