crjdt-haskell-0.3.0: A Conflict-Free Replicated JSON Datatype for Haskell
Data.Crjdt.Context
data Context Source #
Constructors
Fields
Instances
Methods
showsPrec :: Int -> Context -> ShowS #
show :: Context -> String #
showList :: [Context] -> ShowS #
get :: Eval Context #
put :: Context -> Eval () #
state :: (Context -> (a, Context)) -> Eval a #
data Cursor Source #
(==) :: Cursor -> Cursor -> Bool #
(/=) :: Cursor -> Cursor -> Bool #
showsPrec :: Int -> Cursor -> ShowS #
show :: Cursor -> String #
showList :: [Cursor] -> ShowS #
data Operation Source #
(==) :: Operation -> Operation -> Bool #
(/=) :: Operation -> Operation -> Bool #
showsPrec :: Int -> Operation -> ShowS #
show :: Operation -> String #
showList :: [Operation] -> ShowS #
data Tag Source #
(==) :: Tag -> Tag -> Bool #
(/=) :: Tag -> Tag -> Bool #
compare :: Tag -> Tag -> Ordering #
(<) :: Tag -> Tag -> Bool #
(<=) :: Tag -> Tag -> Bool #
(>) :: Tag -> Tag -> Bool #
(>=) :: Tag -> Tag -> Bool #
max :: Tag -> Tag -> Tag #
min :: Tag -> Tag -> Tag #
showsPrec :: Int -> Tag -> ShowS #
show :: Tag -> String #
showList :: [Tag] -> ShowS #
data Mutation Source #
(==) :: Mutation -> Mutation -> Bool #
(/=) :: Mutation -> Mutation -> Bool #
showsPrec :: Int -> Mutation -> ShowS #
show :: Mutation -> String #
showList :: [Mutation] -> ShowS #
data Document tag Source #
(==) :: Document tag -> Document tag -> Bool #
(/=) :: Document tag -> Document tag -> Bool #
showsPrec :: Int -> Document tag -> ShowS #
show :: Document tag -> String #
showList :: [Document tag] -> ShowS #
data Branch tag Source #
(==) :: Branch tag -> Branch tag -> Bool #
(/=) :: Branch tag -> Branch tag -> Bool #
showsPrec :: Int -> Branch tag -> ShowS #
show :: Branch tag -> String #
showList :: [Branch tag] -> ShowS #
newtype RegDocument Source #
(==) :: RegDocument -> RegDocument -> Bool #
(/=) :: RegDocument -> RegDocument -> Bool #
showsPrec :: Int -> RegDocument -> ShowS #
show :: RegDocument -> String #
showList :: [RegDocument] -> ShowS #
mempty :: RegDocument #
mappend :: RegDocument -> RegDocument -> RegDocument #
mconcat :: [RegDocument] -> RegDocument #
findChild :: Key Tag -> Document Tag -> Maybe (Document Tag) Source #
applyOp :: Operation -> Document Tag -> Document Tag Source #
getPresence :: Key Void -> Document Tag -> Set Id Source #
lookupCtx :: Var -> Context -> Maybe Cursor Source #
appendWith :: Tag -> Key Void -> Cursor -> Cursor Source #
docKey :: Key Tag Source #
stepNext :: Document Tag -> Cursor -> Cursor Source #