Skip to content

Commit 06b0dc0

Browse files
reorg
1 parent 795fa09 commit 06b0dc0

File tree

62 files changed

+28305
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+28305
-58
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--- a/src-lwt/notty_lwt.ml
2+
+++ b/src-lwt/notty_lwt.ml
3+
@@ -43,7 +43,7 @@
4+
5+
let winches = lazy (
6+
let c = Lwt_condition.create () in
7+
- let `Revert _ = set_winch_handler (Lwt_condition.broadcast c) in
8+
+ let `Revert _ = set_winch_handler (Base.Obj.magic_portable (Lwt_condition.broadcast c)) in
9+
c
10+
)
11+
12+
--- a/src-lwt/notty_lwt.mli
13+
+++ b/src-lwt/notty_lwt.mli
14+
@@ -44,7 +44,14 @@
15+
16+
val image : t -> image -> unit Lwt.t
17+
val refresh : t -> unit Lwt.t
18+
- val cursor : t -> (int * int) option -> unit Lwt.t
19+
+ val cursor : t -> (int * int *
20+
+ [ `Bar
21+
+ | `Bar_blinking
22+
+ | `Block
23+
+ | `Block_blinking
24+
+ | `Default
25+
+ | `Underline
26+
+ | `Underline_blinking ] ) option -> unit Lwt.t
27+
28+
(** {1 Events} *)
29+

packages/notty-community/notty-community.0.2.4+ox/opam

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ conflicts: [
3636
]
3737
build: [
3838
["dune" "subst"] {dev}
39-
["rm" "-rf" "src-lwt"]
4039
[
4140
"dune"
4241
"build"
@@ -73,6 +72,7 @@ patches: [
7372
"notty-add_href_support.patch"
7473
"notty-default_color.patch"
7574
"dune.patch"
75+
"lwt.patch"
7676
]
7777
extra-files: [
7878
[
@@ -131,4 +131,8 @@ extra-files: [
131131
"dune.patch"
132132
"sha256=0c8ff250019a910256f1f4993de5c52bbaa8c6a38723fa5462d1acd12d38ec8c"
133133
]
134+
[
135+
"lwt.patch"
136+
"sha256=bf322ab32307d3b8acfe289e3db6c353d2e7cd4781bf924d0d2fc864298a2565"
137+
]
134138
]

packages/ppxlib/ppxlib.0.33.0+ox/files/dune.patch

Lines changed: 99 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,31 @@
4343
+++ b/shims/ast/dune
4444
@@ -0,0 +1,5 @@
4545
+(library
46-
+ (name ppxlib_ast)
46+
+ (name ppxlib_ast_shim)
4747
+ (wrapped false)
4848
+ (public_name ppxlib.ast)
4949
+ (libraries (re_export ppxlib_ast.ast)))
5050
--- /dev/null
5151
+++ b/shims/astlib/dune
5252
@@ -0,0 +1,5 @@
5353
+(library
54-
+ (name astlib)
54+
+ (name astlib_shim)
5555
+ (wrapped false)
5656
+ (public_name ppxlib.astlib)
5757
+ (libraries (re_export ppxlib_ast.astlib)))
5858
--- /dev/null
5959
+++ b/shims/stdppx/dune
6060
@@ -0,0 +1,5 @@
6161
+(library
62-
+ (name stdppx)
62+
+ (name stdppx_shim)
6363
+ (wrapped false)
6464
+ (public_name ppxlib.stdppx)
6565
+ (libraries (re_export ppxlib_ast.stdppx)))
6666
--- /dev/null
6767
+++ b/shims/traverse_builtins/dune
6868
@@ -0,0 +1,5 @@
6969
+(library
70-
+ (name ppxlib_traverse_builtins)
70+
+ (name ppxlib_traverse_builtins_shim)
7171
+ (wrapped false)
7272
+ (public_name ppxlib.traverse_builtins)
7373
+ (libraries (re_export ppxlib_ast.traverse_builtins)))
@@ -99,3 +99,98 @@
9999
+ (run ./gen/gen_ast_builder.exe %{lib:ppxlib_ast.ast:ast.ml})))
100100

101101
(ocamllex skip_hash_bang)
102+
--- a/ast/dune
103+
+++ b/ast/dune
104+
@@ -4,16 +4,16 @@
105+
106+
(library
107+
(name ppxlib_ast)
108+
- (public_name ppxlib.ast)
109+
- (libraries astlib stdlib-shims)
110+
+ (public_name ppxlib_ast.ast)
111+
+ (libraries astlib compiler-libs.common ocaml-compiler-libs.common ocaml-compiler-libs.shadow stdlib-shims)
112+
(flags
113+
- (:standard -safe-string)
114+
+ (:standard -safe-string -open Ocaml_shadow)
115+
-w
116+
-9-27-32)
117+
(preprocess
118+
(per_module
119+
((action
120+
- (run %{exe:pp/pp.exe} %{ocaml_version} %{input-file}))
121+
+ (run %{exe:pp/pp.exe} 9.99 %{input-file}))
122+
versions)))
123+
(lint
124+
(pps ppxlib_traverse -deriving-keep-w32=impl)))
125+
--- a/astlib/dune
126+
+++ b/astlib/dune
127+
@@ -1,6 +1,8 @@
128+
(library
129+
(name astlib)
130+
- (public_name ppxlib.astlib)
131+
+ (public_name ppxlib_ast.astlib)
132+
+ (modules ast_414 ast_500 ast_999 ast_metadata astlib config keyword location longident
133+
+ migrate_414_500 migrate_500_414 migrate_500_999 migrate_999_500 parse pprintast stdlib0)
134+
(libraries ocaml-compiler-libs.common compiler-libs.common)
135+
(flags -w -9)
136+
(preprocess
137+
@@ -10,7 +12,7 @@
138+
(rule
139+
(targets ast-version)
140+
(action
141+
- (run %{ocaml} %{dep:config/gen.ml} %{ocaml_version})))
142+
+ (run %{ocaml} %{dep:config/gen.ml} 9.99)))
143+
144+
(cinaps
145+
(files *.ml *.mli)
146+
--- a/stdppx/dune
147+
+++ b/stdppx/dune
148+
@@ -1,6 +1,6 @@
149+
(library
150+
(name stdppx)
151+
- (public_name ppxlib.stdppx)
152+
- (libraries sexplib0 stdlib-shims)
153+
+ (public_name ppxlib_ast.stdppx)
154+
+ (libraries sexplib0 stdlib-shims sexp_type)
155+
(flags
156+
(:standard -safe-string)))
157+
--- a/traverse_builtins/dune
158+
+++ b/traverse_builtins/dune
159+
@@ -1,5 +1,5 @@
160+
(library
161+
(name ppxlib_traverse_builtins)
162+
- (public_name ppxlib.traverse_builtins)
163+
+ (public_name ppxlib_ast.traverse_builtins)
164+
(flags
165+
(:standard -safe-string)))
166+
--- a/dune-project
167+
+++ b/dune-project
168+
@@ -13,6 +13,28 @@
169+
(documentation "https://ocaml-ppx.github.io/ppxlib/")
170+
171+
(package
172+
+ (name ppxlib_ast)
173+
+ (depends
174+
+ ocaml
175+
+ (ocaml-compiler-libs (>= v0.11.0))
176+
+ (ppx_derivers (>= 1.0))
177+
+ (sexplib0 (>= v0.12))
178+
+ stdlib-shims
179+
+ (synopsis "Standard infrastructure for ppx rewriters")
180+
+ (description "Ppxlib is the standard infrastructure for ppx rewriters
181+
+and other programs that manipulate the in-memory representation of
182+
+OCaml programs, a.k.a the \"Parsetree\".
183+
+
184+
+It also comes bundled with two ppx rewriters that are commonly used to
185+
+write tools that manipulate and/or generate Parsetree values;
186+
+`ppxlib.metaquot` which allows to construct Parsetree values using the
187+
+OCaml syntax directly and `ppxlib.traverse` which provides various
188+
+ways of automatically traversing values of a given type, in particular
189+
+allowing to inject a complex structured value into generated code.
190+
+")))
191+
+
192+
+
193+
+(package
194+
(name ppxlib)
195+
(depends
196+
ocaml

0 commit comments

Comments
 (0)