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

Remove @@uncurried #9

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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