Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exports all necessarry data types and functions for expressing and executing commands which allow modifying and querying the state of JSON in local replica
- iter :: Expr -> Expr
- next :: Expr -> Expr
- key :: Key Void -> Expr -> Expr
- doc :: Expr
- var :: Text -> Expr
- newtype Command a = Command {
- runCommand :: Free Cmd a
- yield :: Command ()
- keys :: Expr -> Command (Set (Key Void))
- values :: Expr -> Command [Val]
- insert :: Val -> Expr -> Command ()
- delete :: Expr -> Command ()
- bind :: Text -> Expr -> Command Expr
- (-<) :: Text -> Expr -> Command Expr
- assign :: Expr -> Val -> Command ()
- (=:) :: Expr -> Val -> Command ()
- string :: Text -> Val
- emptyMap :: Val
- emptyList :: Val
- eval :: Ctx m => Expr -> m Cursor
- execute :: Ctx m => Command a -> m a
- data Void :: *
- (.>) :: b -> (b -> a) -> a
- (&) :: a -> (a -> b) -> b
- sync :: (ReplicaId, Command a) -> (ReplicaId, Command b) -> Either EvalError (Eval a, Eval b)
Expressions
Commands
Command | |
|
Values
Evaluation and Execution
Re-exports
Uninhabited data type
Since: 4.8.0.0