-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin exposing %raw arity Only print to stderr for now? See #6213 * Use %ffi attribute and handle arity zero Move to using `%ffi` extension to avoid breaking changes, and begin checking arity zero. For a JS function of arity 0, check that the ReScript type is `unit => _`. * Check all arities and make error message gpt3.5-proof. Extend arity check to all arities. Iterate on the error message so gpt3.5 can figure out a correct fix when given the error message with no context. * One more example. * cleanup * format * comment * Update CHANGELOG.md
- Loading branch information
1 parent
86c905a
commit c72928e
Showing
9 changed files
with
87 additions
and
11 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@@uncurried | ||
|
||
let canUseCanvas: unit => bool = %ffi(` | ||
function canUseCanvas() { | ||
return !!document.createElement('canvas').getContext; | ||
} | ||
`) | ||
|
||
let add: (int, int) => int = %ffi(`(x,y)=>x+y`) |
Large diffs are not rendered by default.
Oops, something went wrong.