File tree Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
- import * as Belt_Id from "bs-platform/lib/es6/belt_Id.js" ;
4
- import * as Caml_obj from "bs-platform/lib/es6/caml_obj.js" ;
5
- import * as Belt_SetDict from "bs-platform/lib/es6/belt_SetDict.js" ;
6
3
7
4
function s ( prim ) {
8
5
return prim ;
@@ -20,25 +17,8 @@ var ReactStuff = {
20
17
Unsafe : Unsafe
21
18
} ;
22
19
23
- var cmp = Caml_obj . caml_compare ;
24
-
25
- var IntCmp = Belt_Id . MakeComparable ( {
26
- cmp : cmp
27
- } ) ;
28
-
29
- var b = Belt_SetDict . fromArray ( /* array */ [
30
- 1 ,
31
- 2 ,
32
- 3
33
- ] , IntCmp . cmp ) ;
34
-
35
- var a = Belt_SetDict . empty ;
36
-
37
20
export {
38
21
ReactStuff ,
39
- IntCmp ,
40
- a ,
41
- b ,
42
22
43
23
}
44
- /* IntCmp Not a pure module */
24
+ /* No side effect */
Original file line number Diff line number Diff line change @@ -6,12 +6,3 @@ module ReactStuff = {
6
6
external elementAsString : React . element => string = "% identity " ;
7
7
};
8
8
};
9
-
10
- module IntCmp =
11
- Belt . Id . MakeComparable ({
12
- type t = int ;
13
- let cmp = Pervasives . compare;
14
- });
15
-
16
- let a = Belt . Set . Dict . empty;
17
- let b = Belt . Set . Dict . fromArray([| 1 , 2 , 3 |] , ~cmp= IntCmp . cmp);
You can’t perform that action at this time.
0 commit comments