Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Erebos.Storage.Merge
Documentation
class Storable (Component a) => Mergeable a where Source #
Methods
mergeSorted :: [Stored (Component a)] -> a Source #
toComponents :: a -> [Stored (Component a)] Source #
Instances
Mergeable ChatroomState Source # | |
Defined in Erebos.Chatroom Associated Types type Component ChatroomState Source # Methods mergeSorted :: [Stored (Component ChatroomState)] -> ChatroomState Source # toComponents :: ChatroomState -> [Stored (Component ChatroomState)] Source # | |
Mergeable Contact Source # | |
Mergeable DirectMessageThreads Source # | |
Defined in Erebos.Message Associated Types Methods mergeSorted :: [Stored (Component DirectMessageThreads)] -> DirectMessageThreads Source # toComponents :: DirectMessageThreads -> [Stored (Component DirectMessageThreads)] Source # | |
Mergeable a => Mergeable (Set a) Source # | |
Mergeable (Maybe ComposedIdentity) Source # | |
Defined in Erebos.Identity Associated Types type Component (Maybe ComposedIdentity) Source # Methods mergeSorted :: [Stored (Component (Maybe ComposedIdentity))] -> Maybe ComposedIdentity Source # toComponents :: Maybe ComposedIdentity -> [Stored (Component (Maybe ComposedIdentity))] Source # | |
Mergeable [Stored Object] Source # | |
data Generation Source #
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 |
showGeneration :: Generation -> String Source #
compareGeneration :: Generation -> Generation -> Maybe Ordering Source #
storedGeneration :: Storable a => Stored a -> Generation Source #