package coq-lsp
Language Server Protocol native server for Coq
Install
Dune Dependency
Authors
Maintainers
Sources
coq-lsp-0.2.0.8.20.tbz
sha256=bcb9a4c3219aed47ffbfd7c8ea7a2f374140d8cdb76079927548f49c7e3576a9
sha512=945c0010b4952e41055cb7e35175d400e5c126dc340dd1c0ab53321605cd0d9539af6693a794cb81a9dec0385d0880d4417dae923b6d19c9b62913766a185d8c
doc/src/petanque_json/jAgent.ml.html
Source file jAgent.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
(* Serialization for agent types *) (* Implement State.t and Env.t serialization methods *) module State = Obj_map.Make (Petanque.Agent.State) module Inspect = struct type t = [%import: Petanque.Agent.State.Inspect.t] [@@deriving yojson] end (* The typical protocol dance *) (* What a mess result stuff is, we need this in case result is installed, as then the types below will be referenced as plain result ... *) module Stdlib = struct module Result = struct include Stdlib.Result type ('a, 'e) t = [%import: ('a, 'e) Stdlib.Result.t] [@@deriving yojson] end end module Result = Stdlib.Result (* ppx_import < 1.10 hack, for some reason it gets confused with the aliases. *) module Result_ = Stdlib.Result module Error = struct type t = [%import: Petanque.Agent.Error.t] [@@deriving yojson] end module Run_opts = struct type t = [%import: Petanque.Agent.Run_opts.t] [@@deriving yojson] end module Run_result = struct type 'a t = [%import: 'a Petanque.Agent.Run_result.t] [@@deriving yojson] end module R = struct type 'a t = [%import: ('a Petanque.Agent.R.t [@with Stdlib.Result.t := Result_.t; Result.t := Result_.t])] [@@deriving yojson] end module Goals = struct type t = string Lsp.JCoq.Goals.reified_pp option [@@deriving yojson] end module Lang = struct module Range = struct type t = Lsp.JLang.Range.t [@@deriving yojson] end module With_range = struct type 'a t = [%import: ('a Lang.With_range.t[@with Lang.Range.t := Range.t])] [@@deriving yojson] end module Ast = struct module Name = struct type t = [%import: Lang.Ast.Name.t] [@@deriving yojson] end module Info = struct type t = [%import: (Lang.Ast.Info.t [@with Lang.Range.t := Range.t; Lang.With_range.t := With_range.t])] [@@deriving yojson] end end end module Premise = struct module Info = struct type t = [%import: Petanque.Agent.Premise.Info.t] [@@deriving yojson] end type t = [%import: (Petanque.Agent.Premise.t [@with Stdlib.Result.t := Result_.t; Result.t := Result_.t])] [@@deriving yojson] end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>