Documentation

Lean.Server.Rpc.Basic

instance Lean.Server.instMonadRpcSession {m : TypeType} {n : TypeType} [inst : MonadLift m n] [inst : Lean.Server.MonadRpcSession m] :
Equations
instance Lean.Server.instRpcEncoding {α : Type} [inst : Lean.FromJson α] [inst : Lean.ToJson α] :
Equations
instance Lean.Server.instRpcEncodingOption {α : Type} {β : outParam Type} [inst : Lean.Server.RpcEncoding α β] :
Equations
instance Lean.Server.instRpcEncodingArray {α : Type} {β : outParam Type} [inst : Lean.Server.RpcEncoding α β] :
Equations
instance Lean.Server.instRpcEncodingProd {α : Type} {α' : outParam Type} {β : Type} {β' : outParam Type} [inst : Lean.Server.RpcEncoding α α'] [inst : Lean.Server.RpcEncoding β β'] :
Lean.Server.RpcEncoding (α × β) (α' × β')
Equations
structure Lean.Server.WithRpcRef (α : Type u) :
Type u
  • val : α
instance Lean.Server.instInhabitedWithRpcRef :
{a : Type u_1} → [inst : Inhabited a] → Inhabited (Lean.Server.WithRpcRef a)
Equations
  • Lean.Server.instInhabitedWithRpcRef = { default := { val := default } }
unsafe def Lean.Server.WithRpcRef.encodeUnsafe {m : TypeType} [inst : Lean.Server.MonadRpcSession m] {α : Type u_1} [inst : Monad m] (typeName : Lean.Name) (r : Lean.Server.WithRpcRef α) :
Equations
unsafe def Lean.Server.WithRpcRef.decodeUnsafeAs {m : TypeType} [inst : Monad m] [inst : Lean.Server.MonadRpcSession m] (α : Type) (typeName : Lean.Name) (r : Lean.Lsp.RpcRef) :
Equations