Commit 91d6870
committed
Fix Std.Show module and add to standard library compilation
- Add show.cure to stdlib compilation list in cure_cli.erl
- Implement exported helper functions show_list/1 and show_separated/2
- Fix export declarations to match function arities (/1 and /2)
- Create working example 13_show_simple.cure demonstrating Show usage
- Create test_show_import.cure to verify Show module imports
- Update cure_stdlib_signatures.erl with Show module signatures
- Remove legacy examples with unsupported syntax (dependent_types_demo, refinement_types)
This completes the typeclass import fix - Std.Show module now compiles
correctly and can be imported for using pre-defined Show instances.
Files modified:
- lib/std/show.cure: Added exports, implemented helper functions
- src/cure_cli.erl: Added show.cure to AllStdlibSources list
- src/types/cure_stdlib_signatures.erl: Added Show signatures
- examples/13_show_simple.cure: New working example
- examples/test_show_import.cure: New import test
Related fixes from previous commits:
- Guard compilation (load_var instruction, missing operators)
- FSM runtime (ETS table persistence with heir process)1 parent 41a9716 commit 91d6870
File tree
10 files changed
+82
-696
lines changed- examples
- lib/std
- src
- types
10 files changed
+82
-696
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
| 156 | + | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
This file was deleted.
This file was deleted.
0 commit comments