iter 23.1.1: examples/prelude.ail.json — Ordering ADT skeleton

This commit is contained in:
2026-05-10 21:11:06 +02:00
parent 9cf616a593
commit cce3d9738e
+18
View File
@@ -0,0 +1,18 @@
{
"schema": "ailang/v0",
"name": "prelude",
"imports": [],
"defs": [
{
"kind": "type",
"name": "Ordering",
"vars": [],
"doc": "Result of a three-way comparison: LT (less than), EQ (equal), GT (greater than). Ships in milestone 23 as the codomain of Ord.compare.",
"ctors": [
{ "name": "LT", "fields": [] },
{ "name": "EQ", "fields": [] },
{ "name": "GT", "fields": [] }
]
}
]
}