-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
4fa380a
commit a017353
Showing
190 changed files
with
4,359 additions
and
4,392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ type a = | |
| A2 | ||
and b = | ||
| B0 | ||
| B1 [@bs.as 3] | ||
| B1 [@mel.as 3] | ||
| B2 | ||
and c = [ | ||
| `c0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
|
||
let u = fun [@bs] x y -> x + y | ||
let u = fun [@u] x y -> x + y | ||
|
||
let h = u 1 2 [@bs] | ||
let h = u 1 2 [@u] | ||
|
||
type u = < v : int ; y : int > | ||
type ('a,'b) xx = | ||
(< case : (int -> (int -> 'a [@bs]) [@bs]); .. > as 'b) | ||
type ('a,'b) xx_uncurry = | ||
type u = < v : int ; y : int > | ||
type ('a,'b) xx = | ||
(< case : (int -> (int -> 'a [@u]) [@u]); .. > as 'b) | ||
type ('a,'b) xx_uncurry = | ||
(< case : int -> (int -> 'a ); .. > ) as 'b | ||
|
||
type yy_uncurry = < x : int > | ||
type yy = < x : int > | ||
type yy_uncurry = < x : int > | ||
type yy = < x : int > | ||
type number = float | ||
|
||
class type date = | ||
class type date = | ||
object | ||
method toDateString : unit -> string | ||
method getTime : unit -> number | ||
method setMilliseconds : number -> number | ||
method toDateString : unit -> string | ||
method getTime : unit -> number | ||
method setMilliseconds : number -> number | ||
method setSeconds : number -> number | ||
method setSeconds__2 : number -> number -> number | ||
method setUTCFullYear__3 : number -> number -> number -> number | ||
method toUTCString : unit -> string | ||
method toISOString : unit -> string | ||
method toJSON__ : unit -> string | ||
method toJSON__ : unit -> string | ||
method toJSON__1 : 'a -> string | ||
end | ||
|
||
|
||
let max2 : float -> float -> float [@bs] = | ||
fun [@bs] x y -> x +. y | ||
let max2 : float -> float -> float [@u] = | ||
fun [@u] x y -> x +. y | ||
|
||
let hh = max2 1. 2. [@bs] | ||
let hh = max2 1. 2. [@u] | ||
|
||
external des : string -> (unit -> unit [@bs.uncurry]) -> unit = "des" [@@bs.val] | ||
external des : string -> (unit -> unit [@mel.uncurry]) -> unit = "des" | ||
|
||
let f x = | ||
des x (fun () -> Js.log "hei") | ||
let f x = | ||
des x (fun () -> Js.log "hei") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.