From 0b6113803a8b332303af58a8e8aacd841c884508 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 10 Mar 2026 09:17:44 +0100 Subject: [PATCH 1/5] add .resi files to existing exercises --- exercises/practice/hello-world/.meta/HelloWorld.resi | 1 + .../practice/resistor-color-duo/.meta/ResistorColorDuo.resi | 1 + exercises/practice/two-fer/.meta/TwoFer.resi | 1 + 3 files changed, 3 insertions(+) create mode 100644 exercises/practice/hello-world/.meta/HelloWorld.resi create mode 100644 exercises/practice/resistor-color-duo/.meta/ResistorColorDuo.resi create mode 100644 exercises/practice/two-fer/.meta/TwoFer.resi diff --git a/exercises/practice/hello-world/.meta/HelloWorld.resi b/exercises/practice/hello-world/.meta/HelloWorld.resi new file mode 100644 index 0000000..1d388cc --- /dev/null +++ b/exercises/practice/hello-world/.meta/HelloWorld.resi @@ -0,0 +1 @@ +let hello: unit => string diff --git a/exercises/practice/resistor-color-duo/.meta/ResistorColorDuo.resi b/exercises/practice/resistor-color-duo/.meta/ResistorColorDuo.resi new file mode 100644 index 0000000..6f40876 --- /dev/null +++ b/exercises/practice/resistor-color-duo/.meta/ResistorColorDuo.resi @@ -0,0 +1 @@ +let value: (array) => int diff --git a/exercises/practice/two-fer/.meta/TwoFer.resi b/exercises/practice/two-fer/.meta/TwoFer.resi new file mode 100644 index 0000000..62f49c2 --- /dev/null +++ b/exercises/practice/two-fer/.meta/TwoFer.resi @@ -0,0 +1 @@ +let twoFer: option => string From 66c28d21f7652d2752d1f6e18f2785d1a0b6268c Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 10 Mar 2026 09:20:14 +0100 Subject: [PATCH 2/5] auto-generate .resi file in .meta directory --- config.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 1c45156..b498ba3 100644 --- a/config.json +++ b/config.json @@ -26,7 +26,8 @@ "tests/%{pascal_slug}_test.res" ], "example": [ - ".meta/%{pascal_slug}.res" + ".meta/%{pascal_slug}.res", + ".meta/%{pascal_slug}.resi" ], "exemplar": [ ".meta/src/%{pascal_slug}.res" @@ -60,6 +61,14 @@ "practices": [], "prerequisites": [], "difficulty": 2 + }, + { + "slug": "binary-search", + "name": "Binary Search", + "uuid": "ae0c39ec-5ace-4ee5-8be3-e30e0e728bb2", + "practices": [], + "prerequisites": [], + "difficulty": 1 } ] }, From 9df73667a5a3199b8f2f76dc66b1f0e35c102f9e Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 10 Mar 2026 09:23:36 +0100 Subject: [PATCH 3/5] copy exercise interface file for testing --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 6b1e1a1..84bf17a 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,7 @@ copy-exercise: if [ -f exercises/practice/$(EXERCISE)/src/*.res ]; then \ echo "Copying $(EXERCISE)"; \ cp exercises/practice/$(EXERCISE)/.meta/*.res $(OUTDIR)/src/; \ + cp exercises/practice/$(EXERCISE)/.meta/*.resi $(OUTDIR)/src/; \ cp exercises/practice/$(EXERCISE)/tests/*.res $(OUTDIR)/tests/; \ fi From a43d2ecb4543b220053ebdad46026f61cea7a673 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 10 Mar 2026 09:27:27 +0100 Subject: [PATCH 4/5] remove exercise that was added to test changes --- config.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/config.json b/config.json index b498ba3..f5f5253 100644 --- a/config.json +++ b/config.json @@ -61,14 +61,6 @@ "practices": [], "prerequisites": [], "difficulty": 2 - }, - { - "slug": "binary-search", - "name": "Binary Search", - "uuid": "ae0c39ec-5ace-4ee5-8be3-e30e0e728bb2", - "practices": [], - "prerequisites": [], - "difficulty": 1 } ] }, From 2ffd916a2099a982352492f4f858a0ec79e88875 Mon Sep 17 00:00:00 2001 From: Owen Rees Date: Tue, 10 Mar 2026 19:33:41 +0100 Subject: [PATCH 5/5] add .resi file to exemplar --- config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index f5f5253..42c6eb3 100644 --- a/config.json +++ b/config.json @@ -30,7 +30,8 @@ ".meta/%{pascal_slug}.resi" ], "exemplar": [ - ".meta/src/%{pascal_slug}.res" + ".meta/src/%{pascal_slug}.res", + ".meta/src/%{pascal_slug}.resi" ], "editor": [ "src/%{pascal_slug}.resi"