File tree Expand file tree Collapse file tree 9 files changed +136
-10
lines changed Expand file tree Collapse file tree 9 files changed +136
-10
lines changed Original file line number Diff line number Diff line change 1
1
####{BSB GENERATED: NO EDIT
2
+ FLG -ppx /Users/hzhang295/git/bucklescript/node_modules/reason/bin/ppx_lwt
2
3
S /Users/hzhang295/git/bucklescript/jscomp/bin/../lib/ocaml
3
4
B /Users/hzhang295/git/bucklescript/jscomp/bin/../lib/ocaml
4
5
FLG -ppx /Users/hzhang295/git/bucklescript/jscomp/bin/bsppx.exe
5
6
6
- FLG -w -40-30 -w +a
7
+ FLG -w -40 -bs-no-version-header -bs-cross-module-opt
7
8
S jscomp/test/
8
9
B lib/bs/jscomp/test/
9
10
Original file line number Diff line number Diff line change 17
17
" -bs-no-version-header" ,
18
18
" -bs-cross-module-opt"
19
19
],
20
- // "ppx-flags" :
21
- // [
22
- // "reason/bin/ppx_lwt"
23
- // ],
20
+ "ppx-flags" :
21
+ [
22
+ " reason/bin/ppx_lwt"
23
+ ],
24
24
// "js-post-build" :
25
25
// {
26
26
// "cmd" : "cat"
Original file line number Diff line number Diff line change 488
488
< h1 > < a href ="https://github.com/bloomberg/bucklescript "> BuckleScript</ a > User Manual</ h1 >
489
489
< div class ="details ">
490
490
< span id ="author " class ="author "> Hongbo Zhang</ span > < br >
491
- < span id ="revnumber "> version 1.3.4 </ span >
491
+ < span id ="revnumber "> version 1.4.2 </ span >
492
492
</ div >
493
493
< div id ="toc " class ="toc2 ">
494
494
< div id ="toctitle "> Table of Contents</ div >
@@ -5370,7 +5370,7 @@ <h3 id="_1_0"><a class="anchor" href="#_1_0"></a>1.0</h3>
5370
5370
</ div >
5371
5371
< div id ="footer ">
5372
5372
< div id ="footer-text ">
5373
- Version 1.3.4 < br >
5373
+ Version 1.4.2 < br >
5374
5374
</ div >
5375
5375
</ div >
5376
5376
</ body >
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ google_closure_test.cmj : test_google_closure.cmj mt.cmj
182
182
gpr496_test.cmj : ../stdlib/pervasives.cmj mt.cmj ../runtime/js.cmj
183
183
gpr_1063_test.cmj :
184
184
gpr_1072.cmj : ../runtime/js.cmj
185
+ gpr_1072_reg.cmj :
185
186
gpr_405_test.cmj : ../stdlib/hashtbl.cmj gpr_405_test.cmi
186
187
gpr_441.cmj :
187
188
gpr_459_test.cmj : mt.cmj
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ OTHERS := literals a test_ari test_export2 test_internalOO test_obj_simple_ffi t
88
88
include_side_effect\
89
89
exception_alias\
90
90
prepend_data_ffi\
91
- gbk
92
-
91
+ gbk\
92
+ gpr_1072_reg
93
93
94
94
SOURCE_LIST := $(OTHERS )
95
95
TESTS := $(addsuffix .cmj, $(SOURCE_LIST ) )
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+
4
+ var v1 = {
5
+ localeMatcher : "best fit" ,
6
+ formatMatcher : "basic" ,
7
+ day : "2-digit" ,
8
+ timeZoneName : "short"
9
+ } ;
10
+
11
+ exports . v1 = v1 ;
12
+ /* v1 Not a pure module */
Original file line number Diff line number Diff line change
1
+
2
+ type t
3
+
4
+
5
+ external make :
6
+ ?localeMatcher :
7
+ ([`lookup | `best_fit [@ bs.as "best fit" ]] [@ bs.string ]) ->
8
+
9
+ ?timeZone:string ->
10
+ ?hour12:bool ->
11
+ ?formatMatcher:
12
+ ([`basic | `best_fit [@ bs.as " best fit" ]] [@ bs.string ]) ->
13
+
14
+ ?weekday:([`narrow | `short | `long ] [@ bs.string ]) ->
15
+ ?era:([`narrow | `short | `long ] [@ bs.string ]) ->
16
+ ?year:([`numeric | `two_digit [@ bs.as " 2-digit" ]] [@ bs.string ]) ->
17
+ ?month:
18
+ ([`narrow |
19
+ `short |
20
+ `long |
21
+ `numeric |
22
+ `two_digit [@ bs.as " 2-digit" ]] [@ bs.string ]) ->
23
+
24
+ ?day:([`numeric | `two_digit [@ bs.as " 2-digit" ]] [@ bs.string ]) ->
25
+ ?hour:([`numeric | `two_digit [@ bs.as " 2-digit" ]] [@ bs.string ]) ->
26
+ ?minute:([`numeric | `two_digit [@ bs.as " 2-digit" ]] [@ bs.string ]) ->
27
+ ?second:([`numeric | `two_digit [@ bs.as " 2-digit" ]] [@ bs.string ]) ->
28
+ ?timeZoneName:([`short | `long ] [@ bs.string ]) ->
29
+ unit ->
30
+ t =
31
+ " " [@@ bs.obj]
32
+
33
+
34
+ let v1 =
35
+ make
36
+ ~locale Matcher:`best_fit
37
+ ~format Matcher:`basic
38
+ ~day: `two_digit
39
+ ~time ZoneName:`short
40
+ ()
41
+
42
+
43
+
44
+
45
+
46
+ (* * In the future we might allow below cases , issues are [`num] maybe escaped
47
+ we need prevent its escaping
48
+
49
+ external make2 :
50
+ ?localeMatcher:
51
+ ([`lookup | `best_fit [@bs.as "best fit"]] [@bs.string]) ->
52
+
53
+ ?timeZone:string ->
54
+ ?hour12:bool ->
55
+ ?formatMatcher:
56
+ ([`basic | `best_fit [@bs.as "best fit"]] [@bs.string]) ->
57
+
58
+ ?weekday:([`narrow | `short | `long] [@bs.string]) ->
59
+ ?era:([`narrow | `short | `long] [@bs.string]) ->
60
+ ?year:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
61
+ ?month:
62
+ ([`narrow |
63
+ `short |
64
+ `long |
65
+ `numeric |
66
+ `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
67
+
68
+ ?day:(([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) as 'num) ->
69
+ ?hour:('num) ->
70
+ ?minute:('num) ->
71
+ ?second:('num) ->
72
+ ?timeZoneName:([`short | `long] [@bs.string]) ->
73
+ unit ->
74
+ t =
75
+ "" [@@bs.obj]
76
+
77
+
78
+ let v2 =
79
+ make2
80
+ ~localeMatcher:`best_fit
81
+ ~formatMatcher:`basic
82
+ ~day:`two_digit
83
+ ~timeZoneName:`short
84
+ ~hour:`two_digit
85
+ ()
86
+ *)
Original file line number Diff line number Diff line change 1
1
# https://github.com/bloomberg/bucklescript[BuckleScript] User Manual
2
2
Hongbo Zhang
3
- v1.3.4
3
+ v1.4.2
4
4
:toc: left
5
5
:toclevels: 4
6
6
:source-highlighter: pygments
Original file line number Diff line number Diff line change
1
+
2
+
3
+
4
+ BuckleScript 1.4.2 release comes with quite a few enhancement.
5
+
6
+ Most notable features:
7
+
8
+ 1. The build system is ready to handle multiple npm packages, and its module system can be
9
+ overriden by the end user. For example, if the library A(end user) depends library B and library C,
10
+ we only need tell the build system that A needs goog module system, then B, C will be built using
11
+ goog module system too.
12
+
13
+ There are quite lots of enhancements to the build system, we strongly recommend users to re-read
14
+ the documentation http://bloomberg.github.io/bucklescript/Manual.html#_build_system_support
15
+
16
+ 2. FFI add a new feature: http://bloomberg.github.io/bucklescript/Manual.html#_fixed_arguments
17
+
18
+ 3. FFI can handle `bs.obj` and `bs.string` combination:
19
+ https://github.com/bloomberg/bucklescript/issues/1072
20
+
21
+
22
+
23
+
24
+
25
+
26
+
You can’t perform that action at this time.
0 commit comments