Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Remove @@uncurried (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt authored Aug 11, 2024
1 parent 39310c3 commit 6d8a3b2
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 18 deletions.
3 changes: 1 addition & 2 deletions js/src/js_promise.res
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ type error
*/

@new
external make: ((~resolve: 'a => unit, ~reject: exn => unit) => unit) => promise<'a> =
"Promise"
external make: ((~resolve: 'a => unit, ~reject: exn => unit) => unit) => promise<'a> = "Promise"

/* `make (fun resolve reject -> .. )` */
@val @scope("Promise") external resolve: 'a => promise<'a> = "resolve"
Expand Down
3 changes: 1 addition & 2 deletions js/src/js_promise2.res
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ let catch: (promise<'a>, error => promise<'a>) => promise<'a> = %raw(`
`)

@new
external make: ((~resolve: 'a => unit, ~reject: exn => unit) => unit) => promise<'a> =
"Promise"
external make: ((~resolve: 'a => unit, ~reject: exn => unit) => unit) => promise<'a> = "Promise"

@val @scope("Promise") external resolve: 'a => promise<'a> = "resolve"
@val @scope("Promise") external reject: exn => promise<'a> = "reject"
Expand Down
4 changes: 0 additions & 4 deletions js/src/jsx.res
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*** Internal: use Jsx directly. */

@@uncurried

type element
type ref

Expand Down
4 changes: 0 additions & 4 deletions js/src/jsxDOM.res
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

/*** Internal: use JsxDOM directly. */

@@uncurried

type style = JsxDOMStyle.t
type domRef

Expand Down
4 changes: 0 additions & 4 deletions js/src/jsxEvent.res
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

/*** Internal: use JsxEvent directly. */

@@uncurried

type synthetic<'a>

module MakeEventWithType = (
Expand Down
2 changes: 0 additions & 2 deletions js/src/jsxPPXReactSupport.res
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
}
)

@@uncurried // Can't move this up as @inline not working with uncurried

@module("react")
external createElement: (Jsx.component<'props>, 'props) => Jsx.element = "createElement"

Expand Down

0 comments on commit 6d8a3b2

Please sign in to comment.