From 0e684f5c8bc134d6c974292c42adcceca7801047 Mon Sep 17 00:00:00 2001 From: Liam S Mulcahy Date: Fri, 30 Aug 2024 15:17:57 -0400 Subject: [PATCH 1/2] updated Attr call, compiles on 5.2.0 --- lib/app.re | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/app.re b/lib/app.re index b854315..2453ca7 100644 --- a/lib/app.re +++ b/lib/app.re @@ -306,10 +306,7 @@ let view = }; Node.button( - ~attr= - Attr.many_without_merge([ - Attr.on_click(_ev => inject(actions)), - ]), + ~attrs=[Attr.on_click(_ev => inject(actions))], [Node.text(label)], ); }; @@ -317,15 +314,14 @@ let view = let input_node = { let+ (input_location, input_value) = input; Node.input( - ~attr= - Attr.many_without_merge([ - Attr.type_("text"), - Attr.string_property("value", input_value), - Attr.on_input((_ev, text) => - inject([Action.UpdateInput(input_location, text)]) - ), - ]), - [], + ~attrs=[ + Attr.type_("text"), + Attr.string_property("value", input_value), + Attr.on_input((_ev, text) => + inject([Action.UpdateInput(input_location, text)]) + ), + ], + (), ); }; From 17d34f74d0e7aaafb38a40f3b7db95e2916c9efa Mon Sep 17 00:00:00 2001 From: Liam S Mulcahy Date: Fri, 30 Aug 2024 15:26:11 -0400 Subject: [PATCH 2/2] Updated makefile, tested a full fresh install of deps and a new switch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c1ce2a2..d0245e2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Once you do that, I recommend you setup an opam switch just for this project. Yo To create the switch: ```sh -opam switch create diy-hazelnut 4.13.1 +opam switch create diy-hazelnut 5.2.0 ``` To set this switch as the currently active one: