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 11####{BSB GENERATED: NO EDIT
2+ FLG -ppx /Users/hzhang295/git/bucklescript/node_modules/reason/bin/ppx_lwt
23S /Users/hzhang295/git/bucklescript/jscomp/bin/../lib/ocaml
34B /Users/hzhang295/git/bucklescript/jscomp/bin/../lib/ocaml
45FLG -ppx /Users/hzhang295/git/bucklescript/jscomp/bin/bsppx.exe
56
6- FLG -w -40-30 -w +a
7+ FLG -w -40 -bs-no-version-header -bs-cross-module-opt
78S jscomp/test/
89B lib/bs/jscomp/test/
910
Original file line number Diff line number Diff line change 1717 " -bs-no-version-header" ,
1818 " -bs-cross-module-opt"
1919 ],
20- // "ppx-flags" :
21- // [
22- // "reason/bin/ppx_lwt"
23- // ],
20+ "ppx-flags" :
21+ [
22+ " reason/bin/ppx_lwt"
23+ ],
2424 // "js-post-build" :
2525 // {
2626 // "cmd" : "cat"
Original file line number Diff line number Diff line change 488488< h1 > < a href ="https://github.com/bloomberg/bucklescript "> BuckleScript</ a > User Manual</ h1 >
489489< div class ="details ">
490490< 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 >
492492</ div >
493493< div id ="toc " class ="toc2 ">
494494< 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>
53705370</ div >
53715371< div id ="footer ">
53725372< div id ="footer-text ">
5373- Version 1.3.4 < br >
5373+ Version 1.4.2 < br >
53745374</ div >
53755375</ div >
53765376</ 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
182182gpr496_test.cmj : ../stdlib/pervasives.cmj mt.cmj ../runtime/js.cmj
183183gpr_1063_test.cmj :
184184gpr_1072.cmj : ../runtime/js.cmj
185+ gpr_1072_reg.cmj :
185186gpr_405_test.cmj : ../stdlib/hashtbl.cmj gpr_405_test.cmi
186187gpr_441.cmj :
187188gpr_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
8888 include_side_effect\
8989 exception_alias\
9090 prepend_data_ffi\
91- gbk
92-
91+ gbk\
92+ gpr_1072_reg
9393
9494SOURCE_LIST := $(OTHERS )
9595TESTS := $(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 11# https://github.com/bloomberg/bucklescript[BuckleScript] User Manual
22Hongbo Zhang
3- v1.3.4
3+ v1.4.2
44:toc: left
55:toclevels: 4
66: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