on 51ce4d9 help sign in
1646 files changed+572−66099
since splitsnapshots
unifiedsplit
README.md+3−3 docs/compiler.md+3−49 docs/development.md+4−33 docs/open-questions.md+5−30 docs/prelude-inventory.md+4−35 docs/prompts/milestone-2.md+9−11 docs/spec/core-language.md+1−2 docs/spec/decisions.md+8−13 docs/spec/grammar.md+12−14 docs/spec/overview.md+6−6 docs/status.md+8−92 jibb-dev/lib/jibb-import.hoon+62−1582 jibb-dev/lib/jibb.hoon+150−5333 jibb-dev/lib/jibb/internal.jibb−16 jibb-dev/lib/jibb/prelude.jibb+5−282 my-app/mar/label.hoon−6 my-app/sur/blog.hoon+1−3 my-app/sur/import-fixture.hoon−7 tests/clay-fixtures/bridge-expected.txt−1 tests/clay-fixtures/bridge.txt−14 tests/clay-fixtures/ford-expected.txt−1 tests/clay-fixtures/ford-import-expected.txt−1 tests/clay-fixtures/ford-import.txt−12 tests/clay-fixtures/ford-nested-union-bridge-expected.txt−1 tests/clay-fixtures/ford-nested-union-bridge.txt−14 tests/clay-fixtures/ford-nested-union-expected.txt−1 tests/clay-fixtures/ford-nested-union.txt−9 tests/clay-fixtures/ford-recursive-expected.txt−1 tests/clay-fixtures/ford-recursive.txt−9 tests/clay-fixtures/ford.txt−13 tests/clay-fixtures/import-expected.txt−5 tests/clay-fixtures/import.txt−13 tests/clay-fixtures/mark-bridge-expected.txt−1 tests/clay-fixtures/mark-bridge.txt−11 tests/clay-fixtures/mark-import-expected.txt−1 tests/clay-fixtures/mark-import.txt−9 tests/clay-fixtures/mark-shape-expected.txt−1 tests/clay-fixtures/mark-shape.txt−14 tests/clay-fixtures/mark-update-import-expected.txt−1 tests/clay-fixtures/mark-update-import.txt−9 tests/clay-fixtures/record-bridge-expected.txt−1 tests/clay-fixtures/record-bridge.txt−11 tests/clay-fixtures/tlon-mop-expected.txt−1 tests/clay-fixtures/tlon-mop.txt−20 tests/golden/doc-grammar-04-step/about.txt−1 tests/golden/doc-grammar-04-step/modules.txt−1 tests/golden/doc-grammar-04-step/source.jibb+1−1 tests/golden/doc-grammar-04-step/tokens.txt+2−2 tests/golden/doc-grammar-04-step/tree.txt+1−1 tests/golden/doc-grammar-04-step/types.txt−3 tests/golden/doc-grammar-06-cart-store/about.txt−1 tests/golden/doc-grammar-06-cart-store/modules.txt−1 tests/golden/doc-grammar-06-cart-store/types.txt−2 tests/golden/inline-mold-opaque/about.txt+2−2 tests/golden/module-cache-dag/about.txt−4 tests/golden/module-cache-dag/module-trees.txt−46 tests/golden/module-cache-dag/modules.txt−8 tests/golden/module-cache-dag/modules/ui/n0.jibb−3 tests/golden/module-cache-dag/modules/ui/n1.jibb−3 tests/golden/module-cache-dag/modules/ui/n2.jibb−3 tests/golden/module-cache-dag/modules/ui/n3.jibb−3 tests/golden/module-cache-dag/modules/ui/n4.jibb−3 tests/golden/module-cache-dag/modules/ui/n5.jibb−3 tests/golden/module-cache-dag/modules/ui/n6.jibb−3 tests/golden/module-cache-dag/modules/ui/n7.jibb−1 tests/golden/module-cache-dag/source.jibb−2 tests/golden/module-cache-dag/tokens.txt−14 tests/golden/module-cache-dag/tree.txt−5 tests/golden/module-cache-dag/types.txt−2 tests/golden/module-cache-faces/about.txt−4 tests/golden/module-cache-faces/module-trees.txt−4 tests/golden/module-cache-faces/modules.txt−1 tests/golden/module-cache-faces/modules/ui/shared.jibb−1 tests/golden/module-cache-faces/source.jibb−4 tests/golden/module-cache-faces/tokens.txt−28 tests/golden/module-cache-faces/tree.txt−9 tests/golden/module-cache-faces/types.txt−3 tests/golden/module-cache-incomplete/about.txt−4 tests/golden/module-cache-incomplete/module-trees.txt−8 tests/golden/module-cache-incomplete/modules.txt−1 tests/golden/module-cache-incomplete/modules/ui/bad.jibb−2 tests/golden/module-cache-incomplete/source.jibb−3 tests/golden/module-cache-incomplete/tokens.txt−21 tests/golden/module-cache-incomplete/tree.txt−6 tests/golden/module-cache-incomplete/types.txt−2 tests/golden/module-cache-sibling-cycle/about.txt−4 tests/golden/module-cache-sibling-cycle/module-trees.txt−15 tests/golden/module-cache-sibling-cycle/modules.txt−3 tests/golden/module-cache-sibling-cycle/modules/ui/a.jibb−3 tests/golden/module-cache-sibling-cycle/modules/ui/b.jibb−2 tests/golden/module-cache-sibling-cycle/modules/ui/safe.jibb−1 tests/golden/module-cache-sibling-cycle/source.jibb−3 tests/golden/module-cache-sibling-cycle/tokens.txt−18 tests/golden/module-cache-sibling-cycle/tree.txt−4 tests/golden/module-cache-sibling-cycle/types.txt−2 tests/golden/module-fixture-eof/about.txt−3 tests/golden/module-fixture-eof/module-trees.txt−4 tests/golden/module-fixture-eof/modules.txt−1 tests/golden/module-fixture-eof/modules/ui/incomplete.jibb−1 tests/golden/module-fixture-eof/source.jibb−1 tests/golden/module-fixture-eof/tokens.txt−4 tests/golden/module-fixture-eof/tree.txt−2 tests/golden/module-import-atom-scheme/about.txt−4 tests/golden/module-import-atom-scheme/module-trees.txt−13 tests/golden/module-import-atom-scheme/modules.txt−2 tests/golden/module-import-atom-scheme/modules/ui/base.jibb−3 tests/golden/module-import-atom-scheme/modules/ui/mid.jibb−2 tests/golden/module-import-atom-scheme/source.jibb−4 tests/golden/module-import-atom-scheme/tokens.txt−31 tests/golden/module-import-atom-scheme/tree.txt−13 tests/golden/module-import-atom-scheme/types.txt−10 tests/golden/module-import-cycle/about.txt−4 tests/golden/module-import-cycle/module-trees.txt−16 tests/golden/module-import-cycle/modules.txt−2 tests/golden/module-import-cycle/modules/ui/a.jibb−2 tests/golden/module-import-cycle/modules/ui/b.jibb−2 tests/golden/module-import-cycle/path.txt−1 tests/golden/module-import-cycle/source.jibb−2 tests/golden/module-import-cycle/tokens.txt−14 tests/golden/module-import-cycle/tree.txt−5 tests/golden/module-import-cycle/types.txt−2 tests/golden/module-import-empty/about.txt−4 tests/golden/module-import-empty/modules.txt−1 tests/golden/module-import-empty/source.jibb−2 tests/golden/module-import-empty/tokens.txt−14 tests/golden/module-import-empty/tree.txt−5 tests/golden/module-import-empty/types.txt−2 tests/golden/module-import-face-shadow/about.txt−4 tests/golden/module-import-face-shadow/module-trees.txt−4 tests/golden/module-import-face-shadow/modules.txt−1 tests/golden/module-import-face-shadow/modules/ui/lib.jibb−1 tests/golden/module-import-face-shadow/source.jibb−4 tests/golden/module-import-face-shadow/tokens.txt−19 tests/golden/module-import-face-shadow/tree.txt−8 tests/golden/module-import-face-shadow/types.txt−2 tests/golden/module-import-identity/about.txt−4 tests/golden/module-import-identity/module-trees.txt−4 tests/golden/module-import-identity/modules.txt−1 tests/golden/module-import-identity/modules/ui/lib.jibb−1 tests/golden/module-import-identity/source.jibb−3 tests/golden/module-import-identity/tokens.txt−21 tests/golden/module-import-identity/tree.txt−8 tests/golden/module-import-identity/types.txt−3 tests/golden/module-import-invalid/about.txt−4 tests/golden/module-import-invalid/module-trees.txt−4 tests/golden/module-import-invalid/modules.txt−1 tests/golden/module-import-invalid/modules/ui/lib.jibb−1 tests/golden/module-import-invalid/source.jibb−2 tests/golden/module-import-invalid/tokens.txt−14 tests/golden/module-import-invalid/tree.txt−5 tests/golden/module-import-invalid/types.txt−2 tests/golden/module-import-missing-member/about.txt−4 tests/golden/module-import-missing-member/module-trees.txt−4 tests/golden/module-import-missing-member/modules.txt−1 tests/golden/module-import-missing-member/modules/ui/lib.jibb−1 tests/golden/module-import-missing-member/source.jibb−2 tests/golden/module-import-missing-member/tokens.txt−14 tests/golden/module-import-missing-member/tree.txt−5 tests/golden/module-import-missing-member/types.txt−2 tests/golden/module-import-mold/about.txt−4 tests/golden/module-import-mold/module-trees.txt−3 tests/golden/module-import-mold/modules.txt−1 tests/golden/module-import-mold/modules/ui/lib.jibb−1 tests/golden/module-import-mold/source.jibb−2 tests/golden/module-import-mold/tokens.txt−15 tests/golden/module-import-mold/tree.txt−6 tests/golden/module-import-mold/types.txt−2 tests/golden/module-import-prelude-cross-namespace/about.txt−4 tests/golden/module-import-prelude-cross-namespace/modules.txt−1 tests/golden/module-import-prelude-cross-namespace/source.jibb−1 tests/golden/module-import-prelude-cross-namespace/tokens.txt−7 tests/golden/module-import-prelude-cross-namespace/tree.txt−3 tests/golden/module-import-prelude-cross-namespace/types.txt−2 tests/golden/module-import-prelude-mold-shadow/about.txt−4 tests/golden/module-import-prelude-mold-shadow/modules.txt−1 tests/golden/module-import-prelude-mold-shadow/source.jibb−2 tests/golden/module-import-prelude-mold-shadow/tokens.txt−8 tests/golden/module-import-prelude-mold-shadow/tree.txt−3 tests/golden/module-import-prelude-mold-shadow/types.txt−2 tests/golden/module-import-prelude-sample-shadow/about.txt−4 tests/golden/module-import-prelude-sample-shadow/module-trees.txt−4 tests/golden/module-import-prelude-sample-shadow/modules.txt−1 tests/golden/module-import-prelude-sample-shadow/modules/ui/lib.jibb−1 tests/golden/module-import-prelude-sample-shadow/source.jibb−2 tests/golden/module-import-prelude-sample-shadow/tokens.txt−14 tests/golden/module-import-prelude-sample-shadow/tree.txt−4 tests/golden/module-import-prelude-sample-shadow/types.txt−2 tests/golden/module-import-prelude-value-shadow/about.txt−4 tests/golden/module-import-prelude-value-shadow/module-trees.txt−4 tests/golden/module-import-prelude-value-shadow/modules.txt−1 tests/golden/module-import-prelude-value-shadow/modules/ui/lib.jibb−1 tests/golden/module-import-prelude-value-shadow/source.jibb−2 tests/golden/module-import-prelude-value-shadow/tokens.txt−11 tests/golden/module-import-prelude-value-shadow/tree.txt−3 tests/golden/module-import-prelude-value-shadow/types.txt−2 tests/golden/module-import-root-cycle/about.txt−4 tests/golden/module-import-root-cycle/module-trees.txt−8 tests/golden/module-import-root-cycle/modules.txt−1 tests/golden/module-import-root-cycle/modules/ui/a.jibb−2 tests/golden/module-import-root-cycle/path.txt−1 tests/golden/module-import-root-cycle/source.jibb−2 tests/golden/module-import-root-cycle/tokens.txt−17 tests/golden/module-import-root-cycle/tree.txt−7 tests/golden/module-import-root-cycle/types.txt−2 tests/golden/module-import-root-import-shadow/about.txt−4 tests/golden/module-import-root-import-shadow/imports.txt−1 tests/golden/module-import-root-import-shadow/mar/label.txt−5 tests/golden/module-import-root-import-shadow/marks.txt−1 tests/golden/module-import-root-import-shadow/modules.txt−1 tests/golden/module-import-root-import-shadow/source.jibb−4 tests/golden/module-import-root-import-shadow/sur/fixture.txt−3 tests/golden/module-import-root-import-shadow/tokens.txt−20 tests/golden/module-import-root-import-shadow/tree.txt−7 tests/golden/module-import-root-import-shadow/types.txt−3 tests/golden/module-import-separate-namespaces/about.txt−4 tests/golden/module-import-separate-namespaces/module-trees.txt−5 tests/golden/module-import-separate-namespaces/modules.txt−1 tests/golden/module-import-separate-namespaces/modules/ui/lib.jibb−2 tests/golden/module-import-separate-namespaces/source.jibb−3 tests/golden/module-import-separate-namespaces/tokens.txt−22 tests/golden/module-import-separate-namespaces/tree.txt−9 tests/golden/module-import-separate-namespaces/types.txt−3 tests/golden/module-import-sur-scope/about.txt−4 tests/golden/module-import-sur-scope/imports.txt−1 tests/golden/module-import-sur-scope/module-trees.txt−6 tests/golden/module-import-sur-scope/modules.txt−1 tests/golden/module-import-sur-scope/modules/ui/lib.jibb−1 tests/golden/module-import-sur-scope/source.jibb−4 tests/golden/module-import-sur-scope/sur/fixture.txt−3 tests/golden/module-import-sur-scope/tokens.txt−25 tests/golden/module-import-sur-scope/tree.txt−10 tests/golden/module-import-sur-scope/types.txt−2 tests/golden/module-import-transitive/about.txt−4 tests/golden/module-import-transitive/module-trees.txt−20 tests/golden/module-import-transitive/modules.txt−3 tests/golden/module-import-transitive/modules/ui/a.jibb−2 tests/golden/module-import-transitive/modules/ui/b.jibb−2 tests/golden/module-import-transitive/modules/ui/c.jibb−1 tests/golden/module-import-transitive/path.txt−1 tests/golden/module-import-transitive/source.jibb−2 tests/golden/module-import-transitive/tokens.txt−14 tests/golden/module-import-transitive/tree.txt−5 tests/golden/module-import-transitive/types.txt−2 tests/golden/module-import-unused-invalid/about.txt−4 tests/golden/module-import-unused-invalid/module-trees.txt−8 tests/golden/module-import-unused-invalid/modules.txt−2 tests/golden/module-import-unused-invalid/modules/ui/good.jibb−1 tests/golden/module-import-unused-invalid/modules/ui/unused.jibb−1 tests/golden/module-import-unused-invalid/source.jibb−2 tests/golden/module-import-unused-invalid/tokens.txt−14 tests/golden/module-import-unused-invalid/tree.txt−5 tests/golden/module-import-unused-invalid/types.txt−2 tests/golden/parser-hole-parameter-rejected/about.txt−3 tests/golden/parser-hole-parameter-rejected/source.jibb−1 tests/golden/parser-hole-parameter-rejected/tokens.txt−8 tests/golden/parser-hole-parameter-rejected/tree.txt−3 tests/golden/parser-hole-path-space/about.txt−3 tests/golden/parser-hole-path-space/source.jibb−1 tests/golden/parser-hole-path-space/tokens.txt−9 tests/golden/parser-hole-path-space/tree.txt−3 tests/golden/parser-hole-path/about.txt−3 tests/golden/parser-hole-path/source.jibb−4 tests/golden/parser-hole-path/tokens.txt−28 tests/golden/parser-hole-path/tree.txt−5 tests/golden/parser-hole-pattern-rejected/about.txt−3 tests/golden/parser-hole-pattern-rejected/source.jibb−3 tests/golden/parser-hole-pattern-rejected/tokens.txt−15 tests/golden/parser-hole-pattern-rejected/tree.txt−3 tests/golden/parser-hole-shapes/about.txt−3 tests/golden/parser-hole-shapes/source.jibb−11 tests/golden/parser-hole-shapes/tokens.txt−121 tests/golden/parser-hole-shapes/tree.txt−47 tests/golden/parser-hole-value-rejected/about.txt−3 tests/golden/parser-hole-value-rejected/source.jibb−1 tests/golden/parser-hole-value-rejected/tokens.txt−4 tests/golden/parser-hole-value-rejected/tree.txt−3 tests/golden/prelude-1c-structural/about.txt−4 tests/golden/prelude-1c-structural/source.jibb−122 tests/golden/prelude-1c-structural/tokens.txt−731 tests/golden/prelude-1c-structural/tree.txt−290 tests/golden/prelude-1c-structural/types.txt−37 tests/golden/prelude-3g-basic/about.txt−4 tests/golden/prelude-3g-basic/source.jibb−62 tests/golden/prelude-3g-basic/tokens.txt−354 tests/golden/prelude-3g-basic/tree.txt−156 tests/golden/prelude-3g-basic/types.txt−15 tests/golden/prelude-3g-like/about.txt−4 tests/golden/prelude-3g-like/source.jibb−102 tests/golden/prelude-3g-like/tokens.txt−613 tests/golden/prelude-3g-like/tree.txt−248 tests/golden/prelude-3g-like/types.txt−30 tests/golden/prelude-3g-structural/about.txt−4 tests/golden/prelude-3g-structural/source.jibb−95 tests/golden/prelude-3g-structural/tokens.txt−564 tests/golden/prelude-3g-structural/tree.txt−228 tests/golden/prelude-3g-structural/types.txt−28 tests/golden/prelude-list-helpers/about.txt−4 tests/golden/prelude-list-helpers/source.jibb−140 tests/golden/prelude-list-helpers/tokens.txt−853 tests/golden/prelude-list-helpers/tree.txt−346 tests/golden/prelude-list-helpers/types.txt−41 tests/golden/prelude-list-unit/about.txt+1−1 tests/golden/prelude-list-unit/source.jibb+6−8 tests/golden/prelude-list-unit/tokens.txt+72−86 tests/golden/prelude-list-unit/tree.txt+31−37 tests/golden/prelude-list-unit/types.txt+2−2 tests/golden/prelude-unit-list-transforms/about.txt−4 tests/golden/prelude-unit-list-transforms/source.jibb−319 tests/golden/prelude-unit-list-transforms/tokens.txt−2067 tests/golden/prelude-unit-list-transforms/tree.txt−901 tests/golden/prelude-unit-list-transforms/types.txt−65 tests/golden/types-capital-distinct/about.txt−4 tests/golden/types-capital-distinct/source.jibb−6 tests/golden/types-capital-distinct/tokens.txt−73 tests/golden/types-capital-distinct/tree.txt−33 tests/golden/types-capital-distinct/types.txt−19 tests/golden/types-cell-pattern-many/about.txt−4 tests/golden/types-cell-pattern-many/modules.txt−1 tests/golden/types-cell-pattern-many/source.jibb−41 tests/golden/types-cell-pattern-many/tokens.txt−315 tests/golden/types-cell-pattern-many/tree.txt−144 tests/golden/types-cell-pattern-many/types.txt−14 tests/golden/types-cell-pattern-schemes/about.txt−4 tests/golden/types-cell-pattern-schemes/modules.txt−1 tests/golden/types-cell-pattern-schemes/source.jibb−23 tests/golden/types-cell-pattern-schemes/tokens.txt−168 tests/golden/types-cell-pattern-schemes/tree.txt−70 tests/golden/types-cell-pattern-schemes/types.txt−16 tests/golden/types-cell-pattern-tail/about.txt−4 tests/golden/types-cell-pattern-tail/modules.txt−1 tests/golden/types-cell-pattern-tail/source.jibb−18 tests/golden/types-cell-pattern-tail/tokens.txt−126 tests/golden/types-cell-pattern-tail/tree.txt−59 tests/golden/types-cell-pattern-tail/types.txt−7 tests/golden/types-deferred-call-context/about.txt−4 tests/golden/types-deferred-call-context/modules.txt−1 tests/golden/types-deferred-call-context/source.jibb−56 tests/golden/types-deferred-call-context/tokens.txt−557 tests/golden/types-deferred-call-context/tree.txt−272 tests/golden/types-deferred-call-context/types.txt−82 tests/golden/types-flag-branch-context/about.txt−4 tests/golden/types-flag-branch-context/modules.txt−1 tests/golden/types-flag-branch-context/source.jibb−83 tests/golden/types-flag-branch-context/tokens.txt−496 tests/golden/types-flag-branch-context/tree.txt−244 tests/golden/types-flag-branch-context/types.txt−33 tests/golden/types-generic-arity/about.txt−4 tests/golden/types-generic-arity/source.jibb−4 tests/golden/types-generic-arity/tokens.txt−64 tests/golden/types-generic-arity/tree.txt−23 tests/golden/types-generic-arity/types.txt−5 tests/golden/types-generic-face-inference/about.txt−4 tests/golden/types-generic-face-inference/source.jibb−8 tests/golden/types-generic-face-inference/tokens.txt−134 tests/golden/types-generic-face-inference/tree.txt−56 tests/golden/types-generic-face-inference/types.txt−13 tests/golden/types-generic-gates/about.txt−4 tests/golden/types-generic-gates/source.jibb−4 tests/golden/types-generic-gates/tokens.txt−59 tests/golden/types-generic-gates/tree.txt−21 tests/golden/types-generic-gates/types.txt−5 tests/golden/types-generic-import-reverse/about.txt−4 tests/golden/types-generic-import-reverse/module-trees.txt−7 tests/golden/types-generic-import-reverse/modules.txt−1 tests/golden/types-generic-import-reverse/modules/ui/lib.jibb−1 tests/golden/types-generic-import-reverse/source.jibb−3 tests/golden/types-generic-import-reverse/tokens.txt−50 tests/golden/types-generic-import-reverse/tree.txt−18 tests/golden/types-generic-import-reverse/types.txt−3 tests/golden/types-generic-lexical-alias/about.txt−4 tests/golden/types-generic-lexical-alias/source.jibb−3 tests/golden/types-generic-lexical-alias/tokens.txt−35 tests/golden/types-generic-lexical-alias/tree.txt−13 tests/golden/types-generic-lexical-alias/types.txt−4 tests/golden/types-generic-local-parameter/about.txt−4 tests/golden/types-generic-local-parameter/source.jibb−3 tests/golden/types-generic-local-parameter/tokens.txt−37 tests/golden/types-generic-local-parameter/tree.txt−15 tests/golden/types-generic-local-parameter/types.txt−2 tests/golden/types-generic-local-scope/about.txt−4 tests/golden/types-generic-local-scope/source.jibb−3 tests/golden/types-generic-local-scope/tokens.txt−37 tests/golden/types-generic-local-scope/tree.txt−15 tests/golden/types-generic-local-scope/types.txt−2 tests/golden/types-generic-module/about.txt−4 tests/golden/types-generic-module/module-trees.txt−7 tests/golden/types-generic-module/modules.txt−1 tests/golden/types-generic-module/modules/ui/lib.jibb−1 tests/golden/types-generic-module/source.jibb−3 tests/golden/types-generic-module/tokens.txt−39 tests/golden/types-generic-module/tree.txt−14 tests/golden/types-generic-module/types.txt−3 tests/golden/types-generic-nested-scope/about.txt−4 tests/golden/types-generic-nested-scope/source.jibb−3 tests/golden/types-generic-nested-scope/tokens.txt−56 tests/golden/types-generic-nested-scope/tree.txt−21 tests/golden/types-generic-nested-scope/types.txt−4 tests/golden/types-generic-parameters/about.txt−4 tests/golden/types-generic-parameters/source.jibb−4 tests/golden/types-generic-parameters/tokens.txt−64 tests/golden/types-generic-parameters/tree.txt−23 tests/golden/types-generic-parameters/types.txt−5 tests/golden/types-generic-record/about.txt−4 tests/golden/types-generic-record/source.jibb−3 tests/golden/types-generic-record/tokens.txt−47 tests/golden/types-generic-record/tree.txt−18 tests/golden/types-generic-record/types.txt−4 tests/golden/types-generic-recursive-union/about.txt−4 tests/golden/types-generic-recursive-union/source.jibb−6 tests/golden/types-generic-recursive-union/tokens.txt−58 tests/golden/types-generic-recursive-union/tree.txt−24 tests/golden/types-generic-recursive-union/types.txt−5 tests/golden/types-generic-repeated/about.txt−4 tests/golden/types-generic-repeated/source.jibb−3 tests/golden/types-generic-repeated/tokens.txt−47 tests/golden/types-generic-repeated/tree.txt−18 tests/golden/types-generic-repeated/types.txt−10 tests/golden/types-generic-union-alias-face/about.txt−4 tests/golden/types-generic-union-alias-face/module-trees.txt−11 tests/golden/types-generic-union-alias-face/modules.txt−1 tests/golden/types-generic-union-alias-face/modules/ui/base.jibb−3 tests/golden/types-generic-union-alias-face/source.jibb−6 tests/golden/types-generic-union-alias-face/tokens.txt−75 tests/golden/types-generic-union-alias-face/tree.txt−24 tests/golden/types-generic-union-alias-face/types.txt−12 tests/golden/types-generic-union-alias/about.txt−4 tests/golden/types-generic-union-alias/source.jibb−23 tests/golden/types-generic-union-alias/tokens.txt−248 tests/golden/types-generic-union-alias/tree.txt−86 tests/golden/types-generic-union-alias/types.txt−22 tests/golden/types-generic-union-capitals/about.txt−4 tests/golden/types-generic-union-capitals/source.jibb−17 tests/golden/types-generic-union-capitals/tokens.txt−162 tests/golden/types-generic-union-capitals/tree.txt−68 tests/golden/types-generic-union-capitals/types.txt−34 tests/golden/types-generic-union-errors/about.txt−4 tests/golden/types-generic-union-errors/source.jibb−11 tests/golden/types-generic-union-errors/tokens.txt−93 tests/golden/types-generic-union-errors/tree.txt−36 tests/golden/types-generic-union-errors/types.txt−26 tests/golden/types-generic-union-escaping/about.txt−4 tests/golden/types-generic-union-escaping/module-trees.txt−16 tests/golden/types-generic-union-escaping/modules.txt−2 tests/golden/types-generic-union-escaping/modules/ui/base.jibb−3 tests/golden/types-generic-union-escaping/modules/ui/mid.jibb−3 tests/golden/types-generic-union-escaping/source.jibb−3 tests/golden/types-generic-union-escaping/tokens.txt−15 tests/golden/types-generic-union-escaping/tree.txt−4 tests/golden/types-generic-union-escaping/types.txt−3 tests/golden/types-generic-union-import/about.txt−4 tests/golden/types-generic-union-import/module-trees.txt−32 tests/golden/types-generic-union-import/modules.txt−2 tests/golden/types-generic-union-import/modules/ui/shared.jibb−4 tests/golden/types-generic-union-import/modules/ui/twin.jibb−4 tests/golden/types-generic-union-import/source.jibb−9 tests/golden/types-generic-union-import/tokens.txt−79 tests/golden/types-generic-union-import/tree.txt−27 tests/golden/types-generic-union-import/types.txt−7 tests/golden/types-generic-union-local/about.txt−4 tests/golden/types-generic-union-local/source.jibb−34 tests/golden/types-generic-union-local/tokens.txt−297 tests/golden/types-generic-union-local/tree.txt−120 tests/golden/types-generic-union-local/types.txt−22 tests/golden/types-generic-union-transitive/about.txt−4 tests/golden/types-generic-union-transitive/module-trees.txt−27 tests/golden/types-generic-union-transitive/modules.txt−2 tests/golden/types-generic-union-transitive/modules/ui/base.jibb−3 tests/golden/types-generic-union-transitive/modules/ui/mid.jibb−4 tests/golden/types-generic-union-transitive/source.jibb−5 tests/golden/types-generic-union-transitive/tokens.txt−43 tests/golden/types-generic-union-transitive/tree.txt−15 tests/golden/types-generic-union-transitive/types.txt−5 tests/golden/types-hole-concrete/about.txt−4 tests/golden/types-hole-concrete/source.jibb−6 tests/golden/types-hole-concrete/tokens.txt−54 tests/golden/types-hole-concrete/tree.txt−22 tests/golden/types-hole-concrete/types.txt−10 tests/golden/types-hole-generic-mold/about.txt−4 tests/golden/types-hole-generic-mold/source.jibb−2 tests/golden/types-hole-generic-mold/tokens.txt−26 tests/golden/types-hole-generic-mold/tree.txt−11 tests/golden/types-hole-generic-mold/types.txt−6 tests/golden/types-hole-local-boundary/about.txt−4 tests/golden/types-hole-local-boundary/source.jibb−16 tests/golden/types-hole-local-boundary/tokens.txt−118 tests/golden/types-hole-local-boundary/tree.txt−55 tests/golden/types-hole-local-boundary/types.txt−17 tests/golden/types-hole-module-boundary/about.txt−4 tests/golden/types-hole-module-boundary/module-trees.txt−6 tests/golden/types-hole-module-boundary/modules.txt−1 tests/golden/types-hole-module-boundary/modules/ui/lib.jibb−1 tests/golden/types-hole-module-boundary/source.jibb−2 tests/golden/types-hole-module-boundary/tokens.txt−14 tests/golden/types-hole-module-boundary/tree.txt−5 tests/golden/types-hole-module-boundary/types.txt−2 tests/golden/types-hole-named-complex/about.txt−4 tests/golden/types-hole-named-complex/source.jibb−2 tests/golden/types-hole-named-complex/tokens.txt−20 tests/golden/types-hole-named-complex/tree.txt−9 tests/golden/types-hole-named-complex/types.txt−3 tests/golden/types-hole-numeric-capture/about.txt−4 tests/golden/types-hole-numeric-capture/source.jibb−19 tests/golden/types-hole-numeric-capture/tokens.txt−127 tests/golden/types-hole-numeric-capture/tree.txt−62 tests/golden/types-hole-numeric-capture/types.txt−10 tests/golden/types-hole-unbound-mold/about.txt−4 tests/golden/types-hole-unbound-mold/source.jibb−2 tests/golden/types-hole-unbound-mold/tokens.txt−19 tests/golden/types-hole-unbound-mold/tree.txt−9 tests/golden/types-hole-unbound-mold/types.txt−3 tests/golden/types-hole-unsupported/about.txt−4 tests/golden/types-hole-unsupported/source.jibb−2 tests/golden/types-hole-unsupported/tokens.txt−14 tests/golden/types-hole-unsupported/tree.txt−7 tests/golden/types-hole-unsupported/types.txt−6 tests/golden/types-hole-user-generic/about.txt−4 tests/golden/types-hole-user-generic/source.jibb−6 tests/golden/types-hole-user-generic/tokens.txt−71 tests/golden/types-hole-user-generic/tree.txt−31 tests/golden/types-hole-user-generic/types.txt−10 tests/golden/types-hole-user-named/about.txt−4 tests/golden/types-hole-user-named/source.jibb−2 tests/golden/types-hole-user-named/tokens.txt−22 tests/golden/types-hole-user-named/tree.txt−11 tests/golden/types-hole-user-named/types.txt−6 tests/golden/types-hole-user-value/about.txt−4 tests/golden/types-hole-user-value/source.jibb−3 tests/golden/types-hole-user-value/tokens.txt−21 tests/golden/types-hole-user-value/tree.txt−10 tests/golden/types-hole-user-value/types.txt−7 tests/golden/types-import-duplicate-mark/about.txt−4 tests/golden/types-import-duplicate-mark/mar/duplicate.txt−5 tests/golden/types-import-duplicate-mark/marks.txt−1 tests/golden/types-import-duplicate-mark/source.jibb−2 tests/golden/types-import-duplicate-mark/tokens.txt−11 tests/golden/types-import-duplicate-mark/tree.txt−6 tests/golden/types-import-duplicate-mark/types.txt−2 tests/golden/types-import-duplicate-sur/about.txt−4 tests/golden/types-import-duplicate-sur/imports.txt−3 tests/golden/types-import-duplicate-sur/source.jibb−5 tests/golden/types-import-duplicate-sur/sur/fixture.txt−6 tests/golden/types-import-duplicate-sur/tokens.txt−35 tests/golden/types-import-duplicate-sur/tree.txt−18 tests/golden/types-import-duplicate-sur/types.txt−5 tests/golden/types-import-hoon-flags/about.txt−4 tests/golden/types-import-hoon-flags/imports.txt−4 tests/golden/types-import-hoon-flags/source.jibb−14 tests/golden/types-import-hoon-flags/sur/flags.txt−7 tests/golden/types-import-hoon-flags/tokens.txt−91 tests/golden/types-import-hoon-flags/tree.txt−41 tests/golden/types-import-hoon-flags/types.txt−24 tests/golden/types-import-hoon-noun/about.txt−4 tests/golden/types-import-hoon-noun/imports.txt−4 tests/golden/types-import-hoon-noun/source.jibb−8 tests/golden/types-import-hoon-noun/sur/fixture.txt−6 tests/golden/types-import-hoon-noun/tokens.txt−60 tests/golden/types-import-hoon-noun/tree.txt−28 tests/golden/types-import-hoon-noun/types.txt−8 tests/golden/types-import-mark-record/about.txt−4 tests/golden/types-import-mark-record/mar/choice.txt−5 tests/golden/types-import-mark-record/mar/note.txt−5 tests/golden/types-import-mark-record/marks.txt−2 tests/golden/types-import-mark-record/source.jibb−5 tests/golden/types-import-mark-record/tokens.txt−30 tests/golden/types-import-mark-record/tree.txt−15 tests/golden/types-import-mark-record/types.txt−4 tests/golden/types-import-mark/about.txt−4 tests/golden/types-import-mark/imports.txt−1 tests/golden/types-import-mark/mar/label.txt−5 tests/golden/types-import-mark/marks.txt−1 tests/golden/types-import-mark/source.jibb−4 tests/golden/types-import-mark/sur/fixture.txt−3 tests/golden/types-import-mark/tokens.txt−22 tests/golden/types-import-mark/tree.txt−11 tests/golden/types-import-mark/types.txt−3 tests/golden/types-import-missing-mold/about.txt−4 tests/golden/types-import-missing-mold/imports.txt−1 tests/golden/types-import-missing-mold/source.jibb−2 tests/golden/types-import-missing-mold/sur/fixture.txt−3 tests/golden/types-import-missing-mold/tokens.txt−11 tests/golden/types-import-missing-mold/tree.txt−6 tests/golden/types-import-missing-mold/types.txt−2 tests/golden/types-import-sur-record-graph/about.txt−4 tests/golden/types-import-sur-record-graph/imports.txt−1 tests/golden/types-import-sur-record-graph/module-trees.txt−7 tests/golden/types-import-sur-record-graph/modules.txt−1 tests/golden/types-import-sur-record-graph/modules/ui/lib.jibb−2 tests/golden/types-import-sur-record-graph/source.jibb−2 tests/golden/types-import-sur-record-graph/sur/fixture.txt−3 tests/golden/types-import-sur-record-graph/tokens.txt−32 tests/golden/types-import-sur-record-graph/tree.txt−13 tests/golden/types-import-sur-record-graph/types.txt−2 tests/golden/types-import-sur/about.txt−4 tests/golden/types-import-sur/imports.txt−2 tests/golden/types-import-sur/source.jibb−3 tests/golden/types-import-sur/sur/fixture.txt−4 tests/golden/types-import-sur/tokens.txt−19 tests/golden/types-import-sur/tree.txt−10 tests/golden/types-import-sur/types.txt−3 tests/golden/types-import-tlon-notes/about.txt−4 tests/golden/types-import-tlon-notes/imports.txt−7 tests/golden/types-import-tlon-notes/source.jibb−8 tests/golden/types-import-tlon-notes/sur/notes.txt−433 tests/golden/types-import-tlon-notes/tokens.txt−59 tests/golden/types-import-tlon-notes/tree.txt−30 tests/golden/types-import-tlon-notes/types.txt−8 tests/golden/types-list-branch/about.txt−4 tests/golden/types-list-branch/modules.txt−1 tests/golden/types-list-branch/source.jibb−81 tests/golden/types-list-branch/tokens.txt−521 tests/golden/types-list-branch/tree.txt−237 tests/golden/types-list-branch/types.txt−41 tests/golden/types-list-cons/about.txt−4 tests/golden/types-list-cons/modules.txt−1 tests/golden/types-list-cons/source.jibb−20 tests/golden/types-list-cons/tokens.txt−217 tests/golden/types-list-cons/tree.txt−85 tests/golden/types-list-cons/types.txt−29 tests/golden/types-list-context/about.txt−4 tests/golden/types-list-context/modules.txt−1 tests/golden/types-list-context/source.jibb−17 tests/golden/types-list-context/tokens.txt−143 tests/golden/types-list-context/tree.txt−59 tests/golden/types-list-context/types.txt−18 tests/golden/types-list-imported/about.txt−4 tests/golden/types-list-imported/imports.txt−2 tests/golden/types-list-imported/modules.txt−1 tests/golden/types-list-imported/source.jibb−14 tests/golden/types-list-imported/sur/fixture.txt−4 tests/golden/types-list-imported/tokens.txt−109 tests/golden/types-list-imported/tree.txt−52 tests/golden/types-list-imported/types.txt−22 tests/golden/types-list-open-constraints/about.txt−4 tests/golden/types-list-open-constraints/modules.txt−1 tests/golden/types-list-open-constraints/source.jibb−19 tests/golden/types-list-open-constraints/tokens.txt−178 tests/golden/types-list-open-constraints/tree.txt−68 tests/golden/types-list-open-constraints/types.txt−30 tests/golden/types-list-open/about.txt−4 tests/golden/types-list-open/modules.txt−1 tests/golden/types-list-open/source.jibb−13 tests/golden/types-list-open/tokens.txt−94 tests/golden/types-list-open/tree.txt−36 tests/golden/types-list-open/types.txt−18 tests/golden/types-list-pattern-imported/about.txt−4 tests/golden/types-list-pattern-imported/imports.txt−2 tests/golden/types-list-pattern-imported/modules.txt−1 tests/golden/types-list-pattern-imported/source.jibb−13 tests/golden/types-list-pattern-imported/sur/fixture.txt−5 tests/golden/types-list-pattern-imported/tokens.txt−66 tests/golden/types-list-pattern-imported/tree.txt−32 tests/golden/types-list-pattern-imported/types.txt−4 tests/golden/types-list-patterns/about.txt−4 tests/golden/types-list-patterns/modules.txt−1 tests/golden/types-list-patterns/source.jibb−64 tests/golden/types-list-patterns/tokens.txt−359 tests/golden/types-list-patterns/tree.txt−168 tests/golden/types-list-patterns/types.txt−17 tests/golden/types-list-zero-fit/about.txt−4 tests/golden/types-list-zero-fit/modules.txt−1 tests/golden/types-list-zero-fit/source.jibb−8 tests/golden/types-list-zero-fit/tokens.txt−181 tests/golden/types-list-zero-fit/tree.txt−91 tests/golden/types-list-zero-fit/types.txt−27 tests/golden/types-local-capitals/about.txt−4 tests/golden/types-local-capitals/modules.txt−1 tests/golden/types-local-capitals/source.jibb−73 tests/golden/types-local-capitals/tokens.txt−473 tests/golden/types-local-capitals/tree.txt−229 tests/golden/types-local-capitals/types.txt−28 tests/golden/types-local-recursive/about.txt−4 tests/golden/types-local-recursive/modules.txt−1 tests/golden/types-local-recursive/source.jibb−54 tests/golden/types-local-recursive/tokens.txt−351 tests/golden/types-local-recursive/tree.txt−170 tests/golden/types-local-recursive/types.txt−12 tests/golden/types-local-scc-adversarial/about.txt−4 tests/golden/types-local-scc-adversarial/modules.txt−1 tests/golden/types-local-scc-adversarial/source.jibb−54 tests/golden/types-local-scc-adversarial/tokens.txt−404 tests/golden/types-local-scc-adversarial/tree.txt−204 tests/golden/types-local-scc-adversarial/types.txt−17 tests/golden/types-local-scc/about.txt−4 tests/golden/types-local-scc/modules.txt−1 tests/golden/types-local-scc/source.jibb−58 tests/golden/types-local-scc/tokens.txt−434 tests/golden/types-local-scc/tree.txt−214 tests/golden/types-local-scc/types.txt−12 tests/golden/types-missing-tag-context/about.txt−4 tests/golden/types-missing-tag-context/modules.txt−1 tests/golden/types-missing-tag-context/source.jibb−17 tests/golden/types-missing-tag-context/tokens.txt−98 tests/golden/types-missing-tag-context/tree.txt−45 tests/golden/types-missing-tag-context/types.txt−38 tests/golden/types-missing-tag-imported/about.txt−4 tests/golden/types-missing-tag-imported/imports.txt−2 tests/golden/types-missing-tag-imported/source.jibb−6 tests/golden/types-missing-tag-imported/sur/fixture.txt−21 tests/golden/types-missing-tag-imported/tokens.txt−43 tests/golden/types-missing-tag-imported/tree.txt−18 tests/golden/types-missing-tag-imported/types.txt−12 tests/golden/types-missing-tag-named/about.txt−4 tests/golden/types-missing-tag-named/modules.txt−1 tests/golden/types-missing-tag-named/source.jibb−23 tests/golden/types-missing-tag-named/tokens.txt−155 tests/golden/types-missing-tag-named/tree.txt−66 tests/golden/types-missing-tag-named/types.txt−66 tests/golden/types-module-field-duplicate/about.txt−4 tests/golden/types-module-field-duplicate/module-trees.txt−6 tests/golden/types-module-field-duplicate/modules.txt−1 tests/golden/types-module-field-duplicate/modules/ui/lib.jibb−1 tests/golden/types-module-field-duplicate/source.jibb−2 tests/golden/types-module-field-duplicate/tokens.txt−11 tests/golden/types-module-field-duplicate/tree.txt−3 tests/golden/types-module-field-duplicate/types.txt−8 tests/golden/types-module-field-nonrecord/about.txt−4 tests/golden/types-module-field-nonrecord/module-trees.txt−12 tests/golden/types-module-field-nonrecord/modules.txt−1 tests/golden/types-module-field-nonrecord/modules/ui/lib.jibb−2 tests/golden/types-module-field-nonrecord/source.jibb−2 tests/golden/types-module-field-nonrecord/tokens.txt−11 tests/golden/types-module-field-nonrecord/tree.txt−3 tests/golden/types-module-field-nonrecord/types.txt−2 tests/golden/types-module-field-path/about.txt−4 tests/golden/types-module-field-path/module-trees.txt−12 tests/golden/types-module-field-path/modules.txt−1 tests/golden/types-module-field-path/modules/ui/lib.jibb−2 tests/golden/types-module-field-path/source.jibb−9 tests/golden/types-module-field-path/tokens.txt−45 tests/golden/types-module-field-path/tree.txt−14 tests/golden/types-module-field-path/types.txt−9 tests/golden/types-module-field-shadow/about.txt−4 tests/golden/types-module-field-shadow/module-trees.txt−12 tests/golden/types-module-field-shadow/modules.txt−1 tests/golden/types-module-field-shadow/modules/ui/lib.jibb−2 tests/golden/types-module-field-shadow/source.jibb−2 tests/golden/types-module-field-shadow/tokens.txt−15 tests/golden/types-module-field-shadow/tree.txt−6 tests/golden/types-module-field-shadow/types.txt−2 tests/golden/types-module-fixtures/about.txt−4 tests/golden/types-module-fixtures/module-trees.txt−13 tests/golden/types-module-fixtures/modules.txt−2 tests/golden/types-module-fixtures/modules/ui/api/blog.jibb−5 tests/golden/types-module-fixtures/modules/ui/components/card.jibb−5 tests/golden/types-module-fixtures/path.txt−1 tests/golden/types-module-fixtures/source.jibb−9 tests/golden/types-module-fixtures/tokens.txt−62 tests/golden/types-module-fixtures/tree.txt−23 tests/golden/types-module-fixtures/types.txt−2 tests/golden/types-module-mixed/about.txt−4 tests/golden/types-module-mixed/imports.txt−1 tests/golden/types-module-mixed/mar/label.txt−5 tests/golden/types-module-mixed/marks.txt−1 tests/golden/types-module-mixed/module-trees.txt−6 tests/golden/types-module-mixed/modules.txt−1 tests/golden/types-module-mixed/modules/ui/helper.jibb−1 tests/golden/types-module-mixed/source.jibb−5 tests/golden/types-module-mixed/sur/fixture.txt−3 tests/golden/types-module-mixed/tokens.txt−29 tests/golden/types-module-mixed/tree.txt−12 tests/golden/types-module-mixed/types.txt−3 tests/golden/types-multi-call/about.txt−4 tests/golden/types-multi-call/modules.txt−1 tests/golden/types-multi-call/source.jibb−42 tests/golden/types-multi-call/tokens.txt−370 tests/golden/types-multi-call/tree.txt−169 tests/golden/types-multi-call/types.txt−100 tests/golden/types-multi-import/about.txt−4 tests/golden/types-multi-import/module-trees.txt−16 tests/golden/types-multi-import/modules.txt−1 tests/golden/types-multi-import/modules/ui/lib.jibb−5 tests/golden/types-multi-import/source.jibb−5 tests/golden/types-multi-import/tokens.txt−43 tests/golden/types-multi-import/tree.txt−20 tests/golden/types-multi-import/types.txt−17 tests/golden/types-nested-missing-tag/about.txt−4 tests/golden/types-nested-missing-tag/modules.txt−1 tests/golden/types-nested-missing-tag/source.jibb−18 tests/golden/types-nested-missing-tag/tokens.txt−184 tests/golden/types-nested-missing-tag/tree.txt−79 tests/golden/types-nested-missing-tag/types.txt−71 tests/golden/types-null-context/about.txt−4 tests/golden/types-null-context/source.jibb−8 tests/golden/types-null-context/tokens.txt−57 tests/golden/types-null-context/tree.txt−25 tests/golden/types-null-context/types.txt−13 tests/golden/types-null-overlap/about.txt−4 tests/golden/types-null-overlap/source.jibb−3 tests/golden/types-null-overlap/tokens.txt−8 tests/golden/types-null-overlap/tree.txt−3 tests/golden/types-null-overlap/types.txt−8 tests/golden/types-null-unresolved/about.txt−4 tests/golden/types-null-unresolved/source.jibb−18 tests/golden/types-null-unresolved/tokens.txt−79 tests/golden/types-null-unresolved/tree.txt−34 tests/golden/types-null-unresolved/types.txt−9 tests/golden/types-pair-context/about.txt−4 tests/golden/types-pair-context/modules.txt−1 tests/golden/types-pair-context/source.jibb−32 tests/golden/types-pair-context/tokens.txt−217 tests/golden/types-pair-context/tree.txt−86 tests/golden/types-pair-context/types.txt−43 tests/golden/types-partial-atom-alias/about.txt−4 tests/golden/types-partial-atom-alias/source.jibb−10 tests/golden/types-partial-atom-alias/tokens.txt−67 tests/golden/types-partial-atom-alias/tree.txt−31 tests/golden/types-partial-atom-alias/types.txt−21 tests/golden/types-partial-atom-constraint/about.txt−4 tests/golden/types-partial-atom-constraint/source.jibb−14 tests/golden/types-partial-atom-constraint/tokens.txt−91 tests/golden/types-partial-atom-constraint/tree.txt−42 tests/golden/types-partial-atom-constraint/types.txt−27 tests/golden/types-partial-atom-widening/about.txt−4 tests/golden/types-partial-atom-widening/source.jibb−9 tests/golden/types-partial-atom-widening/tokens.txt−79 tests/golden/types-partial-atom-widening/tree.txt−35 tests/golden/types-partial-atom-widening/types.txt−16 tests/golden/types-partial-aura-family/about.txt−4 tests/golden/types-partial-aura-family/source.jibb−10 tests/golden/types-partial-aura-family/tokens.txt−100 tests/golden/types-partial-aura-family/tree.txt−44 tests/golden/types-partial-aura-family/types.txt−23 tests/golden/types-partial-aura/about.txt+1−1 tests/golden/types-partial-aura/types.txt+1−7 tests/golden/types-partial-bare-atom/about.txt+3−4 tests/golden/types-partial-bare-atom/types.txt+2−2 tests/golden/types-partial-branch-widening/about.txt−4 tests/golden/types-partial-branch-widening/source.jibb−20 tests/golden/types-partial-branch-widening/tokens.txt−96 tests/golden/types-partial-branch-widening/tree.txt−49 tests/golden/types-partial-branch-widening/types.txt−12 tests/golden/types-partial-conflicting-sites/about.txt−4 tests/golden/types-partial-conflicting-sites/source.jibb−5 tests/golden/types-partial-conflicting-sites/tokens.txt−33 tests/golden/types-partial-conflicting-sites/tree.txt−15 tests/golden/types-partial-conflicting-sites/types.txt−23 tests/golden/types-partial-decimal-default/about.txt−7 tests/golden/types-partial-decimal-default/source.jibb−6 tests/golden/types-partial-decimal-default/tokens.txt−34 tests/golden/types-partial-decimal-default/tree.txt−12 tests/golden/types-partial-decimal-default/types.txt−7 tests/golden/types-partial-independent-atoms/about.txt−4 tests/golden/types-partial-independent-atoms/source.jibb−2 tests/golden/types-partial-independent-atoms/tokens.txt−21 tests/golden/types-partial-independent-atoms/tree.txt−11 tests/golden/types-partial-independent-atoms/types.txt−3 tests/golden/types-partial-local-molds/about.txt−10 tests/golden/types-partial-local-molds/source.jibb−39 tests/golden/types-partial-local-molds/tokens.txt−170 tests/golden/types-partial-local-molds/tree.txt−80 tests/golden/types-partial-local-molds/types.txt−11 tests/golden/types-partial-locals/about.txt−8 tests/golden/types-partial-locals/source.jibb−44 tests/golden/types-partial-locals/tokens.txt−239 tests/golden/types-partial-locals/tree.txt−122 tests/golden/types-partial-locals/types.txt−32 tests/golden/types-partial-many-atom-constraints/about.txt−4 tests/golden/types-partial-many-atom-constraints/source.jibb−13 tests/golden/types-partial-many-atom-constraints/tokens.txt−90 tests/golden/types-partial-many-atom-constraints/tree.txt−44 tests/golden/types-partial-many-atom-constraints/types.txt−26 tests/golden/types-partial-mold-bare-aura/about.txt+2−2 tests/golden/types-partial-mold-bare-aura/types.txt+1−1 tests/golden/types-partial-occurs/types.txt−6 tests/golden/types-partial-shared-tvar/types.txt−6 tests/golden/types-partial-union-cases/types.txt+3−21 tests/golden/types-partial-union-edges/about.txt−3 tests/golden/types-partial-union-edges/source.jibb−24 tests/golden/types-partial-union-edges/tokens.txt−97 tests/golden/types-partial-union-edges/tree.txt−33 tests/golden/types-partial-union-edges/types.txt−15 tests/golden/types-partial-unresolved-tag/about.txt+1−1 tests/golden/types-partial-unresolved-tag/types.txt+1−1 tests/golden/types-prelude-arithmetic/about.txt−4 tests/golden/types-prelude-arithmetic/modules.txt−1 tests/golden/types-prelude-arithmetic/source.jibb−23 tests/golden/types-prelude-arithmetic/tokens.txt−201 tests/golden/types-prelude-arithmetic/tree.txt−85 tests/golden/types-prelude-arithmetic/types.txt−32 tests/golden/types-prelude-bond/about.txt−4 tests/golden/types-prelude-bond/modules.txt−1 tests/golden/types-prelude-bond/source.jibb−6 tests/golden/types-prelude-bond/tokens.txt−57 tests/golden/types-prelude-bond/tree.txt−30 tests/golden/types-prelude-bond/types.txt−7 tests/golden/types-prelude-cmd/about.txt−4 tests/golden/types-prelude-cmd/modules.txt−1 tests/golden/types-prelude-cmd/source.jibb−21 tests/golden/types-prelude-cmd/tokens.txt−285 tests/golden/types-prelude-cmd/tree.txt−122 tests/golden/types-prelude-cmd/types.txt−50 tests/golden/types-prelude-direct/about.txt−4 tests/golden/types-prelude-direct/modules.txt−1 tests/golden/types-prelude-direct/source.jibb−5 tests/golden/types-prelude-direct/tokens.txt−53 tests/golden/types-prelude-direct/tree.txt−25 tests/golden/types-prelude-direct/types.txt−6 tests/golden/types-prelude-functional/about.txt−4 tests/golden/types-prelude-functional/modules.txt−1 tests/golden/types-prelude-functional/source.jibb−18 tests/golden/types-prelude-functional/tokens.txt−145 tests/golden/types-prelude-functional/tree.txt−65 tests/golden/types-prelude-functional/types.txt−23 tests/golden/types-prelude-interface/about.txt−4 tests/golden/types-prelude-interface/module-trees.txt−13 tests/golden/types-prelude-interface/modules.txt−2 tests/golden/types-prelude-interface/modules/ui/left.jibb−1 tests/golden/types-prelude-interface/modules/ui/right.jibb−1 tests/golden/types-prelude-interface/source.jibb−10 tests/golden/types-prelude-interface/tokens.txt−81 tests/golden/types-prelude-interface/tree.txt−33 tests/golden/types-prelude-interface/types.txt−9 tests/golden/types-prelude-list-alias/about.txt−4 tests/golden/types-prelude-list-alias/modules.txt−1 tests/golden/types-prelude-list-alias/source.jibb−7 tests/golden/types-prelude-list-alias/tokens.txt−68 tests/golden/types-prelude-list-alias/tree.txt−30 tests/golden/types-prelude-list-alias/types.txt−14 tests/golden/types-prelude-list-functions/about.txt−4 tests/golden/types-prelude-list-functions/module-trees.txt−11 tests/golden/types-prelude-list-functions/modules.txt−1 tests/golden/types-prelude-list-functions/modules/ui/lib.jibb−2 tests/golden/types-prelude-list-functions/source.jibb−18 tests/golden/types-prelude-list-functions/tokens.txt−183 tests/golden/types-prelude-list-functions/tree.txt−87 tests/golden/types-prelude-list-functions/types.txt−28 tests/golden/types-prelude-list-helpers/about.txt−4 tests/golden/types-prelude-list-helpers/modules.txt−1 tests/golden/types-prelude-list-helpers/source.jibb−15 tests/golden/types-prelude-list-helpers/tokens.txt−182 tests/golden/types-prelude-list-helpers/tree.txt−98 tests/golden/types-prelude-list-helpers/types.txt−34 tests/golden/types-prelude-predicates/about.txt−4 tests/golden/types-prelude-predicates/modules.txt−1 tests/golden/types-prelude-predicates/source.jibb−6 tests/golden/types-prelude-predicates/tokens.txt−91 tests/golden/types-prelude-predicates/tree.txt−49 tests/golden/types-prelude-predicates/types.txt−19 tests/golden/types-prelude-unit-helpers/about.txt−4 tests/golden/types-prelude-unit-helpers/modules.txt−1 tests/golden/types-prelude-unit-helpers/source.jibb−15 tests/golden/types-prelude-unit-helpers/tokens.txt−209 tests/golden/types-prelude-unit-helpers/tree.txt−115 tests/golden/types-prelude-unit-helpers/types.txt−26 tests/golden/types-proj-explicit-context/about.txt−4 tests/golden/types-proj-explicit-context/modules.txt−1 tests/golden/types-proj-explicit-context/source.jibb−35 tests/golden/types-proj-explicit-context/tokens.txt−626 tests/golden/types-proj-explicit-context/tree.txt−287 tests/golden/types-proj-explicit-context/types.txt−31 tests/golden/types-proj-nested-no-implicit/about.txt−4 tests/golden/types-proj-nested-no-implicit/modules.txt−1 tests/golden/types-proj-nested-no-implicit/source.jibb−6 tests/golden/types-proj-nested-no-implicit/tokens.txt−119 tests/golden/types-proj-nested-no-implicit/tree.txt−56 tests/golden/types-proj-nested-no-implicit/types.txt−7 tests/golden/types-proj-reserved-imported-definition/about.txt−4 tests/golden/types-proj-reserved-imported-definition/module-trees.txt−10 tests/golden/types-proj-reserved-imported-definition/modules.txt−1 tests/golden/types-proj-reserved-imported-definition/modules/ui/lib.jibb−2 tests/golden/types-proj-reserved-imported-definition/source.jibb−2 tests/golden/types-proj-reserved-imported-definition/tokens.txt−11 tests/golden/types-proj-reserved-imported-definition/tree.txt−3 tests/golden/types-proj-reserved-imported-definition/types.txt−2 tests/golden/types-proj-reserved-jibb-import/about.txt−4 tests/golden/types-proj-reserved-jibb-import/module-trees.txt−6 tests/golden/types-proj-reserved-jibb-import/modules.txt−1 tests/golden/types-proj-reserved-jibb-import/modules/ui/lib.jibb−1 tests/golden/types-proj-reserved-jibb-import/source.jibb−2 tests/golden/types-proj-reserved-jibb-import/tokens.txt−11 tests/golden/types-proj-reserved-jibb-import/tree.txt−3 tests/golden/types-proj-reserved-jibb-import/types.txt−2 tests/golden/types-proj-reserved-local-mold/about.txt−4 tests/golden/types-proj-reserved-local-mold/modules.txt−1 tests/golden/types-proj-reserved-local-mold/source.jibb−3 tests/golden/types-proj-reserved-local-mold/tokens.txt−10 tests/golden/types-proj-reserved-local-mold/tree.txt−5 tests/golden/types-proj-reserved-local-mold/types.txt−2 tests/golden/types-proj-reserved-local/about.txt−4 tests/golden/types-proj-reserved-local/modules.txt−1 tests/golden/types-proj-reserved-local/source.jibb−3 tests/golden/types-proj-reserved-local/tokens.txt−14 tests/golden/types-proj-reserved-local/tree.txt−8 tests/golden/types-proj-reserved-local/types.txt−2 tests/golden/types-proj-reserved-mark-import/about.txt−4 tests/golden/types-proj-reserved-mark-import/modules.txt−1 tests/golden/types-proj-reserved-mark-import/source.jibb−2 tests/golden/types-proj-reserved-mark-import/tokens.txt−7 tests/golden/types-proj-reserved-mark-import/tree.txt−3 tests/golden/types-proj-reserved-mark-import/types.txt−2 tests/golden/types-proj-reserved-mold/about.txt−4 tests/golden/types-proj-reserved-mold/modules.txt−1 tests/golden/types-proj-reserved-mold/source.jibb−2 tests/golden/types-proj-reserved-mold/tokens.txt−8 tests/golden/types-proj-reserved-mold/tree.txt−3 tests/golden/types-proj-reserved-mold/types.txt−2 tests/golden/types-proj-reserved-pattern/about.txt−4 tests/golden/types-proj-reserved-pattern/modules.txt−1 tests/golden/types-proj-reserved-pattern/source.jibb−3 tests/golden/types-proj-reserved-pattern/tokens.txt−21 tests/golden/types-proj-reserved-pattern/tree.txt−11 tests/golden/types-proj-reserved-pattern/types.txt−2 tests/golden/types-proj-reserved-positive/about.txt−4 tests/golden/types-proj-reserved-positive/modules.txt−1 tests/golden/types-proj-reserved-positive/source.jibb−8 tests/golden/types-proj-reserved-positive/tokens.txt−70 tests/golden/types-proj-reserved-positive/tree.txt−31 tests/golden/types-proj-reserved-positive/types.txt−7 tests/golden/types-proj-reserved-sample/about.txt−4 tests/golden/types-proj-reserved-sample/modules.txt−1 tests/golden/types-proj-reserved-sample/source.jibb−1 tests/golden/types-proj-reserved-sample/tokens.txt−8 tests/golden/types-proj-reserved-sample/tree.txt−5 tests/golden/types-proj-reserved-sample/types.txt−2 tests/golden/types-proj-reserved-sur-import/about.txt−4 tests/golden/types-proj-reserved-sur-import/modules.txt−1 tests/golden/types-proj-reserved-sur-import/source.jibb−2 tests/golden/types-proj-reserved-sur-import/tokens.txt−7 tests/golden/types-proj-reserved-sur-import/tree.txt−3 tests/golden/types-proj-reserved-sur-import/types.txt−2 tests/golden/types-proj-reserved-unused-pattern/about.txt−4 tests/golden/types-proj-reserved-unused-pattern/modules.txt−1 tests/golden/types-proj-reserved-unused-pattern/source.jibb−6 tests/golden/types-proj-reserved-unused-pattern/tokens.txt−38 tests/golden/types-proj-reserved-unused-pattern/tree.txt−18 tests/golden/types-proj-reserved-unused-pattern/types.txt−2 tests/golden/types-proj-reserved-unused-sample/about.txt−4 tests/golden/types-proj-reserved-unused-sample/modules.txt−1 tests/golden/types-proj-reserved-unused-sample/source.jibb−4 tests/golden/types-proj-reserved-unused-sample/tokens.txt−25 tests/golden/types-proj-reserved-unused-sample/tree.txt−12 tests/golden/types-proj-reserved-unused-sample/types.txt−2 tests/golden/types-proj-reserved-unused-value/about.txt−4 tests/golden/types-proj-reserved-unused-value/modules.txt−1 tests/golden/types-proj-reserved-unused-value/source.jibb−6 tests/golden/types-proj-reserved-unused-value/tokens.txt−31 tests/golden/types-proj-reserved-unused-value/tree.txt−15 tests/golden/types-proj-reserved-unused-value/types.txt−2 tests/golden/types-proj-reserved-value/about.txt−4 tests/golden/types-proj-reserved-value/modules.txt−1 tests/golden/types-proj-reserved-value/source.jibb−2 tests/golden/types-proj-reserved-value/tokens.txt−12 tests/golden/types-proj-reserved-value/tree.txt−6 tests/golden/types-proj-reserved-value/types.txt−2 tests/golden/types-proj-single-duplicate/about.txt−4 tests/golden/types-proj-single-duplicate/modules.txt−1 tests/golden/types-proj-single-duplicate/source.jibb−1 tests/golden/types-proj-single-duplicate/tokens.txt−23 tests/golden/types-proj-single-duplicate/tree.txt−12 tests/golden/types-proj-single-duplicate/types.txt−8 tests/golden/types-proj-single-field/about.txt−4 tests/golden/types-proj-single-field/modules.txt−1 tests/golden/types-proj-single-field/source.jibb−25 tests/golden/types-proj-single-field/tokens.txt−499 tests/golden/types-proj-single-field/tree.txt−243 tests/golden/types-proj-single-field/types.txt−31 tests/golden/types-proj-single-sample-face/about.txt−4 tests/golden/types-proj-single-sample-face/modules.txt−1 tests/golden/types-proj-single-sample-face/source.jibb−22 tests/golden/types-proj-single-sample-face/tokens.txt−210 tests/golden/types-proj-single-sample-face/tree.txt−117 tests/golden/types-proj-single-sample-face/types.txt−9 tests/golden/types-proj-single-wrapped/about.txt−4 tests/golden/types-proj-single-wrapped/modules.txt−1 tests/golden/types-proj-single-wrapped/source.jibb−26 tests/golden/types-proj-single-wrapped/tokens.txt−208 tests/golden/types-proj-single-wrapped/tree.txt−107 tests/golden/types-proj-single-wrapped/types.txt−5 tests/golden/types-qath-faces/about.txt−4 tests/golden/types-qath-faces/modules.txt−1 tests/golden/types-qath-faces/source.jibb−8 tests/golden/types-qath-faces/tokens.txt−130 tests/golden/types-qath-faces/tree.txt−59 tests/golden/types-qath-faces/types.txt−18 tests/golden/types-qath-holes/about.txt−4 tests/golden/types-qath-holes/modules.txt−1 tests/golden/types-qath-holes/source.jibb−18 tests/golden/types-qath-holes/tokens.txt−178 tests/golden/types-qath-holes/tree.txt−78 tests/golden/types-qath-holes/types.txt−22 tests/golden/types-qath-module-identity/about.txt−4 tests/golden/types-qath-module-identity/module-trees.txt−44 tests/golden/types-qath-module-identity/modules.txt−3 tests/golden/types-qath-module-identity/modules/ui/mid.jibb−4 tests/golden/types-qath-module-identity/modules/ui/one.jibb−7 tests/golden/types-qath-module-identity/modules/ui/two.jibb−4 tests/golden/types-qath-module-identity/source.jibb−15 tests/golden/types-qath-module-identity/tokens.txt−171 tests/golden/types-qath-module-identity/tree.txt−70 tests/golden/types-qath-module-identity/types.txt−18 tests/golden/types-qath-recursive/about.txt−4 tests/golden/types-qath-recursive/modules.txt−1 tests/golden/types-qath-recursive/source.jibb−19 tests/golden/types-qath-recursive/tokens.txt−145 tests/golden/types-qath-recursive/tree.txt−63 tests/golden/types-qath-recursive/types.txt−14 tests/golden/types-record-bound-variable/about.txt−4 tests/golden/types-record-bound-variable/source.jibb−6 tests/golden/types-record-bound-variable/tokens.txt−65 tests/golden/types-record-bound-variable/tree.txt−33 tests/golden/types-record-bound-variable/types.txt−5 tests/golden/types-record-cast-context/about.txt−4 tests/golden/types-record-cast-context/modules.txt−1 tests/golden/types-record-cast-context/source.jibb−24 tests/golden/types-record-cast-context/tokens.txt−234 tests/golden/types-record-cast-context/tree.txt−105 tests/golden/types-record-cast-context/types.txt−49 tests/golden/types-record-change-generic/about.txt−4 tests/golden/types-record-change-generic/modules.txt−1 tests/golden/types-record-change-generic/source.jibb−9 tests/golden/types-record-change-generic/tokens.txt−145 tests/golden/types-record-change-generic/tree.txt−57 tests/golden/types-record-change-generic/types.txt−14 tests/golden/types-record-change/about.txt−4 tests/golden/types-record-change/modules.txt−1 tests/golden/types-record-change/source.jibb−19 tests/golden/types-record-change/tokens.txt−254 tests/golden/types-record-change/tree.txt−99 tests/golden/types-record-change/types.txt−42 tests/golden/types-record-faces/about.txt−4 tests/golden/types-record-faces/source.jibb−8 tests/golden/types-record-faces/tokens.txt−90 tests/golden/types-record-faces/tree.txt−41 tests/golden/types-record-faces/types.txt−15 tests/golden/types-record-field-edit-separate/about.txt−4 tests/golden/types-record-field-edit-separate/source.jibb−1 tests/golden/types-record-field-edit-separate/tokens.txt−51 tests/golden/types-record-field-edit-separate/tree.txt−22 tests/golden/types-record-field-edit-separate/types.txt−2 tests/golden/types-record-field-expr-duplicate/about.txt−4 tests/golden/types-record-field-expr-duplicate/source.jibb−2 tests/golden/types-record-field-expr-duplicate/tokens.txt−22 tests/golden/types-record-field-expr-duplicate/tree.txt−9 tests/golden/types-record-field-expr-duplicate/types.txt−8 tests/golden/types-record-field-expr-separate/about.txt−4 tests/golden/types-record-field-expr-separate/source.jibb−1 tests/golden/types-record-field-expr-separate/tokens.txt−25 tests/golden/types-record-field-expr-separate/tree.txt−11 tests/golden/types-record-field-expr-separate/types.txt−2 tests/golden/types-record-field-module-reachable/about.txt−4 tests/golden/types-record-field-module-reachable/module-trees.txt−7 tests/golden/types-record-field-module-reachable/modules.txt−1 tests/golden/types-record-field-module-reachable/modules/ui/lib.jibb−2 tests/golden/types-record-field-module-reachable/source.jibb−2 tests/golden/types-record-field-module-reachable/tokens.txt−11 tests/golden/types-record-field-module-reachable/tree.txt−3 tests/golden/types-record-field-module-reachable/types.txt−8 tests/golden/types-record-field-module-unused/about.txt−4 tests/golden/types-record-field-module-unused/module-trees.txt−10 tests/golden/types-record-field-module-unused/modules.txt−2 tests/golden/types-record-field-module-unused/modules/ui/good.jibb−1 tests/golden/types-record-field-module-unused/modules/ui/unused.jibb−2 tests/golden/types-record-field-module-unused/source.jibb−2 tests/golden/types-record-field-module-unused/tokens.txt−11 tests/golden/types-record-field-module-unused/tree.txt−3 tests/golden/types-record-field-module-unused/types.txt−2 tests/golden/types-record-field-nested-mold/about.txt−4 tests/golden/types-record-field-nested-mold/source.jibb−2 tests/golden/types-record-field-nested-mold/tokens.txt−22 tests/golden/types-record-field-nested-mold/tree.txt−9 tests/golden/types-record-field-nested-mold/types.txt−8 tests/golden/types-record-field-outer-inner/about.txt−4 tests/golden/types-record-field-outer-inner/source.jibb−2 tests/golden/types-record-field-outer-inner/tokens.txt−26 tests/golden/types-record-field-outer-inner/tree.txt−12 tests/golden/types-record-field-outer-inner/types.txt−3 tests/golden/types-record-field-sample-duplicate/about.txt−4 tests/golden/types-record-field-sample-duplicate/source.jibb−1 tests/golden/types-record-field-sample-duplicate/tokens.txt−13 tests/golden/types-record-field-sample-duplicate/tree.txt−7 tests/golden/types-record-field-sample-duplicate/types.txt−8 tests/golden/types-record-field-separate-molds/about.txt−4 tests/golden/types-record-field-separate-molds/source.jibb−2 tests/golden/types-record-field-separate-molds/tokens.txt−33 tests/golden/types-record-field-separate-molds/tree.txt−15 tests/golden/types-record-field-separate-molds/types.txt−3 tests/golden/types-record-field-unused-mold/about.txt−4 tests/golden/types-record-field-unused-mold/source.jibb−2 tests/golden/types-record-field-unused-mold/tokens.txt−15 tests/golden/types-record-field-unused-mold/tree.txt−6 tests/golden/types-record-field-unused-mold/types.txt−8 tests/golden/types-record-import/about.txt−4 tests/golden/types-record-import/module-trees.txt−9 tests/golden/types-record-import/modules.txt−1 tests/golden/types-record-import/modules/ui/lib.jibb−1 tests/golden/types-record-import/source.jibb−3 tests/golden/types-record-import/tokens.txt−36 tests/golden/types-record-import/tree.txt−16 tests/golden/types-record-import/types.txt−3 tests/golden/types-record-local-scheme/about.txt−4 tests/golden/types-record-local-scheme/source.jibb−5 tests/golden/types-record-local-scheme/tokens.txt−44 tests/golden/types-record-local-scheme/tree.txt−20 tests/golden/types-record-local-scheme/types.txt−4 tests/golden/types-record-nested/about.txt−4 tests/golden/types-record-nested/source.jibb−4 tests/golden/types-record-nested/tokens.txt−54 tests/golden/types-record-nested/tree.txt−24 tests/golden/types-record-nested/types.txt−5 tests/golden/types-record-to-tuple/about.txt−4 tests/golden/types-record-to-tuple/source.jibb−4 tests/golden/types-record-to-tuple/tokens.txt−38 tests/golden/types-record-to-tuple/tree.txt−17 tests/golden/types-record-to-tuple/types.txt−5 tests/golden/types-recursion-scc-failures/about.txt−4 tests/golden/types-recursion-scc-failures/modules.txt−1 tests/golden/types-recursion-scc-failures/source.jibb−11 tests/golden/types-recursion-scc-failures/tokens.txt−90 tests/golden/types-recursion-scc-failures/tree.txt−45 tests/golden/types-recursion-scc-failures/types.txt−10 tests/golden/types-recursion-scc-groups/about.txt−4 tests/golden/types-recursion-scc-groups/modules.txt−1 tests/golden/types-recursion-scc-groups/source.jibb−9 tests/golden/types-recursion-scc-groups/tokens.txt−91 tests/golden/types-recursion-scc-groups/tree.txt−42 tests/golden/types-recursion-scc-groups/types.txt−10 tests/golden/types-recursion-scc-import-bad/about.txt−4 tests/golden/types-recursion-scc-import-bad/module-trees.txt−16 tests/golden/types-recursion-scc-import-bad/modules.txt−1 tests/golden/types-recursion-scc-import-bad/modules/ui/lib.jibb−3 tests/golden/types-recursion-scc-import-bad/source.jibb−2 tests/golden/types-recursion-scc-import-bad/tokens.txt−14 tests/golden/types-recursion-scc-import-bad/tree.txt−5 tests/golden/types-recursion-scc-import-bad/types.txt−2 tests/golden/types-recursion-scc-import/about.txt−4 tests/golden/types-recursion-scc-import/module-trees.txt−12 tests/golden/types-recursion-scc-import/modules.txt−1 tests/golden/types-recursion-scc-import/modules/ui/lib.jibb−2 tests/golden/types-recursion-scc-import/source.jibb−3 tests/golden/types-recursion-scc-import/tokens.txt−25 tests/golden/types-recursion-scc-import/tree.txt−12 tests/golden/types-recursion-scc-import/types.txt−3 tests/golden/types-recursion-scc-local/about.txt−4 tests/golden/types-recursion-scc-local/modules.txt−1 tests/golden/types-recursion-scc-local/source.jibb−11 tests/golden/types-recursion-scc-local/tokens.txt−80 tests/golden/types-recursion-scc-local/tree.txt−39 tests/golden/types-recursion-scc-local/types.txt−4 tests/golden/types-recursion-scc-order/about.txt−4 tests/golden/types-recursion-scc-order/modules.txt−1 tests/golden/types-recursion-scc-order/source.jibb−4 tests/golden/types-recursion-scc-order/tokens.txt−33 tests/golden/types-recursion-scc-order/tree.txt−15 tests/golden/types-recursion-scc-order/types.txt−5 tests/golden/types-recursion-scc-shadow/about.txt−4 tests/golden/types-recursion-scc-shadow/modules.txt−1 tests/golden/types-recursion-scc-shadow/source.jibb−3 tests/golden/types-recursion-scc-shadow/tokens.txt−30 tests/golden/types-recursion-scc-shadow/tree.txt−15 tests/golden/types-recursion-scc-shadow/types.txt−4 tests/golden/types-recursive-branch/about.txt−4 tests/golden/types-recursive-branch/modules.txt−1 tests/golden/types-recursive-branch/source.jibb−103 tests/golden/types-recursive-branch/tokens.txt−573 tests/golden/types-recursive-branch/tree.txt−306 tests/golden/types-recursive-branch/types.txt−50 tests/golden/types-recursive-gate/about.txt−4 tests/golden/types-recursive-gate/source.jibb−55 tests/golden/types-recursive-gate/tokens.txt−355 tests/golden/types-recursive-gate/tree.txt−176 tests/golden/types-recursive-gate/types.txt−42 tests/golden/types-recursive-sample/about.txt−4 tests/golden/types-recursive-sample/source.jibb−40 tests/golden/types-recursive-sample/tokens.txt−344 tests/golden/types-recursive-sample/tree.txt−161 tests/golden/types-recursive-sample/types.txt−40 tests/golden/types-scope-library-poke/about.txt−4 tests/golden/types-scope-library-poke/modules.txt−1 tests/golden/types-scope-library-poke/path.txt−1 tests/golden/types-scope-library-poke/source.jibb−2 tests/golden/types-scope-library-poke/tokens.txt−8 tests/golden/types-scope-library-poke/tree.txt−3 tests/golden/types-scope-library-poke/types.txt−2 tests/golden/types-scope-root-api/about.txt−4 tests/golden/types-scope-root-api/modules.txt−1 tests/golden/types-scope-root-api/path.txt−1 tests/golden/types-scope-root-api/source.jibb−2 tests/golden/types-scope-root-api/tokens.txt−7 tests/golden/types-scope-root-api/tree.txt−3 tests/golden/types-scope-root-api/types.txt−2 tests/golden/types-scope-store-duplicate/about.txt−4 tests/golden/types-scope-store-duplicate/modules.txt−1 tests/golden/types-scope-store-duplicate/path.txt−1 tests/golden/types-scope-store-duplicate/source.jibb−3 tests/golden/types-scope-store-duplicate/tokens.txt−16 tests/golden/types-scope-store-duplicate/tree.txt−6 tests/golden/types-scope-store-duplicate/types.txt−2 tests/golden/types-scope-store-shadow/about.txt−4 tests/golden/types-scope-store-shadow/modules.txt−1 tests/golden/types-scope-store-shadow/path.txt−1 tests/golden/types-scope-store-shadow/source.jibb−3 tests/golden/types-scope-store-shadow/tokens.txt−16 tests/golden/types-scope-store-shadow/tree.txt−6 tests/golden/types-scope-store-shadow/types.txt−2 tests/golden/types-single-case-pattern/about.txt−4 tests/golden/types-single-case-pattern/modules.txt−1 tests/golden/types-single-case-pattern/source.jibb−59 tests/golden/types-single-case-pattern/tokens.txt−364 tests/golden/types-single-case-pattern/tree.txt−182 tests/golden/types-single-case-pattern/types.txt−32 tests/golden/types-string-interpolation/about.txt−4 tests/golden/types-string-interpolation/modules.txt−1 tests/golden/types-string-interpolation/source.jibb−28 tests/golden/types-string-interpolation/tokens.txt−259 tests/golden/types-string-interpolation/tree.txt−109 tests/golden/types-string-interpolation/types.txt−33 tests/golden/types-tuple-context-nested/about.txt−4 tests/golden/types-tuple-context-nested/modules.txt−1 tests/golden/types-tuple-context-nested/source.jibb−24 tests/golden/types-tuple-context-nested/tokens.txt−289 tests/golden/types-tuple-context-nested/tree.txt−140 tests/golden/types-tuple-context-nested/types.txt−49 tests/golden/types-tuple-context/about.txt−4 tests/golden/types-tuple-context/modules.txt−1 tests/golden/types-tuple-context/source.jibb−7 tests/golden/types-tuple-context/tokens.txt−109 tests/golden/types-tuple-context/tree.txt−55 tests/golden/types-tuple-context/types.txt−14 tests/golden/types-union-alias/about.txt−4 tests/golden/types-union-alias/source.jibb−5 tests/golden/types-union-alias/tokens.txt−23 tests/golden/types-union-alias/tree.txt−10 tests/golden/types-union-alias/types.txt−4 tests/golden/types-union-branch-context/about.txt−4 tests/golden/types-union-branch-context/source.jibb−54 tests/golden/types-union-branch-context/tokens.txt−237 tests/golden/types-union-branch-context/tree.txt−120 tests/golden/types-union-branch-context/types.txt−24 tests/golden/types-union-branch-pending/about.txt−4 tests/golden/types-union-branch-pending/source.jibb−24 tests/golden/types-union-branch-pending/tokens.txt−102 tests/golden/types-union-branch-pending/tree.txt−48 tests/golden/types-union-branch-pending/types.txt−6 tests/golden/types-union-constructor-shape/about.txt−4 tests/golden/types-union-constructor-shape/source.jibb−5 tests/golden/types-union-constructor-shape/tokens.txt−58 tests/golden/types-union-constructor-shape/tree.txt−24 tests/golden/types-union-constructor-shape/types.txt−12 tests/golden/types-union-context-flow/about.txt−4 tests/golden/types-union-context-flow/source.jibb−13 tests/golden/types-union-context-flow/tokens.txt−58 tests/golden/types-union-context-flow/tree.txt−26 tests/golden/types-union-context-flow/types.txt−6 tests/golden/types-union-finite-context/about.txt−4 tests/golden/types-union-finite-context/modules.txt−1 tests/golden/types-union-finite-context/source.jibb−76 tests/golden/types-union-finite-context/tokens.txt−529 tests/golden/types-union-finite-context/tree.txt−234 tests/golden/types-union-finite-context/types.txt−27 tests/golden/types-union-finite-generic/about.txt−4 tests/golden/types-union-finite-generic/modules.txt−1 tests/golden/types-union-finite-generic/source.jibb−48 tests/golden/types-union-finite-generic/tokens.txt−336 tests/golden/types-union-finite-generic/tree.txt−143 tests/golden/types-union-finite-generic/types.txt−11 tests/golden/types-union-finite-limit/about.txt−4 tests/golden/types-union-finite-limit/modules.txt−1 tests/golden/types-union-finite-limit/source.jibb−35 tests/golden/types-union-finite-limit/tokens.txt−233 tests/golden/types-union-finite-limit/tree.txt−89 tests/golden/types-union-finite-limit/types.txt−10 tests/golden/types-union-finite/about.txt−4 tests/golden/types-union-finite/modules.txt−1 tests/golden/types-union-finite/source.jibb−45 tests/golden/types-union-finite/tokens.txt−238 tests/golden/types-union-finite/tree.txt−110 tests/golden/types-union-finite/types.txt−17 tests/golden/types-union-import/about.txt−4 tests/golden/types-union-import/module-trees.txt−8 tests/golden/types-union-import/modules.txt−1 tests/golden/types-union-import/modules/ui/lib.jibb−3 tests/golden/types-union-import/source.jibb−2 tests/golden/types-union-import/tokens.txt−13 tests/golden/types-union-import/tree.txt−4 tests/golden/types-union-import/types.txt−2 tests/golden/types-union-local-pending/about.txt−4 tests/golden/types-union-local-pending/source.jibb−3 tests/golden/types-union-local-pending/tokens.txt−10 tests/golden/types-union-local-pending/tree.txt−5 tests/golden/types-union-local-pending/types.txt−2 tests/golden/types-union-nonwing-subject/about.txt−4 tests/golden/types-union-nonwing-subject/modules.txt−1 tests/golden/types-union-nonwing-subject/source.jibb−82 tests/golden/types-union-nonwing-subject/tokens.txt−593 tests/golden/types-union-nonwing-subject/tree.txt−257 tests/golden/types-union-nonwing-subject/types.txt−45 tests/golden/types-union-overlap-nested/about.txt−4 tests/golden/types-union-overlap-nested/source.jibb−4 tests/golden/types-union-overlap-nested/tokens.txt−21 tests/golden/types-union-overlap-nested/tree.txt−7 tests/golden/types-union-overlap-nested/types.txt−9 tests/golden/types-union-overlap/about.txt−4 tests/golden/types-union-overlap/source.jibb−4 tests/golden/types-union-overlap/tokens.txt−15 tests/golden/types-union-overlap/tree.txt−5 tests/golden/types-union-overlap/types.txt−9 tests/golden/types-union-pattern-result-context/about.txt−4 tests/golden/types-union-pattern-result-context/modules.txt−1 tests/golden/types-union-pattern-result-context/source.jibb−25 tests/golden/types-union-pattern-result-context/tokens.txt−205 tests/golden/types-union-pattern-result-context/tree.txt−96 tests/golden/types-union-pattern-result-context/types.txt−13 tests/golden/types-union-pattern-result-controls/about.txt−4 tests/golden/types-union-pattern-result-controls/modules.txt−1 tests/golden/types-union-pattern-result-controls/source.jibb−55 tests/golden/types-union-pattern-result-controls/tokens.txt−357 tests/golden/types-union-pattern-result-controls/tree.txt−161 tests/golden/types-union-pattern-result-controls/types.txt−30 tests/golden/types-union-patterns-generic/about.txt−4 tests/golden/types-union-patterns-generic/modules.txt−1 tests/golden/types-union-patterns-generic/source.jibb−36 tests/golden/types-union-patterns-generic/tokens.txt−255 tests/golden/types-union-patterns-generic/tree.txt−117 tests/golden/types-union-patterns-generic/types.txt−13 tests/golden/types-union-patterns-import/about.txt−4 tests/golden/types-union-patterns-import/module-trees.txt−8 tests/golden/types-union-patterns-import/modules.txt−1 tests/golden/types-union-patterns-import/modules/ui/lib.jibb−3 tests/golden/types-union-patterns-import/source.jibb−5 tests/golden/types-union-patterns-import/tokens.txt−28 tests/golden/types-union-patterns-import/tree.txt−12 tests/golden/types-union-patterns-import/types.txt−2 tests/golden/types-union-patterns/about.txt−4 tests/golden/types-union-patterns/modules.txt−1 tests/golden/types-union-patterns/source.jibb−74 tests/golden/types-union-patterns/tokens.txt−336 tests/golden/types-union-patterns/tree.txt−152 tests/golden/types-union-patterns/types.txt−25 tests/golden/types-union-phantom-generic/about.txt−4 tests/golden/types-union-phantom-generic/source.jibb−4 tests/golden/types-union-phantom-generic/tokens.txt−21 tests/golden/types-union-phantom-generic/tree.txt−8 tests/golden/types-union-phantom-generic/types.txt−3 tests/golden/types-union-polymorphic-identity/about.txt−4 tests/golden/types-union-polymorphic-identity/module-trees.txt−16 tests/golden/types-union-polymorphic-identity/modules.txt−2 tests/golden/types-union-polymorphic-identity/modules/ui/one.jibb−4 tests/golden/types-union-polymorphic-identity/modules/ui/two.jibb−4 tests/golden/types-union-polymorphic-identity/source.jibb−33 tests/golden/types-union-polymorphic-identity/tokens.txt−368 tests/golden/types-union-polymorphic-identity/tree.txt−152 tests/golden/types-union-polymorphic-identity/types.txt−36 tests/golden/types-union-print-cross-namespace/about.txt−4 tests/golden/types-union-print-cross-namespace/module-trees.txt−6 tests/golden/types-union-print-cross-namespace/modules.txt−1 tests/golden/types-union-print-cross-namespace/modules/ui/lib.jibb−4 tests/golden/types-union-print-cross-namespace/source.jibb−3 tests/golden/types-union-print-cross-namespace/tokens.txt−22 tests/golden/types-union-print-cross-namespace/tree.txt−9 tests/golden/types-union-print-cross-namespace/types.txt−3 tests/golden/types-union-print-distinct/about.txt−4 tests/golden/types-union-print-distinct/module-trees.txt−12 tests/golden/types-union-print-distinct/modules.txt−3 tests/golden/types-union-print-distinct/modules/ui/left.jibb−3 tests/golden/types-union-print-distinct/modules/ui/right.jibb−3 tests/golden/types-union-print-distinct/modules/ui/twin.jibb−3 tests/golden/types-union-print-distinct/source.jibb−11 tests/golden/types-union-print-distinct/tokens.txt−87 tests/golden/types-union-print-distinct/tree.txt−34 tests/golden/types-union-print-distinct/types.txt−9 tests/golden/types-union-print-escape/about.txt−4 tests/golden/types-union-print-escape/source.jibb−5 tests/golden/types-union-print-escape/tokens.txt−20 tests/golden/types-union-print-escape/tree.txt−8 tests/golden/types-union-print-escape/types.txt−2 tests/golden/types-union-print-local/about.txt−4 tests/golden/types-union-print-local/source.jibb−6 tests/golden/types-union-print-local/tokens.txt−28 tests/golden/types-union-print-local/tree.txt−12 tests/golden/types-union-print-local/types.txt−5 tests/golden/types-union-print-nested/about.txt−4 tests/golden/types-union-print-nested/source.jibb−7 tests/golden/types-union-print-nested/tokens.txt−42 tests/golden/types-union-print-nested/tree.txt−17 tests/golden/types-union-print-nested/types.txt−6 tests/golden/types-union-print-same-origin/about.txt−4 tests/golden/types-union-print-same-origin/module-trees.txt−4 tests/golden/types-union-print-same-origin/modules.txt−1 tests/golden/types-union-print-same-origin/modules/ui/shared.jibb−3 tests/golden/types-union-print-same-origin/source.jibb−5 tests/golden/types-union-print-same-origin/tokens.txt−35 tests/golden/types-union-print-same-origin/tree.txt−12 tests/golden/types-union-print-same-origin/types.txt−4 tests/golden/types-union-print-transitive/about.txt−4 tests/golden/types-union-print-transitive/module-trees.txt−8 tests/golden/types-union-print-transitive/modules.txt−2 tests/golden/types-union-print-transitive/modules/ui/base.jibb−3 tests/golden/types-union-print-transitive/modules/ui/mid.jibb−2 tests/golden/types-union-print-transitive/source.jibb−2 tests/golden/types-union-print-transitive/tokens.txt−15 tests/golden/types-union-print-transitive/tree.txt−6 tests/golden/types-union-print-transitive/types.txt−2 tests/golden/types-union-singleton/about.txt−4 tests/golden/types-union-singleton/source.jibb−16 tests/golden/types-union-singleton/tokens.txt−130 tests/golden/types-union-singleton/tree.txt−53 tests/golden/types-union-singleton/types.txt−33 tests/golden/types-union-tag-atoms/about.txt−4 tests/golden/types-union-tag-atoms/source.jibb−5 tests/golden/types-union-tag-atoms/tokens.txt−30 tests/golden/types-union-tag-atoms/tree.txt−11 tests/golden/types-union-tag-atoms/types.txt−12 tests/golden/types-union-tags/about.txt−4 tests/golden/types-union-tags/source.jibb−6 tests/golden/types-union-tags/tokens.txt−34 tests/golden/types-union-tags/tree.txt−15 tests/golden/types-union-tags/types.txt−11 tests/golden/types-union-unresolved-flow/about.txt−4 tests/golden/types-union-unresolved-flow/source.jibb−7 tests/golden/types-union-unresolved-flow/tokens.txt−31 tests/golden/types-union-unresolved-flow/tree.txt−12 tests/golden/types-union-unresolved-flow/types.txt−6 tests/golden/types-union-unresolved/about.txt−4 tests/golden/types-union-unresolved/source.jibb−1 tests/golden/types-union-unresolved/tokens.txt−4 tests/golden/types-union-unresolved/tree.txt−2 tests/golden/types-union-unresolved/types.txt−2 tests/golden/types-unit-construction/about.txt−4 tests/golden/types-unit-construction/modules.txt−1 tests/golden/types-unit-construction/source.jibb−29 tests/golden/types-unit-construction/tokens.txt−168 tests/golden/types-unit-construction/tree.txt−71 tests/golden/types-unit-construction/types.txt−32 tests/golden/types-unit-context/about.txt−4 tests/golden/types-unit-context/modules.txt−1 tests/golden/types-unit-context/source.jibb−46 tests/golden/types-unit-context/tokens.txt−489 tests/golden/types-unit-context/tree.txt−220 tests/golden/types-unit-context/types.txt−95 tests/golden/types-unit-patterns/about.txt−4 tests/golden/types-unit-patterns/source.jibb−36 tests/golden/types-unit-patterns/tokens.txt−180 tests/golden/types-unit-patterns/tree.txt−88 tests/golden/types-unit-patterns/types.txt−13 tests/golden/types-value-cycle-shadow/about.txt−4 tests/golden/types-value-cycle-shadow/modules.txt−1 tests/golden/types-value-cycle-shadow/source.jibb−6 tests/golden/types-value-cycle-shadow/tokens.txt−68 tests/golden/types-value-cycle-shadow/tree.txt−32 tests/golden/types-value-cycle-shadow/types.txt−7 tests/golden/types-value-cycle-unsupported/about.txt−4 tests/golden/types-value-cycle-unsupported/modules.txt−1 tests/golden/types-value-cycle-unsupported/source.jibb−11 tests/golden/types-value-cycle-unsupported/tokens.txt−45 tests/golden/types-value-cycle-unsupported/tree.txt−17 tests/golden/types-value-cycle-unsupported/types.txt−8 tests/golden/types-value-cycles/about.txt−4 tests/golden/types-value-cycles/modules.txt−1 tests/golden/types-value-cycles/source.jibb−13 tests/golden/types-value-cycles/tokens.txt−87 tests/golden/types-value-cycles/tree.txt−39 tests/golden/types-value-cycles/types.txt−44 tests/importer/about.txt+2−52 tests/importer/ford.txt−9 tests/importer/mark-gate.txt−3 tests/importer/mark-list.txt−5 tests/importer/mark-recursive.txt−5 tests/importer/mark.txt−5 tests/importer/origin-first.txt−4 tests/importer/origin-other.txt−4 tests/importer/origin-transitive.txt−6 tests/importer/shadow-static.txt−13 tests/importer/shadow.txt−6 tests/importer/small.txt−142 tests/importer/tree.txt+2−188 tests/lib/jibb-api-paths.hoon−104 tests/lib/jibb-bridge.hoon+2−128 tests/lib/jibb-hole-guards.hoon−77 tests/lib/jibb-import-diagnostic.hoon−59 tests/lib/jibb-import.hoon+1−19 tests/lib/jibb-list-alias-guards.hoon−27 tests/lib/jibb-mark-bridge.hoon−28 tests/lib/jibb-module-scope.hoon−132 tests/lib/jibb-poke-bridge.hoon−88 tests/lib/jibb-proj-guards.hoon−124 tests/lib/jibb-qath-fuel.hoon−52 tests/lib/jibb-qath-source.hoon−34 tests/lib/jibb-tlon-bridge.hoon−29 tests/lib/jibb.hoon+108−1786 tests/type-api-paths/about.txt−3 tests/type-api-paths/api.txt−13 tests/type-api-paths/expected.txt−18 tests/type-api-paths/missing-decl.txt−12 tests/type-api-paths/poke-clash.txt−12 tests/type-api-paths/scry-bad.txt−13 tests/type-api-paths/scry.txt−13 tests/type-api-paths/todo-action.txt−6 tests/type-api-paths/todo-item.txt−6 tests/type-api-paths/todo-sur.txt−12 tests/type-api-paths/todo-update.txt−6 tests/type-api-paths/todos.txt−6 tests/type-api-paths/value-clash.txt−15 tests/type-import-diagnostic/about.txt−15 tests/type-import-diagnostic/expected.txt−112 tests/type-import-diagnostic/mark.txt−5 tests/type-import-diagnostic/nested.txt−11 tests/type-import-diagnostic/source.txt−13 tests/type-import-diagnostic/sur.txt−5 tests/type-import/about.txt+7−29 tests/type-import/expected.txt+3−133 tests/type-import/source.txt−69 tests/type-import/sur.txt+1−18 tests/type-list-alias/expected.txt−36 tests/type-mark/about.txt−7 tests/type-mark/collision.txt−3 tests/type-mark/declared.txt−2 tests/type-mark/expected.txt−19 tests/type-mark/missing.txt−1 tests/type-mark/sur.txt−2 tests/type-module-scope/about.txt−16 tests/type-module-scope/expected.txt−67 tests/type-poke/about.txt−7 tests/type-poke/alias.txt−2 tests/type-poke/api.txt−2 tests/type-poke/client.txt−23 tests/type-poke/direct.txt−2 tests/type-poke/expected.txt−66 tests/type-poke/exported.txt−9 tests/type-poke/fake.txt−4 tests/type-poke/impostor-client.txt−2 tests/type-poke/impostor.txt−1 tests/type-poke/inner.txt−2 tests/type-poke/mark.txt−5 tests/type-poke/public.txt−2 tests/type-poke/transitive.txt−2 tests/type-tlon/about.txt−6 tests/type-tlon/expected.txt−6 tests/type-tlon/source.txt−6 tools/clay-fixtures+1−215 tools/golden+19−158 tools/golden_case.py−99 tools/importer-test+2−11 tools/ship+10−241 tools/testdata/clay-fixtures-selftest−109 tools/testdata/selftest−149 tools/testdata/ship-selftest−217 tools/type-api-paths-test−52 tools/type-hole-guards-test−32 tools/type-import-diagnostic-test−43 tools/type-list-alias-test−33 tools/type-mark-test−35 tools/type-module-scope-test−40 tools/type-poke-test−50 tools/type-proj-guards-test−32 tools/type-qath-guards-test−31 tools/type-tlon-test−39
README.md+3−3
@@ -16,7 +16,7 @@ Milestone 1 of the doc's eight, the parser and the `%jibb` mark, is done; milest
1616
1717## Golden tests
1818
19−Each case, `tests/golden/<case>/`, holds `source.jibb`, `about.txt` (where it comes from, what it tests, the expected outcome), and the expected outputs: `tokens.txt` from the layout pass and `tree.txt` from the parser. A file holds the output plus one trailing newline. A case may also have a `path.txt` specifying its logical `/ui/.../*.jibb` path. An `expect-types:` line in `about.txt` opts it into the provisional `golden-types` checker output in `types.txt`; `--update` creates it. A case can select Hoon molds in `imports.txt` and provide each module in `sur/<module>.txt`, or select marks in `marks.txt` and provide their source in `mar/<name>.txt`. `modules.txt` selects Jibb source fixtures; their trees go in `module-trees.txt`, and the partial checker can resolve a subset of library imports. See [docs/development.md](docs/development.md).
19+Each case, `tests/golden/<case>/`, holds `source.jibb`, `about.txt` (where it comes from, what it tests, the expected outcome), and the expected outputs: `tokens.txt` from the layout pass and `tree.txt` from the parser. A file holds the output plus one trailing newline. A case may also have a `path.txt` specifying its logical `/ui/.../*.jibb` path. An `expect-types:` line in `about.txt` opts it into the provisional `golden-types` checker output in `types.txt`; `--update` creates it.
2020
2121Run them without a ship. This needs `urbit` on PATH and Python 3.
2222
@@ -42,7 +42,7 @@ tools/hoon '(golden /a/b/jibb (crip "++ main view"))'
4242tools/hoon --raw --cord src=tests/golden/foo/source.jibb 'tree:(golden /a/b/jibb src)'
4343```
4444
45−`tools/testdata/selftest` tests both tools against a stub library, and `tools/doc-blocks` against Markdown it writes. `tools/importer-test` compares the partial Hoon importer's fixture projections against their golden file. `tools/type-import-test`, `tools/type-tlon-test`, `tools/type-mark-test`, `tools/type-poke-test` and `tools/type-api-paths-test` check importer/checker, prelude and partial API path analysis boundaries under eval; the ship suite runs the same fixtures.
45+`tools/testdata/selftest` tests both tools against a stub library, and `tools/doc-blocks` against Markdown it writes. `tools/importer-test` compares the partial Hoon importer's fixture projections against their golden file. `tools/type-import-test` checks the importer/checker bridge under eval; the ship suite runs the same fixture.
4646
4747### The doc's examples
4848
@@ -86,7 +86,7 @@ A sync with nothing to commit takes about 2 s. A commit adds 3 to 10 s, and 300
8686
8787`tools/ship check-commit` proves that `|commit` stores `.jibb` files. It syncs `my-app`, reads every `/ui` file back with `%cx`, byte for byte, and converts `%jibb` to `%mime` and `%txt` and back. It commits half-written files, then deletes them. It merges a file that two desks changed on different lines, and checks that changes to the same line conflict. It can be rerun, and it leaves the two scratch desks it merges with (`%jibb-check-ours` and `%jibb-check-theirs`) holding only what `|new-desk` gives, unmounted.
8888
89−`tools/clay-fixtures` syncs `my-app`, builds its example `/sur` files and marks through Clay, and checks selected types read from the compiled graphs and passed to the partial checker. It compares the results with golden files under `tests/clay-fixtures/`.
89+`tools/clay-fixtures` syncs `my-app` and checks through Clay that its example `/sur` files and marks build. It compares the result with the golden file under `tests/clay-fixtures/`.
9090
9191For anything else:
9292
docs/compiler.md+3−49
@@ -56,51 +56,9 @@ The core is split into chapters, `+| %name`, in this order:
5656| `%span-check` | `+check-spans`, which `+golden` runs on every tree, and `+check-spans-test` |
5757| `%type-inference` | The initial inference fragment and its unification helpers; not yet a module type checker |
5858
59−The inference fragment supports fixed auras, unrestricted `@`, one-way widening into it and toward aura-family ancestors, generic variables and gates, faced and unfaced cells, cell sample binders, known record field reads, a cell pattern of two or more binders, a complete two-arm loobean branch, a complete two-arm unit-shaped branch, closed local mold aliases and acyclic forward value references. For a supported single syntactic top-level recursive gate, the checker infers the sample first and uses that exact sample, including its field faces, in a monomorphic self placeholder. The completed body must unify with the placeholder before the gate is generalized; incompatible recursive arguments can report the call and argument sites. Uses of generalized top-level definitions instantiate their schemes independently. For a complete loobean branch with one direct self-call arm, the checker can infer the other arm independently and use its closed, fully resolved type to seed the recursive result; it then checks the whole body. Open or pending base types do not seed the result, and other branch shapes still depend on the existing partial inference. A supported single local recursive gate also uses a monomorphic self reference while its body is checked, then generalizes variables free of its enclosing environment; captured variables remain shared. Acyclic local value definitions can refer forward. The checker collects written capitals per `++` before inference, excluding nested definitions: a capital used in an enclosing definition is shared with its locals, even when written later, while a capital introduced only in a local definition is generalized there. Sibling locals can introduce independent capitals with the same spelling; generic mold parameters keep their own scope. Top-level groups of syntactic gates are inferred together with monomorphic placeholders and shared substitutions, then generalized only after the whole group checks; downstream uses and library interfaces instantiate those schemes independently. A dependency graph identifies groups with two iterative depth-first passes; its conservative local-reference edges can reject otherwise valid programs. Supported local mutually recursive gate groups also use shared monomorphic placeholders and generalize only after the group checks, preserving captured outer variables. Some proven non-gate value cycles are diagnosed; other mixed gate/value cycles, polymorphic recursion, unresolved literal constraints and unresolved branch joins remain unsupported. Acyclic simple local mold aliases can also refer forward, and are scoped to the body, not its gate's sample. Nonrecursive generic aliases of supported molds can be applied at exact arity, including locally and through library interfaces; their parameters are lexical. Closed, provably disjoint nonrecursive unions and tagged single-case molds support contextual term values, `~` and `|=%tag` constructors. A null-headed cell can match a union case but does not supply a `|=%$` constructor; unresolved tags and nulls remain pending, with distinct partial-inference diagnostics. Nonrecursive top-level generic union molds with provably disjoint cases also support contextual tags and constructors at exact arity; their arguments are retained through generalization and supported library interfaces. Nonrecursive generic aliases can reorder, repeat or omit parameters while preserving a supported union’s origin, including through local scopes and library interfaces. A generic union declared directly inside a body and recursive molds remain unsupported. A directly known named union can instantiate an unconstrained generic gate sample while retaining its origin, generic arguments and faces. Unnamed, pending-tag, recursive, unknown-atom and variable-bound union origins remain unsupported. A value with type variable `A` can fit a field whose type is that same `A`, including in generic union payloads and nested or repeated record fields. A differing-variable face constraint remains unsupported. When inference forces two distinct explicitly written capitals equal, it reports both source sites; forcing a capital to a concrete type remains unsupported in this fragment. It can infer and generalize atom constraints arising from explicit capitals or bare sample binders, preserve those constraints through aliases, instantiate them independently, and print multiple constraints. Unresolved decimal variables default to `@ud` for inferred types without gates; defaulting inside gate types and other constraint cases remain incomplete. It does not yet check a module, complete imports, general patterns, general deferred constraints, recursive molds, dependency cycles or most errors with both conflicting excerpts. Definite cast and call mismatches, incompatible branches and overlapping union cases report both sites and excerpts. Concrete branch results can join at an explicitly present parent aura or `@`. Some known tuple and record positions acquire matching faces; other variable-dependent face merges, general branch tag context and ambiguous call-result propagation remain unsupported; function compatibility involving nested `@` and variable-dependent joins remain unsupported except for equal types. For a single recursive gate outside a group, the reporting path repeats inference rather than instantiating its generalized interface inside its own body; a group report uses its stored schemes. This adds work, and the current dependency pass can take quadratic time on long forward chains; the milestone's speed target remains unverified. A separate conservative pass reports unions whose cases are provably disjoint or overlapping and leaves other cases unresolved; it does not claim the mold is checked. Unsupported forms are reported as such, and the partial output says the module has not been checked.
59+The inference fragment supports fixed auras, generic variables and gates, unfaced cells, a two-binder cell pattern, a complete two-arm loobean branch, closed local mold aliases and acyclic forward value references. It instantiates generalized top-level definitions when they are used. It does not yet check a module, its imports, faces, general patterns, deferred constraints, recursive or generic molds, dependency cycles or errors with both conflicting excerpts. The current dependency pass can take quadratic time on long forward chains; the milestone's speed target remains unverified. A separate conservative pass reports unions whose cases are provably disjoint or overlapping and leaves other cases unresolved; it does not claim the mold is checked. Unsupported forms are reported as such, and the partial output says the module has not been checked.
6060
61−A single-arm cell pattern can bind two or more positions, with its last binder capturing the remaining tail. Duplicate and shadowed names are rejected. A definite non-cell spine fails; an intermediate union or collection that might contain a cell remains unsupported. For a known non-union cell, a separate one-arm rule also accepts structured patterns, including nested literal and wildcard positions, when the existing coverage proof establishes the whole pattern. It binds payloads with their original types and checks result context; unknown, partially covered, union or recursive spines stay unsupported.
62−
63−String interpolation infers its pieces in order and preserves substitutions and pending constraints. A piece with a known atom aura, unrestricted `@`, or a tape `(list @tD)` is accepted; an isolated decimal literal takes its normal `@ud` default. A known cell reports that it needs a printer, and an explicitly generic atom asks for an aura at its use site. Loobeans, term singletons, non-tape collections, open types and a type fixed only later remain unsupported in this fragment.
64−
65−The Hoon bridge translates imported `*` as the any-noun type, directly or within supported nonrecursive cells. The reader may still decline a disjoint tagged union with a noun payload, and recursive imports containing `*` remain unsupported. It accepts an exact fork of the two loobean singletons as `?`, and each singleton separately as `%.y` or `%.n`, including inside supported faced cells. Contextual literals specialize against a loobean singleton. Open `%f`, other values, and other forks containing loobean singletons remain unsupported; recursive Hoon molds containing flags can also fail closed.
66−
67−A bare tag that provably matches no case of a known union reports the union and tag sites. This covers casts, single-argument calls, contextual unit payloads, list items and supported branch arms, including unnamed imported unions. For syntactic tuples, ordered fit replay can identify a missing tag in a nested position; an earlier mismatch or uncertainty stops the replay instead of guessing. Existing tags whose shape or payload does not fit retain the ordinary mismatch; unresolved tags stay pending.
68−
69−A change can replace uniquely named fields on a fully known, faced record spine, including through a nested wing. Replacements receive the field type as context, substitutions and pending constraints are retained, and the resulting type remains the original record. Missing fields, empty changes and definite replacement mismatches report sites; the expected-type site is the edit, since the original field declaration location is not retained. Unknown or partly unfaced spines, ambiguous fields and repeated edits remain unsupported. A cast to a known record also supplies field context to a tuple or record initializer, including nested list and union fields. The expected-type site is the cast mold; the original field declaration location is not retained. Isolated cart-style `init` and `update` expressions infer in this fragment. The complete cart-store source fails closed because store kind and declaration scope are not yet checked.
70−
71−For supported closed unions, the type printer keeps the union’s origin separate from its displayed name. It prints an in-scope name such as `msg` or `msg.lib`, including in records and gates; an accessible imported nongeneric alias may name a transitive union. A nongeneric body-local union that escapes its scope, or an origin without an accessible name, prints its cases separated by spaces, parenthesized when nested. That case-list form is print-only. A supported generic union prints its name and all arguments, including unused arguments; when its name is unavailable, the partial printer reports that limitation instead of dropping its arguments. Two faces for the same imported origin remain compatible; compatibility between distinct union origins, including in gate types, remains unsupported. Some comparisons of generic union arguments also remain unsupported rather than deciding equality or mismatch. The Hoon bridge also translates some imported unnamed unions into this representation; unsupported cases remain errors.
72−
73−Multi-argument calls form one right-nested sample: `f a b c` supplies `[a [b c]]`, with the last argument able to be a cell itself. The fragment fits the complete sample, preserving known faces and shared variables. Known sample positions can provide list or union context to arguments; unknown sample shapes use ordinary inference and some contextual forms remain unsupported. For a definite mismatch, the diagnostic points to a specific argument when it can establish which one failed; otherwise it reports the combined sample.
74−
75−A list literal can be inferred when a cast or known gate sample supplies a list type and the supplied prelude has the validated standard list definition. Empty, nonempty and nested literals work, including contextual union tags in elements; mismatched elements report the item and expected type. Imported Hoon lists share this representation. Under the same known context, `~` and zero-valued term literals fit an empty list, and a two-item unfaced cell `[head tail]` is a cons; cons cells and list literals can be nested. Mismatched heads or tails report both sites. A known list result also supplies context through complete loobean, unit-shaped and list-shaped branches, including recursive and nested branches. Known loobean result context can propagate through supported complete branches and binder-only cell arms, with a final directional fit; a binder-only arm over a union subject remains unsupported. A known gate with an unresolved result variable can also receive an enclosing result type before its argument is inferred, for example allowing `^- (list @t) (id ~)`; unknown callees and unresolved targets retain the conservative path. A known gate sample supplies context to corresponding positions of a single tuple or record argument, including nested cells; a zero literal can therefore fit a list position. A bound zero constant still remains unsupported rather than a definite mismatch, and an unknown callee does not supply context. Uncontextualized list literals also infer with a fresh element variable, including empty and nested lists; the resulting variable can generalize. Unresolved item tags and uncertain widening remain unsupported. Faced or longer cons cells, and a missing or altered prelude list remain unsupported. For a known standard list with a supported element type, it also infers a complete two-arm branch using `~` and `[item rest]`, in either order. The binders have the element and list types and cannot shadow or duplicate names. Unknown subjects, unsupported element types, other patterns and incomplete arms remain unsupported.
76−
77−A term-headed pair such as `gap+%s2` follows the same contextual inference as `[%gap %s2]`; its synthetic head uses the pair’s span in diagnostics.
78−
79−A backtick constructs a unit when the supplied prelude has the validated standard `unit` template. Its payload is inferred normally, retaining pending literals and generic variables; nested units work and the prelude’s `some` becomes available. With ordinary result annotations, its `bind`, `biff`, `both`, `clap`, `clef` and `flit` also infer. A known unit in a cast, call, list item or record field supplies its payload context, including nested units and lists; definite mismatches identify the payload and context. Unrelated union identities, some variable-dependent fits, and missing or altered prelude templates remain unsupported.
80−
81−A known union of `~` and a null-headed cell can be matched by `~` and `[~ value]` arms in either order. The payload binder is checked for shadowing. Unknown subjects, missing or duplicate arms, and unresolved branch results remain unsupported; this fragment infers the prelude’s `fall` and `need` signatures.
82−
83−A known closed union with two or more arms can be matched when each arm provably covers or excludes each remaining case. The checker first tries whole cases; when a pattern splits a case, it can expand known `?` positions into their two noun values, up to 64 alternatives across the union. Binders retain the original case type, and one arm may bind several refinements of that case. It reports missing alternatives and arms already covered, checks tags by noun value, and supports imported and generic union cases. Other partial patterns, expansions above the limit, binders spanning distinct cases, differing arm result types and some complex two-arm subjects remain unsupported. When a cast or known call sample supplies a result type, a known union subject accessed by a wing, a grouped wing or a supported shallow call can propagate that context through whole-case arms and supported finite loobean refinements, including nested cell and list positions. Other partial-pattern contexts and subject forms remain unsupported. The Grammar’s `step` block infers in this fragment, but its module is not yet checked.
84−
85−A known closed union can also provide context to each arm of a complete loobean or unit-shaped branch in a cast or a call with a known union sample. Nested branches and transparent groups work; a mismatch reports the expected union and the offending arm. General patterns and context through bodies with local definitions remain unsupported, and unrelated unresolved tags stay pending.
86−
87−The separate `jibb-dev/lib/jibb-import.hoon` is an unfinished reader for selected Hoon type graphs. It handles named recursion, nested map, set, queue, list, unit, jar and jug arguments, direct ordered maps, and direct `$^` unions whose source branches can be proved disjoint. It also recognizes a direct ordered-map call with two simple named mold operands, as in Tlon `notes.log`, after validating provenance and operand source; revisiting the same map hold fails closed. It also reads ordered map fields in records when the map arguments are syntactically fixed atom molds and other fields are fixed atom molds or standard collections of static atom molds. Collection names must not be shadowed. The reader can also import a mark door sample, removing its outer sample face and validating its build subject. For a mark whose sample is exactly a named arm of its single Ford-imported `/sur` core, it can recover a source-proved nonrecursive union, including source-location wrappers around fields; recursive or unverified fallback results remain unsupported. The reader checks explicit Hoon `$%`, `$?` and `$^` unions against the Grammar’s disjointness rule, as @iko confirmed on 2026-10-30. For an explicit `$%` with distinct literal head tags, it can also prove restricted local named payload dependencies, including bare `~` fields, re-evaluate and validate each source branch, and recover the union before Hoon collapses it. The real Tlon `notes.u-note` exercises its `[%deleted ~]` case. A bounded fallback also recovers one level of local named tagged unions inside such a union, including Tlon `notes.u-notebook` and `notes.u-notes`. A source-proved nested self-recursive union retains its named owner, including Tlon `notes.import-node`; deeper, mutually recursive or unproven cases stay unsupported. The nested source proof has a 256-visit semantic-node budget, and source-location wrapper peeling is limited to four per node; Hoon evaluation and source scans are not metered. It rejects recursive or computed dependencies, inherited same-name collisions, unsupported nested unions and proofs exceeding a shared 4,096-node budget. It re-evaluates statically recognizable source branches before Hoon can collapse them, checks materialized fork cases, and rejects shapes it cannot prove disjoint. Static records may also have verified standard-collection and `path` siblings. One direct explicit union argument in a standard list, set, map or unit is accepted when its call wrapper and collection provenance are verified and its static cases are pairwise disjoint. A synthetic regression checks that forged wrapper subjects, samples and tails are rejected. Other collection-union forms, nested ordered maps, general source-level disjointness and complete integration with the checker remain unfinished. `+golden-types-imports` can consume fixed-aura atoms, valid term singletons, Hoon's `%n` zero singleton as Jibb `~`, nested faced or unfaced cells, unions of supported, pairwise-disjoint cases, and opaque standard collections with supported arguments from caller-supplied reader results for declared `/-` imports; `+golden-types-with-marks` accepts the same shapes for declared marks. The caller must pass unchanged results from the source-aware reader: the bridge validates the supplied graph but cannot detect source cases Hoon collapsed before that graph was built. The opaque collection types retain their names and arguments for identity, unification and printing. The validated standard prelude `list` mold shares the imported list representation; other Jibb-written collection molds and most prelude collection operations remain unsupported. Other forms remain unsupported. Its disjointness proof is conservative and can reject a valid union it cannot prove disjoint. Collection recognition requires the originating `/sur` core. The reader validates direct zuse subjects and Ford subjects consisting of faced imported cores and a validated tail, checking imported cores transitively; it rejects shadowed names, inconsistent core subjects and other subject shapes. For a recursive reference, the reader matches the exact Hoon hold against named arms in validated cores, including transitive Ford imports; it rejects missing, unlabelled or ambiguous origins. Its fixtures include three real Tlon files; `tools/importer-test` compares the internal projection under eval, and the ship test compares the same golden output. `tools/type-import-test` and `tools/type-mark-test` compare bridge reports under eval and on the ship. `tools/type-tlon-test` and its ship counterpart exercise four real Tlon presence unions and a field read through the source-aware reader and partial checker. `tools/clay-fixtures` also passes Clay-built `/sur` molds and mark samples through the Clay-built importer and partial checker.
88−
89−Self-recursive `/sur` molds can cross the bridge as opaque module-and-name identities when their supported source-aware graph passes validation, including one-argument lists containing same-origin recursive references. The real Tlon `notes.import-node` reaches this bridge; it does not unfold or construct the recursive type. Aliases, foreign references, recursive marks, unfolding, construction and field access remain unsupported; the partial printer declines recursive names that are not in scope.
90−
91−The partial checker also recognizes a source-proven Jibb recursive mold consisting of `~` and one faced cell with a fixed-aura head and direct self tail. Its identity includes the defining path and name. It unfolds this shape for supported null and cell construction and for a two-arm null/cell match; static application-path literals use the verified public `qath` alias. The internal prelude defines `qath` as a transparent knot sequence and the public prelude re-exports it. Each inference attempt has 256 unfolding and static-segment steps; parsing and separate retries are not bounded by that limit. Dynamic application-path segments, broader patterns and other recursive shapes remain unsupported. Route and static-file existence checks remain milestone 4.
92−
93−Callers that have a `/sur` core and a name can use `+read-named`: it checks for a locally declared arm before asking Hoon to evaluate the mold, and reports evaluation failures with the final Hoon trace line. `+read-mold-in` remains available when the caller already has the selected type. The opt-in `+read-named-diagnostic` and `+read-mark-diagnostic` preserve successful graphs and distinguish definite `%invalid` aura and core evidence emitted directly by the reader from `%unsupported` failures. Other failures, including unverified union disjointness and vase recognition based only on a name, remain unsupported. These entry points revalidate and re-walk failed types; the opt-in `+golden-types-with-reader-diagnostics` accepts unchanged structured reader results and reports definite aura or core errors at their imported mold use sites, when the import and supplied input are unique. Ordered replay covers direct and nested cell samples, record and function casts, and non-generic same-module aliases; it stops at an unsupported prefix, cycle or shadowing failure. Union molds, generic applications, transitive modules and unsupported reader outcomes still report generic limitations. Replay repeats inference and may add work; this entry point remains partial. Existing checker entry points continue treating failed imports as unsupported. It also fails closed on repeated field faces along an imported record spine, including recursive roots; the diagnostic remains generic. Hoon type graphs can erase unfaced nested-cell boundaries, so the check may conservatively reject a valid source with equal names in distinct erased scopes. Faced nested records and union alternatives keep separate scopes.
94−
95−The partial report can diagnose certain non-gate value dependency cycles, including cycles through gates. It requires an explicit atom or loobean result cast and a syntactically proven dependency group with unshadowed simple samples; it identifies the value and a dependency site. Untyped results, branches, nested definitions, qualified wings and complex samples remain unsupported. The proof constructs an additional dependency graph. One 24-case recursive/generic eval run took 19.7 s with it and 18.6 s before it, including startup; these single runs do not isolate the graph cost.
96−
97−The source-backed `+api-path-analysis-source` is a separate partial analysis, not an API check: it resolves reachable Jibb imports and declared mark graphs and returns path and scry segments, full and diff mark identities and their types. It also checks derived-name collisions. Full and diff payloads must be direct declared mark names; typed scry parameters must be a same-name, same-aura subset of the watch parameters, and unknown or duplicate segment binders fail closed. It creates no request gates. The caller must pass a trusted prepared prelude and unchanged source-aware reader results.
98−
99−`+golden-types-with-prelude` accepts case-local Jibb module sources alongside `/sur` and mark results and the vendored prelude source. It resolves reachable ordinary library modules in dependency order, caching completed interfaces per invocation and exporting supported closed value schemes, direct generic unions, and simple or nonrecursive generic mold aliases whose bodies the fragment supports. It detects missing sources and cycles and rejects a dependency if its interface cannot be inferred by the fragment. Qualified wings can also read nested fields of an imported value, instantiating that value’s scheme independently at each use; missing, ambiguous and non-record fields remain unsupported.
100−
101−The supplied prelude is parsed into a **partial interface**: all names actually declared in the source are reserved, while only the molds and values this fragment can infer are available. These include the validated standard `list` mold, `unit`, the doc-exact generic `cmd` union, `same`, `fall`, `need`, `bond`, `lure`, `weld`, `snoc`, `turn`, `flop`, `rear`, `drop`, `skim`, `skip`, `murn`, `join`, `snip`, `levy`, `lien`, `cork`, `corl`, `cury` and `curr`; unsupported entries remain unavailable. The validated `list` is injected while the prelude’s gates are inferred; `weld` and `turn` use ordinary explicit result casts. An absent or altered `list` is not injected, and an altered declaration cannot leak through a direct or transitive mold alias. The same validated template is available when prelude mold aliases are prepared, so supported direct and transitive aliases can use it. A named prelude union keeps the fixed `/lib/jibb/prelude/jibb` origin in every module, and its name remains unqualified when a library exports a type containing it. The prelude inventory is incomplete, so reserving the names in this source does not establish complete shadowing coverage. The source-backed internal prelude defines `poke`, which the public prelude re-exports as an ordinary transparent type. A dedicated trusted internal-prelude preparation path also supplies an atom-constrained private comparison scheme for a Jibb-written `gth` wrapper. Ordinary module resolution rejects that primitive path even if a caller supplies a spoofed root or bundle. The low-level prepared interface is still trusted host input; the host must select the vendored sources and canonicalize paths. Primitive execution and shape-based jet recognition are not implemented. Addition, decrement and length remain unavailable until arithmetic constraints distinguish their results from loobeans. The partial checker resolves its supported source shape, preserves its public name, and rejects ordinary imports of the private internal path. An imported API with one mark and a matching direct `+$ poke` declaration can export a derived constructor and retain agent/mark metadata when the source representation has the supported agent case. Other API shapes, complete private module checking, root API and kind checking, stores, `ask`, `pure`, lowering and runtime effects remain unfinished. A possible store or root API declaring `+$ poke` reports that kind or scope needs unsupported inference; definite duplicate declarations and unrelated shadowing still report conflicts. Prepared interfaces and caches are trusted caller inputs; the future host and linker must ensure the private source validated during preparation is the same version used to lower derived constructors. A `*` payload may contain gates, so the fragment treats it conservatively; full gate-free checks are unfinished. The shared module-scope fixture compares the prepared and source-taking paths against the real prelude and a two-module golden under eval and on the ship.
102−
103−`+prepare-prelude` derives the interface and declared-name inventory from the trusted vendored source. Hosts can reuse its result with `+golden-types-with-prepared-prelude`; they must pass the unchanged result of preparation, not an independently constructed value. Empty, malformed and duplicate-name prelude sources fail closed. The source-taking `+prepare-prelude` and `+golden-types-with-prelude` do not supply the internal module; their `-and-internal` or `-with-internal` variants accept its source for the supported private import. API files, modules with `main`, unsupported definitions and many other features remain outside this subset. The older `+golden-types-with-modules` entry point fails closed for imports because it has no prelude scope. None of these partial reports claims the module has been checked.
61+The separate `jibb-dev/lib/jibb-import.hoon` is an unfinished reader for selected Hoon type graphs. It handles named recursion, several collections, jar and jug in ordinary record fields, and direct `$^` unions whose source branches can be proved disjoint. Nested `$^`, nested collection arguments, ordered maps, general source-level disjointness, marks and complete integration with the checker remain unfinished. `+golden-types-imports` can consume fixed-aura atoms and unfaced cells from caller-supplied reader results for declared `/-` imports; other forms remain unsupported. Its disjointness proof is conservative and can reject a valid union it cannot prove disjoint. Collection recognition requires the originating `/sur` core, built directly against zuse, and rejects locally shadowed names and subjects with unresolved Ford imports. Its fixtures include three real Tlon files; `tools/importer-test` compares the internal projection under eval, and the ship test compares the same golden output. `tools/type-import-test` and the corresponding ship test compose the importer with the inference fragment and compare a separate golden report.
10462
10563And the design notes:
10664
@@ -111,20 +69,16 @@ And the design notes:
11169| 3. The parser | Why recursive descent (the grammar is LL(2) after the layout pass), the EBNF rule by rule with the node each gives, what the EBNF leaves out and how it's filled in, spacing, and where each error points, with its message |
11270| 4. Printed formats | The token, tree and error formats the golden files hold |
11371
114−The partial checker reserves `proj` in module, local, sample, pattern and import bindings, including bindings inside unsupported source; a field, tag or path segment may still have that spelling. With a known expected record type, it checks selected explicit `(proj record)` calls over closed, uniquely faced records, preserving the source expression, its type, the result type and field axes in the checked interface. Imported and private-prelude dependencies retain the source needed to lower those plans. The checker does not yet lower or execute them. It supports selecting one or more fields in their original order; a single selected field keeps its face and uses one source axis. Reordered fields, unknown or open record spines, some nested contexts and recursive groups with projections remain unsupported. A directional fit of a wider faced record fails closed instead of inserting a projection, including within supported list, unit and record positions. To limit repeated work, record-spine proofs are reused along the same closed spine and stop at 1,024 fields; field boundaries and the special handling of positional calls reset the appropriate proof. Prepared interfaces and their source remain trusted host inputs.
115−
11672## The tree
11773
11874Every node is `[%tag at=span …]`, so `+span-of` finds its span in one place; the few that aren't say so in the `%tree` chapter. The kinds of node:
11975
12076- **Module**: imports (`%sur` for `/-`, `%mark` for `/%`, `%jibb` for `/=`), then definitions (`%mold` for `+$`, `%value` for `++`).
12177- **Expressions** (`expr`): `%lit`, `%str`, `%path`, `%qath`, `%wing`, `%change`, `%pair`, `%unit`, `%group`, `%list`, `%tuple`, `%gate-wide`, `%ctor`, `%call`, `%gate`, `%cast`, `%trace`, `%branch`, `%crash`, and `%body` for an indented body, with its local definitions if it has any.
122−- **Molds as written** (`shape`): `%aura`, `%hole`, `%noun`, `%void`, `%flag`, `%const`, `%ref`, `%tvar`, `%path`, `%apply`, `%cell`, `%union`, `%fn`, `%generic`. A `%hole` retains the span of `_`; an inferred typed path segment retains that span separately from its enclosing segment. A `%union` spans its first through last case and has no lead token; a single case is its own mold. `%generic` spans from the `|$` after a `+$` name through its body.
78+- **Molds as written** (`shape`): `%aura`, `%noun`, `%void`, `%flag`, `%const`, `%ref`, `%tvar`, `%path`, `%apply`, `%cell`, `%union`, `%fn`, `%generic`. A `%union` spans its first through last case and has no lead token; a single case is its own mold. `%generic` spans from the `|$` after a `+$` name through its body.
12379- **Samples, fields and patterns**: a sample is `%bind`, `%face`, `%pun`, `%cell` or `%bare`, since a bare name binds anywhere in a sample; a pattern is `%lit`, `%str`, `%any`, `%bind` or `%cell`.
12480- **Literals** (`lit`) keep the form they matched, their aura and value, and their text as written, which the printers show.
12581
126−The parser accepts type holes. The partial checker records each ordinary hole with its span and validates the obligations created in a value or local definition before generalization. A solved concrete type or an explicitly written in-scope capital resolves a hole; a later use cannot repair it. Independent decimal holes may default to `@ud` when the surrounding inferred type is gate-free; variables reachable from the environment or written capitals are protected from premature defaulting. Structural named-mold holes are diagnosed at their source, while complex named molds, inferred path segments, recursive groups with holes and unresolved constraints remain unsupported. Partial prelude and API interfaces cannot silently export unchecked holes. A separate syntax-tree pass reports duplicate names within a written record at both field sites, including in unused definitions; nested and separate records have independent scopes.
127−
12882The tree keeps everything the checker needs to report an error at the code as written: open and closed brackets give the same node, but every node keeps its span.
12983
13084## Positions and errors
docs/development.md+4−33
@@ -61,23 +61,12 @@ git clone https://github.com/urbit/tools /root/src/tools
6161| `tools/golden` | Runs the golden cases under `urbit eval`: every case, or those matching `--case`; `--update` rewrites the expected outputs; `--show` prints them |
6262| `tools/importer-test` | Compares the partial Hoon importer's diagnostic trees and errors with `tests/importer/tree.txt` under `urbit eval` |
6363| `tools/type-import-test` | Composes the Hoon importer with the partial checker and compares `tests/type-import/expected.txt` under eval |
64−| `tools/type-tlon-test` | Runs the real Tlon presence source through the importer and partial checker, comparing `tests/type-tlon/expected.txt` under eval |
65−| `tools/type-import-diagnostic-test` | Compares the structured reader diagnostic bridge report under eval |
66−| `tools/type-mark-test` | Checks the partial checker’s mark import boundary against `tests/type-mark/expected.txt` under eval |
67−| `tools/type-poke-test` | Checks source-backed prelude and poke-only API reports against `tests/type-poke/expected.txt` under eval |
68−| `tools/type-api-paths-test` | Checks partial API path analysis with real todo mark samples against `tests/type-api-paths/expected.txt` under eval |
69−| `tools/type-hole-guards-test` | Runs the shared hole-defaulting and API interface guards under eval; the same checks run on the ship |
70−| `tools/type-list-alias-test` | Runs the shared prelude list-alias and provenance guards under eval and on the ship |
71−| `tools/type-qath-guards-test` | Runs source-provenance, recursive unfolding and face guards under eval and on the ship |
72−| `tools/type-proj-guards-test` | Runs projection evidence, name-scope and dependency guards under eval and on the ship |
73−| `tools/type-module-scope-test` | Checks the partial module checker’s prelude boundary and duplicate-source rejection against `tests/type-module-scope/expected.txt` under eval |
74−| `tools/clay-fixtures` | Syncs `my-app`, builds its example `/sur` files and marks through Clay, checks selected mold and mark projections and the partial checker, and records Ford and mark subject shapes on the fake ship |
64+| `tools/clay-fixtures` | Syncs `my-app` and checks that its example `/sur` files and marks build through Clay on the fake ship |
7565| `tools/hoon` | Evaluates Hoon with the library in scope, as `tools/hoon '(golden /a/b/jibb (crip "++ main view"))'`; `--cord name=file` binds a file's text, `-f` reads the expression from a file |
7666| `tools/doc-blocks` | Checks the doc's `jibb` blocks against the `doc-*` golden cases: `tools/doc-blocks docs/spec` |
7767| `tools/ship` | Runs the fake ship: `start`, `stop`, `status`, `log`, `sync <desk>`, `test`, `gen-tests`, `check-commit`, `scry`, `hoon`, `run`, `poke`, `commit`, `mount`, `unmount` |
7868| `tools/testdata/selftest` | Tests `tools/golden` and `tools/hoon` against a stub library, and `tools/doc-blocks` against Markdown it writes |
7969| `tools/testdata/ship-selftest` | Tests `tools/ship`'s test generator and runner against a stub library on the ship |
80−| `tools/testdata/clay-fixtures-selftest` | Tests temporary Clay fixture cleanup and signal handling without a ship |
8170
8271`tools/golden` starts `urbit eval` once and builds the library, which takes about 8 s, then runs every case under `mule`, so a crash fails only its own case.
8372
@@ -87,29 +76,17 @@ git clone https://github.com/urbit/tools /root/src/tools
8776tools/golden # all cases pass
8877tools/importer-test # Hoon importer fixture projections match
8978tools/type-import-test # importer/checker bridge golden report matches
90−tools/type-tlon-test # real Tlon importer/checker report matches
91−tools/type-import-diagnostic-test # direct structured reader diagnostics match
92−tools/type-mark-test # mark/checker bridge golden report matches
93−tools/type-poke-test # source-backed poke/API bridge report matches
94−tools/type-api-paths-test # partial API path analysis report matches
95−tools/type-hole-guards-test # hole defaulting and API guards pass
96−tools/type-list-alias-test # prelude list-alias guards pass
97−tools/type-qath-guards-test # qath source and unfolding guards pass
98−tools/type-proj-guards-test # projection evidence and scope guards pass
99−tools/type-module-scope-test # module/prelude scope golden report matches
10079tools/hoon check-spans-test # prints <<>>
101−tools/hoon itype-unify-test # type-unification controls pass
102−tools/testdata/selftest # 22 checks, 0 failed
80+tools/testdata/selftest # 19 checks, 0 failed
10381tools/doc-blocks docs/spec # every jibb block has its case
10482tools/ship gen-tests --check # tests/lib/jibb.hoon is up to date
10583tools/ship test # the cases pass as -test arms on the ship
10684tools/testdata/ship-selftest # when tools/ship changed
107−tools/testdata/clay-fixtures-selftest # scratch fixture cleanup without a ship
10885tools/ship check-commit # when the mark or the desks changed
109−tools/clay-fixtures # builds example fixtures and real Tlon notes through Clay
86+tools/clay-fixtures # when the my-app Hoon fixtures changed
11087```
11188
112−`tools/ship test` regenerates `tests/lib/jibb.hoon` and syncs the `jibb-dev` desk before it runs, so commit the regenerated file. Sync preflights and splits large deletion lists into bounded click requests, waiting for each Clay revision; a failure stops later batches. The ship self-test exercises this when switching from the full desk to a smaller fixture desk. A run with `--stub`, `--lib`, or a custom `--golden` isolates its generated golden tests from the repository's other test programs; run the default command afterward to restore and test those programs. It also runs the independent `tests/lib/jibb-import.hoon` test against the same importer fixtures and expected diagnostic projection as `tools/importer-test`. The projection is an internal tree, not the Jibb type printer. `tests/lib/jibb-bridge.hoon` also runs the importer/checker bridge fixture on the ship; `tools/type-import-test` runs the same report under eval. `tests/lib/jibb-tlon-bridge.hoon` and `tools/type-tlon-test` run the real Tlon presence reader/checker fixture on both. The structured reader diagnostics have their own `tests/lib/jibb-import-diagnostic.hoon` ship test and `tools/type-import-diagnostic-test` eval test. The mark bridge has its own `tests/lib/jibb-mark-bridge.hoon` ship test and `tools/type-mark-test` eval test; both compare the same fixture report. `tests/lib/jibb-poke-bridge.hoon` and `tools/type-poke-test` share the source-backed prelude and poke-only API fixture. `tests/lib/jibb-api-paths.hoon` and `tools/type-api-paths-test` share partial path analysis over the real todo marks; this does not generate request interfaces. `tests/lib/jibb-module-scope.hoon` and `tools/type-module-scope-test` compare the prelude scope report on the ship and under eval.
89+`tools/ship test` regenerates `tests/lib/jibb.hoon` and syncs the `jibb-dev` desk before it runs, so commit the regenerated file. A run with `--stub`, `--lib`, or a custom `--golden` isolates its generated golden tests from the repository's other test programs; run the default command afterward to restore and test those programs. It also runs the independent `tests/lib/jibb-import.hoon` test against the same importer fixtures and expected diagnostic projection as `tools/importer-test`. The projection is an internal tree, not the Jibb type printer. `tests/lib/jibb-bridge.hoon` also runs the importer/checker bridge fixture on the ship; `tools/type-import-test` runs the same report under eval.
11390
11491## Golden cases
11592
@@ -120,12 +97,6 @@ A case is a folder `tests/golden/<name>/` holding:
12097- the expected outputs, `tokens.txt` and `tree.txt`, each the output plus one newline.
12198- optionally, `path.txt`, the logical `/ui/.../*.jibb` path to pass to the compiler; the source remains `source.jibb`.
12299- optionally, an `expect-types:` line in `about.txt` opts the case into `+golden-types`; `types.txt` holds its output plus one newline and `--update` creates it. A `types.txt` also opts in when the line is absent. This interface is provisional while the checker is under construction.
123−- optionally, `imports.txt` selects Hoon `/sur` molds, one `module mold` pair per line. Each module's source goes in `sur/<module>.txt` and is compiled against zuse by both runners. `marks.txt` selects marks, one name per line, with source in `mar/<name>.txt`; both kinds may be supplied together. The reader results go to the partial checker, and a type output is required. Both runners reconstruct fixture text from `%txt` lines and identify the fixture if its compilation crashes; a crash fails the case without discarding its successful parse output. These fixtures currently handle only sources without Ford imports.
124−- optionally, `modules.txt` lists logical `/ui/.../*.jibb` paths, one per line. The corresponding sources live below the case's `modules/ui/` directory. Both runners parse each source at its logical path and compare the combined `module-trees.txt`; `--update` writes that output. A case with type output also supplies these sources and the vendored prelude to the partial module checker. The file opts in even when it lists no sources; use a comment such as `# no module fixtures` for an empty bundle, since zero-byte `%txt` fixtures do not sync reliably on the ship. Blank lines and comment lines are ignored. Cases without `modules.txt` keep their existing no-prelude type interface.
125−
126−The runners prepare the trusted vendored public and internal prelude sources once for their generated test core and share the partial interface. Preparation reserves all names present in the public source and supplies the molds and values the fragment can infer; an unsupported declaration remains reserved but unavailable. The source and checker are incomplete, so the output still says the module has not been checked and does not claim complete shadowing coverage. `+golden-types-with-prelude-and-internal` accepts both sources directly; callers using `+golden-types-with-prepared-prelude` pass the unchanged result of `+prepare-prelude-with-internal`. The older source-only entry points remain available for preludes without imports. Missing or malformed sources fail closed.
127−
128−A zero-byte mark fixture currently fails ship synchronization validation after commit. Use a newline-only fixture to test an empty Hoon source on the ship.
129100
130101Names say what a case is for:
131102
docs/open-questions.md+5−30
@@ -18,12 +18,12 @@ On 2026-10-30, @iko adopted gate-free `eq` arguments and map and set keys, treat
1818
1919## Questions milestone 2 raises
2020
21−Found while writing [prompts/milestone-2.md](prompts/milestone-2.md), checking it against the doc's examples, and building the checker. The numbering is retained so existing references stay valid. Questions 3, 18 and 33 remain open; the field-order detail in question 32 is being clarified. The other questions are settled.
21+Found while writing [prompts/milestone-2.md](prompts/milestone-2.md) and checking it against the doc's examples. The numbering is retained so existing references stay valid. The prelude inventory in question 3 and the `like` representation in question 18 remain open; the other questions are settled.
2222
23231. **Settled: how the prelude identifies jetted functions.** On 2026-10-30, @iko said the prelude functions have working Jibb implementations, and the compiler recognizes their shapes and uses the Hoon versions so jets can fire.
24242. **Settled: how the prelude keeps helpers private.** On 2026-10-30, @iko chose a separate internal prelude module imported by the prelude, without exposing the imported helpers.
25−3. **The prelude's inventory.** On 2026-10-30, @iko chose to include all names from the listed Hoon library sections, excluding groups the spec explicitly leaves out. All of 3g is included; its Hoon `tone` is exposed as `tone.hoon`, distinct from the styling type. Hoon 1c `step` is exposed as `step.hoon`, leaving the Grammar example's `step` name available. On 2026-10-30, @iko also approved `%$` as a term literal and pattern, so Jibb can write the `%$` case of Hoon `coin`. For parsing sections 4j and 4l, only the explicitly listed `slav` and `slaw` are included; other parser helpers are left out. Jibb's `not` negates a loobean, and Hoon's bitwise `not` is exposed as `not.bit`. @iko also agreed to specifying the complete exported inventory in the doc, building its types and gates needed by the examples in milestone 2, and doing native implementations in milestone 3. Prelude unions such as spaces, roles and tones need names that other modules cannot shadow. The actual inventory and signatures still need to be specified.
26−4. **Settled: a capital in a local `++`.** On 2026-10-30, @iko said it shares the enclosing `++`'s variable of that name if the enclosing `++` also uses it; otherwise the local `++` introduces and generalizes its own variable. For example, `++ inner |= y=A y` shares `A` with an enclosing gate whose sample is `x=A`, but generalizes its own `A` if the enclosing `++` does not use `A`. A different type uses a different capital. The Grammar and Decisions record this alongside the earlier aura rules.
25+3. **The prelude's inventory.** On 2026-10-30, @iko chose to include all names from the listed Hoon library sections, excluding groups the spec explicitly leaves out. All of 3g is included; its Hoon `tone` is exposed as `tone.hoon`, distinct from the styling type. On 2026-10-30, @iko also approved `%$` as a term literal and pattern, so Jibb can write the `%$` case of Hoon `coin`. For parsing sections 4j and 4l, only the explicitly listed `slav` and `slaw` are included; other parser helpers are left out. Jibb's `not` negates a loobean, and Hoon's bitwise `not` is exposed as `not.bit`. @iko also agreed to specifying the complete exported inventory in the doc, building its types and gates needed by the examples in milestone 2, and doing native implementations in milestone 3. Prelude unions such as spaces, roles and tones need names that other modules cannot shadow. The actual inventory and signatures still need to be specified.
26+4. **Settled: a capital in a local `++`.** On 2026-10-30, @iko said it shares the enclosing `++`'s variable of that name; a different type uses a different capital. The Grammar and Decisions record this alongside the earlier aura rules.
27275. **Settled: cells of no items or one.** On 2026-10-30, @iko said a single-item cell is the value and `[]` is an error. The theme's `dark=[tones=[…]]`, a record of one field, must still check.
28286. **Settled: a change with no items.** On 2026-10-30, @iko said `m()` is an error. The parser still accepts it; the checker needs to reject it and add a golden case.
29297. **Settled: the doc's blocks that aren't whole modules.** On 2026-10-30, @iko agreed to check each in its intended context: the `cmd` and `sub` definitions as prelude source, the Core language tab's `update` inside the todo island, and the Grammar's imports example against fixture files.
@@ -32,37 +32,12 @@ Found while writing [prompts/milestone-2.md](prompts/milestone-2.md), checking i
323210. **Settled: navigation commands.** On 2026-10-30, @iko chose separate declarations for application paths and unchecked cords, with `link-unsafe`, `image-unsafe` and `go-unsafe` for the unchecked forms. `image-unsafe` takes a sized URL record. Both navigation declarations produce `[%go url=@t]`; `go` converts the application path to a cord including the app's base path.
333311. **Settled: stores and derived gates.** On 2026-10-30, @iko said a store's `+$ poke` is a declaration, like an API file's, not a mold; a derived name clashes with an import face; and an island watching a request whose case has a separate `scry=` path has a type error. The todo API's request is renamed `todo-by-id` so it does not clash with `/- todo`. The checker must account for the fact that a store's kind is determined by the type of `main`.
343412. **Settled: how to print a union without a name.** On 2026-10-30, @iko said to print its cases separated by spaces, as `%approve %deny`. This is print-only, not Jibb syntax.
35−13. **Settled: how to print type constraints.** On 2026-10-30, @iko chose `$-([A A] A) where A is an atom` for an atom constraint and `$-([A A] ?) where A contains no gates` for a gate-free constraint. Multiple clauses are comma-separated, as `where A is an atom, B contains no gates`.
35+13. **Settled: how to print a gate-free constraint.** On 2026-10-30, @iko agreed to print the type followed by `where A contains no gates`, as `$-([A A] ?) where A contains no gates`.
363614. **Settled: how the prelude implements foundational operations.** On 2026-10-30, @iko chose private low-level primitives in the internal prelude module, with the public foundational gates implemented in Jibb on top of them.
373715. **Settled: unrestricted atoms and shared auras.** On 2026-10-30, @iko said `@` means any atom, independently at each occurrence, so Hoon `dime` and `pint` keep their bare-`@` fields. A specific atom such as `@ud` fits where `@` is expected; an `@` value needs a check to fit `@ud`. Shared atom types use one capital, with the atom constraint inferred from its body, as for `add` taking `[A A]` and returning `A`.
383816. **Settled: loobeans in union disjointness.** On 2026-10-30, @iko said `?` counts as its two atoms, `%.y` and `%.n`: it is disjoint from any cell and overlaps the constants 0 and 1.
393917. **Settled: empty cases in union disjointness.** On 2026-10-30, @iko said `!!` is disjoint from every case. A cell containing an empty position at any depth is itself empty and is also disjoint from every case.
40−18. **The two uses of Hoon `like`.** Hoon `+like` is a wet mold builder, but the gate it returns is callable and applies its supplied gate to the product. In a verified Hoon 135 example, applying `(like f)` to `[[1 2] [7 8 ~]]` produces an edge whose product is `8` when `f` is identity and `42` when `f` returns `42`; the resulting nail is the original input. Jibb molds are types, not callable values. The prelude now declares a generic `(like A)` mold and a `wonk` extractor; both parse, but their full type and backend validation remain outstanding. Should it also expose a value gate under `like`? If so, should the value preserve Hoon's input shape and behavior, or instead map the product of an already constructed edge? @iko is reviewing these alternatives; the exact public signature is not yet decided.
41−19. **Settled: Hoon aura families and `step.hoon`.** On 2026-10-30, @iko chose `step.hoon` for Hoon 1c `step`, avoiding a clash with the Grammar example's `step`, and chose one-way widening across Hoon aura families: for example, `@ud` and `@ux` fit `@u`, and `@tD` fits `@t`. The reverse needs a check. The `step.hoon` group representation is not implemented yet.
42−20. **Settled: the type of `clap`.** On 2026-10-30, @iko chose one shared value type for both units and the combining gate. If either unit is absent, `clap` returns the other; if both are present, it applies the gate to their values and wraps the result.
43−21. **Settled: duplicate faces in imported Hoon records.** On 2026-10-30, @iko chose to reject an imported Hoon record with duplicate field names where its type is used. Hoon permits `[a=@ud a=@t]` and picks the first `a`; Jibb rejects it.
44−22. **Settled: overlapping imported `$%` and `$?` cases.** On 2026-10-30, @iko confirmed that the general union disjointness rule rejects imported `$%` and `$?` cases that overlap as nouns where the type is used, as it does for `$^`. The importer rejects recognizable overlaps and fails closed when it cannot verify them.
45−23. **Settled: converging explicit capitals.** On 2026-10-30, @iko chose that a body cannot force two separately written capitals to be equal. For `++ repeated |= x=(choice A A) x`, `++ f |= x=(choice A B) (repeated x)` is an error; use `A` in both positions when the type must be shared. This also applies across local captures and within generic mold applications.
46−
47−24. **Settled: how the internal prelude provides `poke`.** On 2026-10-31, @iko chose to define `poke` in the source-backed private internal prelude module and re-export it through the public prelude as an ordinary transparent type. Ordinary modules can construct and inspect its values. This settles `poke`; it does not decide the representation of `ask` or `qath`.
48−
49−25. **Settled: how the prelude provides `ask` and `qath`.** On 2026-10-31, @iko chose ordinary transparent types defined in the internal prelude and re-exported normally, as for `poke`. Callers may construct and inspect their values.
50−
51−26. **Settled: the `step` example's `at` binder.** On 2026-10-31, @iko chose to rename the `describe` pattern binder to `sent-at`, keeping Hoon's `at` in the prelude and the no-shadowing rule.
52−
53−27. **Settled: duplicate fields in a Jibb-written record.** On 2026-10-31, @iko chose to reject duplicate field names, as for imported Hoon records.
54−
55−28. **Settled: arithmetic on loobeans.** On 2026-10-31, @iko chose to reject loobean operands for arithmetic. Comparison may still accept loobeans and returns `?`. The checker needs to retain this constraint through inference, generalization and instantiation before it exports `add` or `dec`.
56−
57−29. **Settled: printing the arithmetic atom constraint.** On 2026-10-31, @iko chose `where A is an atom other than ?` for a generic arithmetic type whose atom variable excludes loobeans.
58−
59−30. **Settled: a hole inferred as a generic variable.** On 2026-10-31, @iko said a hole resolved to an explicitly written type variable counts as inferred: in `++ id |= x=A ^- _ x`, the result hole is `A`. Named molds must determine their own holes without constraints from later uses; an unconstrained hole is an error.
60−
61−31. **Settled: uses of a value with a hole.** On 2026-10-31, @iko said a value definition must determine its own holes; another definition's use cannot fix an otherwise unresolved hole. For example, `++ id |= x=_ x` remains an error even if a later definition calls `id` with a cord.
62−
63−32. **Partly settled: type-directed record projection.** On 2026-10-31, @iko chose an explicit `(proj record)` whose expected result type selects the fields. There is no automatic projection, and `proj` is reserved against definitions and imports. The result contains exactly the fields of its expected type. Whether the result may reorder fields from the source remains open.
64−
65−33. **Watching a request with unknown provenance.** An island cannot watch an API case that needs a separate scry path, but `ask` is transparent and a request can be constructed, selected or passed through a gate. If the checker cannot prove whether a request is watchable, must it reject the watch, or can a runtime check decide? Asked @iko on 2026-10-31; proposed: require proof at compile time, so the stated island restriction holds before execution.
40+18. **The two uses of Hoon `like`.** Hoon `+like` is a wet mold builder, but the gate it returns is callable and applies its supplied gate to the product. In a verified Hoon 135 example, applying `(like f)` to `[[1 2] [7 8 ~]]` produces an edge whose product is `8` when `f` is identity and `42` when `f` returns `42`; the resulting nail is the original input. Jibb molds are types, not callable values. Should the prelude expose `(like A)` as a generic mold and also expose a value gate under `like`? If so, should the value preserve Hoon's input shape and behavior, or instead map the product of an already constructed edge? @iko is reviewing these alternatives; the exact public signature is not yet decided.
6641
6742## Grammar questions never put to the doc's author
6843
docs/prelude-inventory.md+4−35
@@ -4,53 +4,24 @@ This is a working inventory, not a completed prelude interface. It lists top-lev
44
55The source is the fake ship's `%base` `/sys/hoon.hoon` (Hoon version 135), read through Clay with `tools/ship scry /cx/=base=/sys/hoon/hoon --raw`. SHA-256: `ef538ced0877230f02ff86f9fb7a0abc6833bb1cf0e8675742b4d6ce478fcc92`. It differs in bytes from [upstream Hoon at the inspected commit](https://github.com/urbit/urbit/blob/5a187fededc4582a34fcd6055c67bb63e0917b94/pkg/arvo/sys/hoon.hoon); verify against the actual target ship when updating this inventory.
66
7−The vendored prelude defines `poke` in its private internal module and re-exports it as a transparent type. The partial checker resolves its supported source shape and a narrow imported API constructor; complete checking of the private body, other API shapes, effect lowering and runtime execution remain unfinished. `qath` is defined there as a transparent recursive knot sequence and re-exported by the public prelude; the partial checker supports its named identity, selected construction and matching, and static application-path literals. `ask` is not yet defined there.
8−
9−The prelude also declares the generic `cmd` mold exactly as in Overview, Effects. The partial checker infers its five cases and independent message types in the supported examples; complete module checking and backend validation remain outstanding. The related `sub` declaration awaits the source representation and checking of `ask`.
10−
117Hoon `+$` arms are marked **mold** below; `++` arms can be gates, doors or mold generators, and need individual inspection. Jibb's loobean `not` and Hoon's bitwise `not.bit` are distinct. Parser helpers outside 3g are excluded from the intended prelude except the specifically listed `slav` and `slaw`; the raw candidates below still need to be classified.
128
139## 1a
1410
1511`add`, `dec`, `div`, `dvr`, `gte`, `gth`, `lte`, `lth`, `max`, `min`, `mod`, `mul`, `sub`.
1612
17−The source-backed `gth` gate calls a compiler-supplied private comparison interface. The partial checker accepts supported equal-aura atom arguments, including loobeans, and returns `?`; lowering, jet recognition and execution remain unfinished. `add` and `dec` are not yet exposed: treating every atom-constrained type as closed under arithmetic would incorrectly infer loobean results for operations that can produce other atoms.
18−
1913## 1c
2014
2115`bite` (mold), `bloq` (mold), `each`, `gate` (mold), `list`, `lone`, `lest`, `mold` (mold), `pair`, `pole`, `qual`, `quip`, `step`, `trap`, `tree`, `trel`, `unit`.
2216
23−@iko chose to expose Hoon `step` as `step.hoon`, so it does not clash with the Grammar's `step` example. Hoon's `step` uses `@u`. @iko chose one-way widening across Hoon aura families, such as `@ud` and `@ux` into `@u` and `@tD` into `@t`; the reverse needs a check (see [question 19](open-questions.md)). The prelude group needed to expose `step.hoon` is not implemented. Hoon's `bite` is a union of `bloq` and `[bloq=bloq step=step]`; its declaration awaits that group.
24−
2517## 2a
2618
2719`biff`, `bind`, `bond`, `both`, `clap`, `clef`, `drop`, `fall`, `flit`, `hunt`, `lift`, `mate`, `need`, `some`.
2820
29−The following is an audit of the Hoon 135 bodies, not a completed Jibb interface. The partial checker infers `fall`, `need`, `some`, `bind`, `biff`, `bond`, `both`, `clap`, `clef`, `drop` and `flit`; the remaining written implementations have been parsed, but complete checker validation remains outstanding. Backend validation remains outstanding for all of them.
30−
31−| Name | Hoon behavior | Jibb status |
32−| --- | --- | --- |
33−| `biff` | Applies a gate returning a unit to a present value; absent stays absent. | Written |
34−| `bind` | Applies a gate to a present value and wraps the result; absent stays absent. | Written |
35−| `bond` | Calls a fallback trap for an absent unit, otherwise returns its value. | Written and inferred as a curried gate; backend validation remains outstanding |
36−| `both` | Returns a unit of both values when both units are present. | Written |
37−| `clap` | Returns the present unit if only one is present; combines both values with a gate if both are present. | Written with one shared type for both units and the combining gate, as @iko chose |
38−| `clef` | Applies a gate returning a unit when both inputs are present; otherwise returns an absent unit. | Written |
39−| `drop` | Converts an absent unit to an empty list and a present unit to a singleton. | Written; inferred by the partial checker |
40−| `fall` | Returns the value of a present unit or the supplied fallback. | Written; inferred by the partial checker |
41−| `flit` | Returns a gate that wraps a value only if it satisfies the predicate. | Written |
42−| `hunt` | Returns the only present unit or chooses between two present values with an ordering gate. | Missing |
43−| `lift` | Takes a mold and a unit, then applies the mold to a present value as `bind` does. | Missing; Jibb molds are not callable values |
44−| `mate` | Returns the present unit if only one is present; when both are present it returns one if their values are equal and crashes otherwise. | Missing |
45−| `need` | Extracts a present value and crashes on an absent unit. | Written; inferred by the partial checker |
46−| `some` | Wraps a value in a present unit. | Written |
47−
4821## 2b
4922
5023`snoc`, `lure`, `fand`, `find`, `flop`, `gulf`, `homo`, `join`, `bake`, `lent`, `levy`, `lien`, `limo`, `murn`, `oust`, `reap`, `rear`, `reel`, `roll`, `scag`, `skid`, `skim`, `skip`, `slag`, `snag`, `snip`, `sort`, `spin`, `spun`, `swag`, `turn`, `weld`, `snap`, `into`, `welp`, `zing`.
5124
52−The current prelude writes `snoc`, `lure`, `flop`, `join`, `levy`, `lien`, `murn`, `rear`, `reel`, `roll`, `skim`, `skip`, `snip`, `turn` and `weld`. `murn` keeps the present products of its gate in order; `join` inserts a separator between items; `snip` drops the last item, and `rear` returns it or crashes on an empty list. The folds take an explicit initial value as the Prelude table specifies. The partial checker infers `snoc`, `lure`, `weld`, `turn`, `flop`, `rear`, `skim`, `skip`, `murn`, `join`, `snip`, `levy` and `lien` using the validated prelude `list` mold; other list helpers remain limited by that fragment. The result casts on `drop`, `skim`, `skip`, `murn`, `join`, `snip`, `levy` and `lien` state their existing result types without changing their bodies. Backend validation remains outstanding for all of them.
53−
5425## 2c
5526
5627`bex`, `can`, `cat`, `cut`, `end`, `fil`, `hew`, `lsh`, `met`, `rap`, `rep`, `rev`, `rig`, `rip`, `rsh`, `run`, `rut`, `sew`, `swp`, `xeb`, `fe`.
@@ -99,8 +70,6 @@ The current prelude writes `snoc`, `lure`, `flop`, `join`, `levy`, `lien`, `murn
9970
10071`aftr`, `cork`, `corl`, `cury`, `curr`, `fore`, `head`, `same`, `succ`, `tail`, `test`, `lead`, `late`.
10172
102−The source-backed `cork` and `corl` compose gates forward and backward, respectively; `cury` and `curr` bind the first and second item of an unfaced pair. The partial checker infers their polymorphic types. Their runtime implementations remain to be validated by a backend.
103−
10473## 2o
10574
10675`jar`, `jug`, `map`, `qeu`, `set`.
@@ -119,18 +88,18 @@ Hoon 135's `3g` section has exactly 12 exports: ten `+$` molds (`coin`, `dime`,
11988
12089| Hoon name | Source shape and Jibb audit |
12190| --- | --- |
122−| `coin` | A union of `[%$ p=dime]`, `[%blob p=*]`, and `[%many p=(list coin)]`. Its `$~` default is dropped: Jibb molds have no default. @iko approved `%$` as a Jibb term literal and pattern on 2026-10-30; the parser implements it and its golden cases pass under eval and on the ship. Its `%$` case uses the `dime` mold below. |
91+| `coin` | A union of `[%$ p=dime]`, `[%blob p=*]`, and `[%many p=(list coin)]`. Its `$~` default is dropped: Jibb molds have no default. @iko approved `%$` as a Jibb term literal and pattern on 2026-10-30; the parser implements it and ship verification is pending. Its `%$` case uses the `dime` mold below. |
12392| `dime` | `[p=@ta q=@]` in Hoon. The `q` field accepts any atom, as does Jibb `@` after @iko's decision in question 15. |
12493| `edge` | `[p=hair q=(unit [p=* q=nail])]`: a parsing position and either no result or a result and remaining input. |
12594| `hair` | `[p=@ud q=@ud]`: a parsing position. |
126−| `like` | A wet mold builder parameterized by a gate `a=$-(* *)`; its generated gate takes a noun, builds an `edge`-shaped result, and applies `a` to the product on success. The prelude declares the generic mold `+$ like |$ [A] [p=hair q=(unit [p=A q=nail])]`. A callable Jibb value form remains open in question 18. |
95+| `like` | A wet mold builder parameterized by a gate `a=$-(* *)`; its generated gate takes a noun, builds an `edge`-shaped result, and applies `a` to the product on success. Its Hoon wet specialization can retain a product type. Its exact Jibb interface and implementation still need to be worked out; do not substitute an unverified fixed signature. |
12796| `nail` | `[p=hair q=tape]`: parsing input. |
12897| `pint` | `[p=[p=@ q=@] q=[p=@ q=@]]` in Hoon. The four positions accept atoms independently; Jibb `@` now has the same meaning. |
12998| `rule` | A gate mold `$-(nail edge)`; Hoon constructs its sample and product from the `nail` and `edge` molds. |
13099| `spot` | `[p=path q=pint]`: a file path and range. |
131100| `tone` | Three cases: `[%0 product=*]`, `[%1 block=*]`, and `[%2 trace=(list [@ta *])]`. Expose this Hoon mold as `tone.hoon`, distinct from Jibb's styling `tone`. How the prelude presents that qualified mold must agree with its eventual group implementation. |
132101| `toon` | Three cases: `[%0 p=*]`, `[%1 p=*]`, and `[%2 p=(list tank)]`. |
133−| `wonk` | A wet gate that extracts `p` from the successful `q` of an `edge` and crashes on an absent result. The prelude's Jibb gate takes `(like A)` and returns its product `A`; it has been parsed but not yet type-checked or run through a backend. |
102+| `wonk` | A wet gate that extracts `p` from the successful `q` of an `edge` and crashes on an absent result. `$-(edge *)` describes its type-erased input and result, but an exact account of the Hoon gate's wet specialization remains open. |
134103
135104The following shapes can be written as Jibb declarations once their referenced prelude molds are present:
136105
@@ -152,7 +121,7 @@ The following shapes can be written as Jibb declarations once their referenced p
152121 [%2 p=(list tank)]
153122```
154123
155−The compiler-result `tone.hoon` has the three cases listed above; the qualified name is a prelude group member, not a `+$` identifier containing a dot. Question 15 in [open-questions.md](open-questions.md) records @iko's decision that `@` is an unrestricted atom, resolving the `dime` and `pint` mismatch. The callable value form of `like` remains unresolved. The new `like` mold and `wonk` gate parse, but full type and backend validation remain outstanding.
124+The compiler-result `tone.hoon` has the three cases listed above; the qualified name is a prelude group member, not a `+$` identifier containing a dot. Question 15 in [open-questions.md](open-questions.md) records @iko's decision that `@` is an unrestricted atom, resolving the `dime` and `pint` mismatch. The interfaces of the wet gates still need resolution before the inventory's 3g signatures can be considered complete.
156125
157126## 4a
158127
docs/prompts/milestone-2.md+9−11
@@ -49,7 +49,7 @@ And from the plan's Risks:
4949
5050## First steps
5151
52−1. **Specify the prelude inventory.** The checker needs the prelude's complete exported inventory and signatures; include all names from the listed Hoon library sections except explicitly excluded groups, as `docs/open-questions.md` question 3 records. The prelude imports private helpers and low-level primitives from a separate internal module without exposing them; its public foundational gates are implemented in Jibb on those primitives. The source-backed internal module defines `poke`; the public prelude re-exports it as an ordinary transparent type that modules can construct and inspect, as question 24 records. This decision does not specify the representation of `ask` or `qath`.
52+1. **Specify the prelude inventory.** The checker needs the prelude's complete exported inventory and signatures; include all names from the listed Hoon library sections except explicitly excluded groups, as `docs/open-questions.md` question 3 records. The prelude imports private helpers and low-level primitives from a separate internal module without exposing them; its public foundational gates are implemented in Jibb on those primitives.
5353
5454 The plan's three core-language rules were adopted: gate-free `eq` arguments and map and set keys, with gates opaque for union matching; jetted prelude functions taking gates; and rejection of a non-gate value that depends on itself even through a gate.
55552. **Start the importer early**, as the plan's Risks ask: first on a small `/sur` file, then on Tlon's. "Suggested design" below has a way in.
@@ -59,18 +59,16 @@ And from the plan's Risks:
5959The rules are scattered across the tabs. This is a map of them, not a replacement: read each in place, and where this summary and the doc differ, the doc is right.
6060
6161**Types and inference** (Grammar: Molds, Modules, Runes, Expressions; Decisions: Inference, Type variables, Sample names, Inline gates)
62−- Hindley–Milner with aura variables: "every expression has a principal type, and there is no general subtyping". A specific atom fits `@`, a specific noun fits `*`, and a more specific aura fits an ancestor in its Hoon aura family, each only in that direction; the reverse needs a check. Explicit `proj` is a type-directed operation.
63−- `@` means any atom, independently at each occurrence. A specific atom such as `@ud` fits where `@` is expected; an `@` value needs a check to fit `@ud`. `@ud` and `@ux` also fit `@u`, and `@tD` fits `@t`, following Hoon aura families; the reverse needs a check. Distinct specific auras remain distinct. `add` takes `[A A]` and returns `A`, with an atom constraint inferred for the shared type variable.
64−- The reserved, explicit `(proj record)` selects fields according to its expected result type. The checker records the projection and lowering evaluates the source once and builds that layout. A direct call does not insert a projection, and a module cannot define or import another `proj`.
62+- Hindley–Milner with aura variables: "every expression has a principal type, and there is no general subtyping". A specific atom fits `@`, and a specific noun fits `*`, each only in that direction.
63+- `@` means any atom, independently at each occurrence. A specific atom such as `@ud` fits where `@` is expected; an `@` value needs a check to fit `@ud`. Different specific auras never unify. `add` takes `[A A]` and returns `A`, with an atom constraint inferred for the shared type variable.
6564- Faces are part of record types: `[a=@ b=@]` and `[x=@ y=@]` don't unify. An unnamed position can unify with a faced one and take its face, so `[0 0]` fits `[x=@ud y=@ud]`. A single-item cell `[a]` is `a`; an empty `[]` is an error.
66−- Type variables are capitals, "generalized per `++`". A capital in a local `++` shares the enclosing `++`'s variable of that name if the enclosing `++` also uses it; otherwise the local `++` introduces and generalizes its own variable. For example, `++ inner |= y=A y` shares `A` with an enclosing gate whose sample is `x=A`, but generalizes its own `A` if the enclosing `++` does not use `A`. A different type takes a different capital. A body cannot force two distinct capitals to be equal; use the same capital where a type is shared. "A type variable used where an atom is required gains an atom constraint", so `++ clamp |= [lo=A hi=A n=A]`, calling `gth` and `max`, works on any one aura; "It can become nothing more specific: a body that makes `A` a `@ud` or a list is an error." Names "may refer to each other in any order", so infer `++` definitions in dependency order, a group of mutually recursive ones together.
67−- The checker infers a gate-free constraint for `eq` arguments and map and set keys and retains it when a type variable is generalized. The requirement applies recursively to nested values; union-case matching treats gates as opaque. Print a gate-free constraint as `$-([A A] ?) where A contains no gates` and an atom constraint as `$-([A A] A) where A is an atom`; separate multiple clauses with commas, as `where A is an atom, B contains no gates`.
65+- Type variables are capitals, "generalized per `++`". A capital in a local `++` shares the enclosing `++`'s variable of that name; a different type takes a different capital. "A type variable used where an atom is required gains an atom constraint", so `++ clamp |= [lo=A hi=A n=A]`, calling `gth` and `max`, works on any one aura; "It can become nothing more specific: a body that makes `A` a `@ud` or a list is an error." Names "may refer to each other in any order", so infer `++` definitions in dependency order, a group of mutually recursive ones together.
66+- The checker infers a gate-free constraint for `eq` arguments and map and set keys and retains it when a type variable is generalized. The requirement applies recursively to nested values; union-case matching treats gates as opaque. Print a constrained type as `$-([A A] ?) where A contains no gates`.
6867- Gates may call themselves and their siblings; a non-gate value that depends on itself, even through a gate, is an error. Molds may be recursive, and "recursive molds go by name and module".
6968- A sample's mold may be left out: every bare name in a sample binds, at any depth, as in `|=(p title.p)` "when the call fixes the type", `|= [a=@ b]` and `|=(m ~)`.
7069- Generic molds: `+$ result |$ [V E]` with cases below, applied as `(result V E)`; `|$` goes right after a `+$`'s name, and the prelude's `cmd` and `sub` use `|$ [M]`.
7170- `!!` is the empty mold, and as an expression it has any type. `*` is the noun type, not a type variable; generic positions such as the keys in `each` and `table` use a capital. A value of a more specific noun type can be used where `*` is expected.
72−- `_` is an inferable hole wherever a mold can appear, including an inferred path-segment aura. A hole resolved to an explicitly named generic variable is resolved; an unconstrained hole is an error. A named mold or value definition must determine its own holes without constraints from later uses.
73−- `poke`, `ask` and `qath` are transparent types defined in the internal prelude and re-exported normally. Derived gates and `pure` also construct requests; application-path literals have type `qath`.
71+- `poke`, `ask` and `qath` are opaque, built only by derived gates, `pure` and application-path literals.
7472- The Literals table gives every other literal its type: `0x1f` a `@ux`, ships `@p`, dates `@da`, durations `@dr`, `~.knot` a `@ta`, strings `@t`, `` `x `` a `(unit A)`, `~[…]` a `(list A)`, `gap+%s2` the pair `[%gap %s2]`, `/posts/~zod` a `path`, `%/blog` a `qath`.
7573
7674**Tags, `~`, numbers and cells wait for their context** (Grammar: Tag resolution, Literals by context)
@@ -100,7 +98,7 @@ The rules are scattered across the tabs. This is a map of them, not a replacemen
10098- `main`'s type decides a module's kind: `(element !!)` a page, `(page R D)` a page with data, `(program D X M)` an island, `(store S)` a store; no `main`, a library.
10199
102100**Importing Hoon types** (overview: Importing Hoon types; Decisions: Hoon types)
103−- The table: `$%`, `$?` and `$^` become unions only if their cases differ as nouns, else an error where used; `$@` a union with an atom case; `$~` dropped; `map`, `set`, `qeu`, `jar`, `jug` the same, by name; `mop` as `(mop K V)`, read with `on`; other `$|` their base type; `%0`, `%&` and `%|` tags; recursive molds recursive, matched by name; imported records with duplicate field names, cores, gates, vases, signed and float auras are errors where used.
101+- The table: `$%` and `$?` become a union; `$@` a union with an atom case; `$^` a union if its cases differ as nouns, else an error where used; `$~` dropped; `map`, `set`, `qeu`, `jar`, `jug` the same, by name; `mop` as `(mop K V)`, read with `on`; other `$|` their base type; `%0`, `%&` and `%|` tags; recursive molds recursive, matched by name; cores, gates, vases, signed and float auras an error where used.
104102- "Unused molds are skipped, so unsupported constructs elsewhere in a `/sur` file are fine." A field's unnamed union imports too, although Jibb cannot write one.
105103
106104**Islands, pages and stores** (overview: The Elm architecture on Urbit; Grammar: Modules and the store example)
@@ -115,13 +113,13 @@ The rules are scattered across the tabs. This is a map of them, not a replacemen
115113
116114**The prelude** (overview: Prelude, Layout and styling, Links and URLs, Effects)
117115- Hoon's standard library regrouped, "written in Jibb and vendored as `/lib/jibb/prelude`", plus `eq`, `not`, `page`, `program`, `store`, `pure`, `island`, the layout elements and molds, `attr`, `theme`, and `cmd` and `sub` as the overview's Effects block writes them.
118−- Signatures change where the Prelude table says: `clap` takes two units of one value type and a combining gate over that type; maps and sets are plain gates over Hoon's trees, as `(get.by m k)`; folds take a start, as `(roll xs init f)`, `rep.by` and `rep.in`; ordered maps go through lull's `on`, as `(get.on lte m k)`.
116+- Signatures change where the Prelude table says: maps and sets are plain gates over Hoon's trees, as `(get.by m k)`; folds take a start, as `(roll xs init f)`, `rep.by` and `rep.in`; ordered maps go through lull's `on`, as `(get.on lte m k)`.
119117- Left out: signed and float gates, parser helpers outside 3g other than the explicitly listed `slav` and `slaw`, and the table's "The rest" (1b, 2p, 3d, 3f, 4c, 4n, 4o, 5a–5f); "`jam`, `cue` and `fein` run inside the runtime".
120118- Write the prelude in Jibb, enough to give every name its type. Foundational gates use private low-level primitives from the internal prelude module. Jetted functions have working Jibb implementations; the compiler recognizes their shapes and uses the Hoon versions so jets can fire. They may take gates as arguments; the Nock backend comes in milestone 3.
121119- Element signatures are in the Layout and styling table. Paths and unchecked cords have separate declarations, with `link-unsafe`, `image-unsafe` and `go-unsafe` for the unchecked forms. Both navigation declarations produce `[%go url=@t]`; `go` converts its application path to a cord including the app's base path. "The same attribute twice in a literal list is an error."
122120
123121**Errors**
124−- Each one the Grammar tab describes needs a golden case with its message. A start on the list: an aura mismatch; mismatched faces; "msg has no case %submitt"; an unresolved tag, as the Grammar's `add-button` ("nothing fixes the union of %add"); an open constraint at the end of a module; a `|=%tag` whose union has no such case tagged at its head; a union whose cases overlap; a missing `?-` case, named; an arm that earlier arms cover; a value that refers to itself; a shadowed name, including a prelude or imported one; a cell in `{…}` with no printer; an atom of a generic aura in `{…}` or a path's `(…)`; a capital that a body makes a `@ud` or a list; `~[text "hi"]`, where the checker suggests `~[(text "hi")]`; clashing derived names; an import cycle; from an import, a signed or float aura, a core, gate or vase, or a `$%`, `$?` or `$^` whose cases don't differ as nouns, or a record with duplicate field names, each where used; a `(facts …)` outside an API file's `paths`; a gate in island data or a model, naming the field; a repeated attribute in a literal list. Read the Grammar tab, and the other tabs' mentions of "error" and "the checker", and make the list complete.
122+- Each one the Grammar tab describes needs a golden case with its message. A start on the list: an aura mismatch; mismatched faces; "msg has no case %submitt"; an unresolved tag, as the Grammar's `add-button` ("nothing fixes the union of %add"); an open constraint at the end of a module; a `|=%tag` whose union has no such case tagged at its head; a union whose cases overlap; a missing `?-` case, named; an arm that earlier arms cover; a value that refers to itself; a shadowed name, including a prelude or imported one; a cell in `{…}` with no printer; an atom of a generic aura in `{…}` or a path's `(…)`; a capital that a body makes a `@ud` or a list; `~[text "hi"]`, where the checker suggests `~[(text "hi")]`; clashing derived names; an import cycle; from an import, a signed or float aura, a core, gate or vase, or a `$^` whose cases don't differ as nouns, each where used; a `(facts …)` outside an API file's `paths`; a gate in island data or a model, naming the field; a repeated attribute in a literal list. Read the Grammar tab, and the other tabs' mentions of "error" and "the checker", and make the list complete.
125123- For a `+$` whose cases overlap or do not fit, suggest that a record or tuple leaves its `[` open on the `+$` line. `+$ pt` above `@t` and `[@ud @ud]` is a valid union.
126124- "Each error names both conflicting sites, with excerpts." Today's `error` is `[file line col msg]`, a start only; spans keep each node's end so that a type error can underline both sites.
127125- Messages name things in the doc's words and quote the code they're about in backticks, as milestone 1's do. Their wording is fixed by the golden tests once written.
docs/spec/core-language.md+1−2
@@ -71,7 +71,7 @@ axis = digit { digit } ; (* at least 1 *)
7171
7272## Lowering from Jibb
7373
74−Types, faces and casts leave nothing behind. Everything else lowers by these rules.
74+Types, faces and casts leave nothing behind; everything else lowers by these rules.
7575
7676| Jibb | Core language |
7777| --- | --- |
@@ -82,7 +82,6 @@ Types, faces and casts leave nothing behind. Everything else lowers by these rul
8282| `gap+%s2` | `(cons %gap %s2)` |
8383| `/posts/~zod`, `%/blog/(slug)` | A list of knots, typed segments printed by their aura's native; the runtime adds the base path to an application path |
8484| `title.p`, `space.theme.theme` | `slot` at the field's axis, nested for longer wings |
85−| `(proj record)` | Apply a `lam` to the source once; its body constructs the expected record from the required fields using `slot` and `cons`, discarding extra fields |
8685| `card.card`, an import | The qualified name `components/card:card` |
8786| `m(draft=t error=~)` | One `edit` per item, in order: `(edit 7 (edit 6 m t) ~)` |
8887| `f a b c` | `(app f (cons a (cons b c)))`: the arguments are the sample |
docs/spec/decisions.md+8−13
@@ -26,27 +26,23 @@ The choices behind the Language tab, made on 2026-10-23; a later date marks a re
2626| Definitions | `++` for values, `+$` for molds; no `=/` | Decided |
2727| Unions | No `$?`: a `+$` with its cases on the lines below is a union, so every union written in Jibb has a name; one case is just that mold; a mold that isn't a union counts as a union of one case for tags and `\|=%tag`; a generic's `\|$` comes right after the `+$`'s name; tags anywhere; cases differ as nouns, with `?` treated as the two atoms `%.y` and `%.n`, disjoint from cells and overlapping constants 0 and 1, and `!!` or any cell with an empty position disjoint from every case; a tag literal or `~` waits for its union, and an unresolved one is an error | Decided 2026-10-30 |
2828| Printed unnamed unions | Print the cases separated by spaces, as `%approve %deny`; this is print-only, not Jibb syntax | Decided 2026-10-30 |
29−| Printed type constraints | Print an atom constraint as `$-([A A] A) where A is an atom`, an arithmetic atom constraint as `where A is an atom other than ?`, and a gate-free constraint as `$-([A A] ?) where A contains no gates`; separate multiple clauses with commas, as `where A is an atom, B contains no gates` | Decided 2026-10-31 |
29+| Printed gate-free constraints | Print the type followed by `where A contains no gates`, as `$-([A A] ?) where A contains no gates` | Decided 2026-10-30 |
3030| Branching | `?-` only, loobeans included; exhaustive, with explicit catch-alls; covered arms are errors; failures say `!!` | Decided 2026-10-29 |
3131| Equality and negation | The gates `eq` and `not`, with Hoon's bitwise `not` exposed as `not.bit`; `eq`'s arguments and map and set keys contain no gates, even nested; the checker infers and generalizes that constraint; union matching never inspects a gate to distinguish cases | Decided 2026-10-30 |
3232| Special rules | No built-ins; type-directed rules are welcome, each listed in the Grammar tab | Decided 2026-10-29 |
33−| Inference | Hindley–Milner with aura variables; `@` is any atom, a specific atom fits `@` and a more specific aura fits an ancestor in its Hoon aura family, but each reverse needs a check, and repeated atom-constrained capitals give the same type; a number takes `@ud` only where its `++` isn't generic over its aura; distinct specific auras remain distinct; faces are part of record types, and an unnamed position can take a face but two different faces don't unify; principal types | Decided 2026-10-30 |
34−| Effects | The library unions `cmd` and `sub`; `poke`, `ask` and `qath` are transparent types defined in the internal prelude and re-exported normally; derived gates and `pure` also construct requests; islands read agents only by watching; replies get full state, and diffs take a fold; timers carry the time; `%who` gives the owner's `@p`; nacks reach replies as text | Decided 2026-10-31 |
35−| Poke representation | The source-backed private internal prelude module defines `poke`, and the public prelude re-exports it as an ordinary transparent type. Ordinary modules can construct and inspect its values | Decided 2026-10-31 |
33+| Inference | Hindley–Milner with aura variables; `@` is any atom, a specific atom fits `@` but the reverse needs a check, and repeated atom-constrained capitals give the same type; a number takes `@ud` only where its `++` isn't generic over its aura; different specific auras never unify; faces are part of record types, and an unnamed position can take a face but two different faces don't unify; principal types | Decided 2026-10-30 |
34+| Effects | The library unions `cmd` and `sub`; pokes and requests are opaque, from derived gates and `pure`; islands read agents only by watching; replies get full state, and diffs take a fold; timers carry the time; `%who` gives the owner's `@p`; nacks reach replies as text | Decided 2026-10-29 |
3635| Agent APIs | `/ui/api/<agent>.jibb` with `+$ poke` and `+$ paths`, over the agent's mark types; a case is a name, a path and a type, with `(facts full diff …)` for diffs, told apart by mark; an optional scry path, for pages; an island watching such a request has a type error; typed segments by aura | Decided 2026-10-30 |
3736| Mark names | Any name: `/%` names types after marks, and constructors poke with their type's mark; no alias marks | Decided 2026-10-26 |
3837| Derived gates | API files and stores give a constructor per poke type and a checked request per path or store state; clashing names are errors, including a derived name that clashes with an import face | Decided 2026-10-30 |
39−| Hoon types | A fixed translation table; `map`, `set`, `qeu`, `jar`, `jug` by name; `mop` as `(mop K V)`, read with `on`; imported `$%`, `$?` and `$^` cases must differ as nouns, and records with duplicate field names are errors where used; unused molds skipped | Decided 2026-10-30 |
40−| Record fields | Duplicate field names in a Jibb-written record are an error, as they are in an imported Hoon record | Decided 2026-10-31 |
41−| Record projection | The explicit type-directed operation `proj` takes a record and uses its expected result type to select its fields; no projection is inserted automatically. `proj` is reserved and cannot be defined or imported under that name. The result has exactly the fields declared by its type | Decided 2026-10-31 |
38+| Hoon types | A fixed translation table; `map`, `set`, `qeu`, `jar`, `jug` by name; `mop` as `(mop K V)`, read with `on`; unused molds skipped | Decided 2026-10-29 |
4239| Layout | Indentation; juxtaposed calls; a bracket open at line end takes one item per line, with no closer | Decided |
4340| Elements | Ordinary gates; containers take attribute lists; `stack` switches at `wide`; `el` adds attributes and wins; headings 1 to 6; `form` sends on Enter, the innermost when nested; `image` from an application path, sized from the file, or a sized URL; no focus control for now | Decided 2026-10-29 |
4441| Long calls | One argument per line inside parentheses | Decided |
4542| Inline gates | Hoon's wide form; the mold may be inferred; a bare sample name binds; `\|=%got` is a case's constructor, typed by the gate expected; a bare tag is always a value | Decided 2026-10-29 |
4643| Empty mold | `!!`, with no values; the expression has any type; pages are `(element !!)`, which keeps islands out of islands | Decided 2026-10-29 |
4744| Noun mold | `*` is the noun type, not a type variable; use a capital for a generic type; a value of a more specific noun type can be used where `*` is expected | Decided 2026-10-30 |
48−| Type variables | Capitals, generalized per `++`; a capital in a local `++` shares the enclosing `++`'s variable of that name if the enclosing `++` also uses it; otherwise it is introduced and generalized locally; a different type takes a different capital; a body cannot force distinct capitals to be equal, so a shared type uses the same capital; one used where an atom is required gains an inferred atom constraint, and cannot be fixed to a more specific type in its body | Decided 2026-10-30 |
49−| Partial type annotations | `_` may appear wherever a mold may appear and marks that part of the type for inference; a hole inferred as a named type variable is resolved; an unconstrained hole is an error, and a named mold or value definition must determine its own holes without constraints from later uses | Decided 2026-10-31 |
45+| Type variables | Capitals, generalized per `++`; a capital in a local `++` shares the enclosing `++`'s variable of that name, and a different type takes a different capital; one used where an atom is required gains an inferred atom constraint, and cannot be fixed to a more specific type in its body | Decided 2026-10-30 |
5046| Loobean mold | `?`, switched with `?-` | Decided 2026-10-26 |
5147| Defaults | None | Decided |
5248| Modules | Records, not cores | Decided |
@@ -54,8 +50,7 @@ The choices behind the Language tab, made on 2026-10-23; a later date marks a re
5450| Type identity | Recursive molds by name and module | Decided 2026-10-29 |
5551| Binding patterns | In `?-` arms; the last position binds the rest | Decided 2026-10-29 |
5652| Text | Strings are written only as `"…"` and are always cords; tapes come from `trip`; `{…}` prints by aura, a bare `@` as `@ud`, and an atom whose aura its `++` is generic over is an error; `print-date` prints Urbit-style to the minute in the theme's zone, from jibb-dev's zone table; numbers keep Hoon's form | Decided 2026-10-30 |
57−| Auras | Specific auras stay distinct; `@` is any atom, a more specific aura fits an ancestor in its Hoon aura family one way, with the reverse requiring a check, and shared atom-constrained type variables preserve the same aura | Decided 2026-10-30 |
58−| Loobean arithmetic | Arithmetic rejects loobean operands; comparison may accept them and returns `?` | Decided 2026-10-31 |
53+| Auras | Specific auras stay distinct; `@` is any atom, and shared atom-constrained type variables preserve the same aura | Decided 2026-10-30 |
5954| Crashes | As in Hoon; an island keeps its model and shows the standard notice; a failing page, or one rendering a control outside an island, gets Jibb's error page; no render limit, so an endless render stalls the ship | Decided 2026-10-29 |
6055| Refinement types | None | Decided |
6156| Imports | `/-`, `/%` (a mark's type, with no face) and `/=`; no `/+`; cycles are errors | Decided 2026-10-29 |
@@ -72,7 +67,7 @@ The choices behind the Language tab, made on 2026-10-23; a later date marks a re
7267| Inputs | A message per input event, none mid-composition; controls reset to the latest view after every event; fields read-only until the island starts | Decided 2026-10-29 |
7368| Transactions | None; one poke per command | Decided |
7469| Reloads | Restart from the model the page is served with | Decided 2026-10-29 |
75−| Shared state | Stores: browser agents written like API files, with `state`, `+$ poke` and `(store init update)`; the store's `+$ poke` is a declaration, not a mold; derived gates provide poke constructors and state requests; one per page | Decided 2026-10-31 |
70+| Shared state | Stores: browser agents written like API files, with `state`, `+$ poke` and `(store init update)`; the store's `+$ poke` is a declaration, not a mold; poked and watched through derived gates; one per page | Decided 2026-10-30 |
7671| Subscriptions | By agent and path, shared per page; the first fact is full state, so no paths that need a scry path | Decided 2026-10-29 |
7772| Apps | One island under a catch-all route, given the path by `pure`; `%url` delivers the path on every change; in-section links act as `go`; focus moves to the first heading | Decided 2026-10-29 |
7873| Layout vocabulary | Jibb's elements and theme tokens; the stylesheet comes from the theme alone; chars and fill are inline; `[%fill n]` below 1 counts as 1 | Decided 2026-10-29 |
@@ -81,7 +76,7 @@ The choices behind the Language tab, made on 2026-10-23; a later date marks a re
8176| Dark mode | Hand-written dark tones under `dark`, used when the reader prefers dark | Decided 2026-10-27 |
8277| Links | All text escaped; in-app links are application paths, as `%/blog/(slug)`, with no query or fragment, checked at compile time against routes and static files; paths and unchecked `https`, `mailto` and `tel` URLs and root-relative cords such as `"/apps/groups"` have separate declarations; `link-unsafe`, `image-unsafe` and `go-unsafe` are the unchecked forms; both navigation declarations produce `[%go url=@t]`, with `go` converting the path to a cord including the app's base path; other cords render as text; a CSP on every page | Decided 2026-10-30 |
8378| Data layer | Hoon's nouns: units, treaps, loobeans | Decided |
84−| Prelude | Hoon's standard library regrouped: all names from the listed sections except explicitly excluded groups, including all of 3g, with Hoon's `tone` exposed as `tone.hoon` and Hoon's 1c `step` as `step.hoon`; arithmetic over aura variables, units, lists, maps, sets, queues, ordered maps, function helpers, text, atom printing, a zoned date printer, time and data molds; folds take a start; jetted functions have working Jibb implementations, whose shapes the compiler recognizes to use the Hoon versions, and may take gates; private helpers and low-level primitives live in a separate internal module imported without exposing them, with public foundational gates implemented in Jibb on those primitives; `clap` takes two units of the same type and a combining gate over that type; no signed or float gates, or parser gates outside 3g except `slav` and `slaw`; signed or float auras are errors | Decided 2026-10-30 |
79+| Prelude | Hoon's standard library regrouped: all names from the listed sections except explicitly excluded groups, including all of 3g, with Hoon's `tone` exposed as `tone.hoon`; arithmetic over aura variables, units, lists, maps, sets, queues, ordered maps, function helpers, text, atom printing, a zoned date printer, time and data molds; folds take a start; jetted functions have working Jibb implementations, whose shapes the compiler recognizes to use the Hoon versions, and may take gates; private helpers and low-level primitives live in a separate internal module imported without exposing them, with public foundational gates implemented in Jibb on those primitives; no signed or float gates, or parser gates outside 3g except `slav` and `slaw`; signed or float auras are errors | Decided 2026-10-30 |
8580| Wire format | Noun channels; Jibb's own noun codec in the browser | Decided 2026-10-29 |
8681| Hosting | One thin host agent on `%jibb` binds, caches and serves every Jibb desk; each desk vendors jibb-dev, names its base path in docket's `site+`, and builds and renders with its own copy through fixed entry points; install `%jibb` first; app agents stay plain Hoon; pokes only from the ship | Decided 2026-10-29 |
8782| Private pages | Served by the host per request and never cached; non-owners go to the login page | Decided 2026-10-29 |
docs/spec/grammar.md+12−14
@@ -91,7 +91,7 @@ Imports come first:
9191/= card /ui/components/card :: a Jibb module
9292```
9393
94−An imported Hoon record with duplicate field names is an error where used; imported union cases must differ as nouns. `/%` names a type after its mark, so it takes no face, and any mark name works; Hoon's `/%` binds the mark's core instead. Derived constructors such as `todo-action.todo` supply the agent and mark, so callers need not write those details. API modules re-export their `/%` types, not `/-` faces or `/=` modules. Import cycles are errors.
94+`/%` names a type after its mark, so it takes no face, and any mark name works; Hoon's `/%` binds the mark's core instead. Derived constructors such as `todo-action.todo` supply the agent and mark, so code never writes one. API modules re-export their `/%` types, not `/-` faces or `/=` modules. Import cycles are errors.
9595
9696## Modules
9797
@@ -118,23 +118,21 @@ Every other name is free.
118118
119119## Molds
120120
121−A mold is only a type: never called on a noun, and with no default. Types are inferred, Hindley–Milner with aura variables: every expression has a principal type, and there is no general subtyping. These one-way widenings are allowed: a value of a specific atom type fits `@`, a value of a specific noun type fits `*`, and a more specific aura fits an ancestor in its Hoon aura family; the reverse of each widening needs a check. Records can also be projected explicitly, as described below.
121+A mold is only a type: never called on a noun, and with no default. Types are inferred, Hindley–Milner with aura variables: every expression has a principal type, and there is no general subtyping. Two one-way widenings are allowed: a value of a specific atom type fits `@`, and a value of a specific noun type fits `*`; neither rule permits the reverse.
122122
123−- **Partial annotations**: `_` may appear wherever a mold may appear. It marks a part of the type for the checker to infer, so a type annotation can specify only the parts it needs to. A hole inferred to be a named type variable is resolved: in `++ id |= x=A ^- _ x`, the result hole is `A`. An unconstrained hole is an error. A named mold or value definition must determine its own holes: `+$ box [item=_]` and `++ id |= x=_ x` do not determine their holes, and later uses cannot fix them.
124−- **Atoms**: `@` is any atom, regardless of aura; auras such as `@ud`, `@t`, `@p` and `@da` are specific atom types. An `@ud` value fits where `@` is expected, but an `@` value needs a check to fit `@ud`. A more specific aura also fits an ancestor in its Hoon aura family: `@ud` and `@ux` fit `@u`, and `@tD` fits `@t`. The reverse needs a check. Distinct specific auras remain distinct; sharing an ancestor does not make them unify. Each bare `@` independently accepts any atom: it is not an aura variable. Atoms that must share a type take one capital, as `[lo=A hi=A]`, with the atom constraint inferred from the body. `add` takes `[A A]` and returns `A`, with `A` constrained to atoms, so `(add n 1)` with `n=@ud` is a `@ud`. Arithmetic rejects loobean operands: `?` contains only 0 and 1, while an arithmetic result need not. Comparison may take loobeans and returns `?`.
123+- **Atoms**: `@` is any atom, regardless of aura; auras such as `@ud`, `@t`, `@p` and `@da` are specific atom types. An `@ud` value fits where `@` is expected, but an `@` value needs a check to fit `@ud`. Different specific auras never unify. Each bare `@` independently accepts any atom: it is not an aura variable. Atoms that must share a type take one capital, as `[lo=A hi=A]`, with the atom constraint inferred from the body. `add` takes `[A A]` and returns `A`, with `A` constrained to atoms, so `(add n 1)` with `n=@ud` is a `@ud`. `?` is a loobean.
125124- **Constants**: `%add`, `~` and the loobeans have one value each.
126−- **Records and tuples**: `[text=@t done=?]`, `[@t ?]`. An empty `[]` is an error. Duplicate field names in a record are an error. Faces are part of the type, so `[a=@ b=@]` and `[x=@ y=@]` don't unify. An unnamed position can unify with a faced position and take its face, so `[0 0]` fits `[x=@ud y=@ud]`; two different faces don't unify. The explicit type-directed operation `(proj record)` selects fields from its argument according to the expected result type: `^- [x=@ud y=@ud] (proj wider)`, or `(f (proj wider))` when `f` expects that record. The source is evaluated once, and the result contains exactly the fields in the expected layout. No projection is inserted for a direct call. `proj` is reserved: a module cannot define or import another name `proj`. A record too long for one line can leave its `[` open, with one field per deeper line, as an expression's bracket does.
125+- **Records and tuples**: `[text=@t done=?]`, `[@t ?]`. An empty `[]` is an error. Faces are part of the type, so `[a=@ b=@]` and `[x=@ y=@]` don't unify. An unnamed position can unify with a faced position and take its face, so `[0 0]` fits `[x=@ud y=@ud]`; two different faces don't unify. A record too long for one line can leave its `[` open, with one field per deeper line, as an expression's bracket does.
127126- **Unions**: a `+$` with several cases below it. Every union written in Jibb has a name, so one used in a field, a sample, a cast, a gate's mold or an argument gets its own `+$`; only imports bring in unions without one. Tags take their union from context, as Tag resolution describes. Cases must differ as nouns: inhabited cases must differ at some position of their right-nested cells, where one is an atom and the other a cell, or both are different constants. `*`, type variables and molds that can be either, such as `(list A)`, can overlap atoms and cells. `?` counts as the two atoms `%.y` and `%.n`: it is disjoint from cells and overlaps the constants 0 and 1. The empty mold `!!` is disjoint from every case; a cell with an empty position at any depth is itself empty and is also disjoint from every case. A union whose cases don't all differ is rejected.
128127- **Containers**: `(list A)`, `(unit A)`, `(set A)`, `(map K V)`, `(mop K V)`, `(qeu A)`, `(jar K V)`, `(jug K V)`.
129−- **Gates**: `$-(A B)`. Type variables are capitals, generalized per `++`. A capital in a local `++` shares the enclosing `++`'s variable of the same name if the enclosing `++` also uses it; otherwise the local `++` introduces and generalizes its own variable. For example, `++ inner |= y=A y` uses the enclosing `A` when its enclosing gate has a sample `x=A`; if the enclosing `++` does not use `A`, `inner` generalizes its own `A`. Use another capital for a different type. A body can't force two distinct capitals to be equal; use the same capital wherever a type must be shared. A type variable used where an atom is required gains an atom constraint, so `++ clamp |= [lo=A hi=A n=A]`, whose body calls `gth` and `max`, works on any one aura. It can become nothing more specific: a body that makes `A` a `@ud` or a list is an error.
130−- **Paths**: `/todos` is constant, `/` empty, and `/todo/[id=@ud]` typed by aura. A typed segment may use `_` for an inferred aura; it still must resolve to an aura that the path rules can print and parse. `%/blog/(slug)` is an `qath`, checked against routes and static files.
128+- **Gates**: `$-(A B)`. Type variables are capitals, generalized per `++`. A capital in a local `++` shares the enclosing `++`'s variable of the same name; use another capital for a different type. A type variable used where an atom is required gains an atom constraint, so `++ clamp |= [lo=A hi=A n=A]`, whose body calls `gth` and `max`, works on any one aura. It can become nothing more specific: a body that makes `A` a `@ud` or a list is an error.
129+- **Paths**: `/todos` is constant, `/` empty, and `/todo/[id=@ud]` typed by aura. `%/blog/(slug)` is an `qath`, checked against routes and static files.
131130- **Generic molds**: `+$ result |$ [V E]` with cases below; `|$` goes only right after a `+$`'s name.
132131- **Noun**: `*`, not a type variable; use a capital for a generic type. A value already known to have a more specific noun type, such as `@ud`, can be used where `*` is expected. **Empty**: `!!`.
133−- **Pokes**: `poke` is defined in the source-backed private internal prelude module and re-exported by the public prelude as an ordinary transparent type. Ordinary modules can construct and inspect its values.
134−- **Effect and application-path types**: `poke`, `ask` and `qath` are transparent types, defined in the internal prelude and re-exported normally; callers can construct and inspect their values. Derived gates and `pure` also construct requests, and application-path literals have type `qath`. `(facts full diff …)` appears only in an API file's `paths`.
132+- **Opaque**: `poke`, `ask` and `qath`, built only by derived gates, `pure` and application-path literals. `(facts full diff …)` appears only in an API file's `paths`.
135133- **Identity**: recursive molds go by name and module.
136134
137−`eq`'s arguments and map and set keys must contain no gates, even nested inside another value. The checker infers this gate-free constraint on type variables and retains it when generalizing a `++`, so a generic helper that calls `eq` stays generic over gate-free types. Printed types show the constraint as `$-([A A] ?) where A contains no gates`. An inferred atom constraint prints as `$-([A A] A) where A is an atom`; an arithmetic atom constraint that excludes loobeans prints as `where A is an atom other than ?`. Multiple clauses are comma-separated, as `where A is an atom, B contains no gates`. Union-case matching treats gates as opaque and never inspects a gate to distinguish cases.
135+`eq`'s arguments and map and set keys must contain no gates, even nested inside another value. The checker infers this gate-free constraint on type variables and retains it when generalizing a `++`, so a generic helper that calls `eq` stays generic over gate-free types. Printed types show the constraint as `$-([A A] ?) where A contains no gates`. Union-case matching treats gates as opaque and never inspects a gate to distinguish cases.
138136
139137## Tag resolution
140138
@@ -212,7 +210,7 @@ Tags can sit anywhere in a case, and a case can carry several:
212210 [%move %left n] "left {n}"
213211 [%move %right n] "right {n}"
214212 [t %draft] t
215− [t %sent sent-at] t
213+ [t %sent at] t
216214 %stop "stop"
217215```
218216
@@ -262,7 +260,7 @@ rune = "|=" field ( expr | body )
262260 | "?-" expr INDENT arm { NEWLINE arm } DEDENT ;
263261arm = pattern ( expr | body ) ; (* every case covered; see Patterns *)
264262
265−mold = aura | "_" | "*" | "!!" | "?" | "~" | term | loobean | ref | typevar
263+mold = aura | "*" | "!!" | "?" | "~" | term | loobean | ref | typevar
266264 | pathmold
267265 | "(" ref mold { mold } ")" | "(" ref { mold } mlines
268266 | "[" field { field } "]" | "[" { field } flines
@@ -271,7 +269,7 @@ field = [ name "=" ] mold | "=" name ; (* =msg is msg=msg *)
271269mlines = INDENT mold { NEWLINE mold } DEDENT ; (* a mold's ( left open *)
272270flines = INDENT field { NEWLINE field } DEDENT ; (* a mold's [ left open *)
273271pathmold = "/" [ segment { "/" segment } ] ;
274−segment = knot | "[" name "=" ( aura | "_" ) "]" ;
272+segment = knot | "[" name "=" aura "]" ;
275273
276274pattern = term | number | string | ship | loobean | "~" | "*" | name
277275 | "[" pattern { pattern } "]" ;
@@ -341,4 +339,4 @@ knot = { lower | digit | "-" | "." | "~" | "_" } ;
341339 button "Add" %add
342340```
343341
344−A store is written like an API file: `state`, `+$ poke` and `(store init update)`. Islands can poke it with derived constructors and watch it with `(state.cart |=%got)`, whose first fact is the current state and each later fact the next. It runs in the browser, shared by the page's islands.
342+A store is written like an API file: `state`, `+$ poke` and `(store init update)`. Islands poke it with derived constructors and watch it with `(state.cart |=%got)`, whose first fact is the current state and each later fact the next. It runs in the browser, shared by the page's islands.
docs/spec/overview.md+6−6
@@ -63,7 +63,7 @@ Hoon's runes and literals in an indentation layout, over Hoon's nouns and molds,
6363
6464| Hoon | Jibb |
6565| --- | --- |
66−| `$%`, `$?` | A union if its cases differ as nouns, else an error where used |
66+| `$%`, `$?` | A union |
6767| `$@` | A union with an atom case |
6868| `$^` | A union if its cases differ as nouns, else an error where used |
6969| `$~` | Dropped |
@@ -72,25 +72,25 @@ Hoon's runes and literals in an indentation layout, over Hoon's nouns and molds,
7272| Other `$\|` | Its base type |
7373| `%0`, `%&`, `%\|` | Tags |
7474| Recursive molds, such as `json` | Recursive, matched by name |
75−| Records with duplicate field names; cores, gates, vases, signed and float auras | An error where used |
75+| Cores, gates, vases, signed and float auras | An error where used |
7676
7777Unused molds are skipped, so unsupported constructs elsewhere in a `/sur` file are fine. A union without a name, as a field's `?(%approve %deny)`, imports too, though Jibb can't write one. Messages and printed types show its cases separated by spaces, as `%approve %deny`; this notation is print-only.
7878
7979## Prelude
8080
81−Hoon's standard library regrouped, written in Jibb and vendored as `/lib/jibb/prelude`; an island's bundle carries only what it uses. The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out. Jetted prelude functions have working Jibb implementations; the compiler recognizes their shapes and uses the Hoon versions so jets can fire. They may take gates as arguments (Core language). Private helpers and low-level primitives live in a separate internal prelude module, imported without exposing them; foundational public gates are implemented in Jibb on top of those primitives. This source-backed internal module defines `poke`; the public prelude re-exports it as an ordinary transparent type, so ordinary modules can construct and inspect its values. The prelude also holds `eq`, `not`, `page`, `program`, `store`, `pure`, `island`, and the layout elements and molds.
81+Hoon's standard library regrouped, written in Jibb and vendored as `/lib/jibb/prelude`; an island's bundle carries only what it uses. The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out. Jetted prelude functions have working Jibb implementations; the compiler recognizes their shapes and uses the Hoon versions so jets can fire. They may take gates as arguments (Core language). Private helpers and low-level primitives live in a separate internal prelude module, imported without exposing them; foundational public gates are implemented in Jibb on top of those primitives. The prelude also holds `eq`, `not`, `page`, `program`, `store`, `pure`, `island`, and the layout elements and molds.
8282
8383| Group | Hoon | Jibb |
8484| --- | --- | --- |
8585| Arithmetic | [1a](https://docs.urbit.org/hoon/stdlib/1a), [2g](https://docs.urbit.org/hoon/stdlib/2g) | Jibb gates over shared atom-constrained type variables, using private low-level primitives: `add`, `sub`, `div`, `mod`, `gth`, `max`, `pow` |
86−| Units | [2a](https://docs.urbit.org/hoon/stdlib/2a) | `fall`, `need`, `bind`, `biff`, `clap`; `clap` takes two units of the same type and a gate combining two values of that type into one of that type |
86+| Units | [2a](https://docs.urbit.org/hoon/stdlib/2a) | `fall`, `need`, `bind`, `biff` |
8787| Lists | [2b](https://docs.urbit.org/hoon/stdlib/2b) | `turn`, `weld`, `snag`, `lent`, `sort`, `skim`; `(roll xs init f)` takes a start |
8888| Maps, sets, queues | [2h](https://docs.urbit.org/hoon/stdlib/2h)–[2m](https://docs.urbit.org/hoon/stdlib/2m), [2o](https://docs.urbit.org/hoon/stdlib/2o) | Plain gates over Hoon's trees, such as `(get.by m k)`; `rep.by` and `rep.in` take a start; ordered maps through lull's `on`, as `(get.on lte m k)` |
8989| Function helpers | [2n](https://docs.urbit.org/hoon/stdlib/2n) | `same`, `head`, `tail`, `cork`, `cury` |
9090| Text | [4b](https://docs.urbit.org/hoon/stdlib/4b) | `crip`, `trip`, `cass`, `cuss`, `trim`, `tufa`, `tuba` |
9191| Atom printing | [4a](https://docs.urbit.org/hoon/stdlib/4a), [4j](https://docs.urbit.org/hoon/stdlib/4j)–[4m](https://docs.urbit.org/hoon/stdlib/4m) | `scot`, `scow`, `slav`, `slaw`. `print-date` prints Urbit-style in the theme's zone, to the minute, as `~2026.10.29..14.30`, from a zone table jibb-dev keeps current. Numbers print as Hoon does, as `1.000` |
9292| Time | [3c](https://docs.urbit.org/hoon/stdlib/3c) | `yore`, `year` |
93−| Data molds | [1c](https://docs.urbit.org/hoon/stdlib/1c), [2q](https://docs.urbit.org/hoon/stdlib/2q), [3g](https://docs.urbit.org/hoon/stdlib/3g) | `unit`, `list`, `pair`, `tape`, `path`, `coin`, `dime` and the rest; Hoon's 3g `tone` is `tone.hoon`, distinct from the styling type, and its 1c `step` is `step.hoon` |
93+| Data molds | [1c](https://docs.urbit.org/hoon/stdlib/1c), [2q](https://docs.urbit.org/hoon/stdlib/2q), [3g](https://docs.urbit.org/hoon/stdlib/3g) | `unit`, `list`, `pair`, `tape`, `path`, `coin`, `dime` and the rest; Hoon's 3g `tone` is `tone.hoon`, distinct from the styling type |
9494| Bits | [2c](https://docs.urbit.org/hoon/stdlib/2c), [2d](https://docs.urbit.org/hoon/stdlib/2d) | Jibb's `not` negates a loobean; Hoon's bitwise `not` is exposed as `not.bit` |
9595| Hashing and ordering | [2e](https://docs.urbit.org/hoon/stdlib/2e), [2f](https://docs.urbit.org/hoon/stdlib/2f) | Natives behind maps and sets; `aor` exposed |
9696| Signed and floats | [3a](https://docs.urbit.org/hoon/stdlib/3a), [3b](https://docs.urbit.org/hoon/stdlib/3b) | Left out; `@s…` and `@r…` auras are errors, imported ones included |
@@ -150,7 +150,7 @@ Loads and renders run in Nock.
150150 [%url reply=$-(path M)]
151151```
152152
153−- `poke`, `ask` and `qath` are transparent types defined in the internal prelude and re-exported normally. Derived gates and `pure` also construct requests. A derived poke constructor such as `(todo-action.todo [%add draft.m])` checks its value and supplies the agent and mark, so one island can poke several agents. The agent's mark rechecks on the ship; a nack's `tang` reaches the reply as text. Store constructors poke the store in the browser.
153+- `poke` and `ask` are opaque, built only by derived gates and `pure`. A constructor such as `(todo-action.todo [%add draft.m])` checks its value and supplies the agent and mark, so one island can poke several agents. The agent's mark rechecks on the ship; a nack's `tang` reaches the reply as text. Store constructors poke the store in the browser.
154154- A request such as `(todos.todo |=%got)` comes from a declared path or a store's `state`; its reply always gets full state. A path with diffs also takes a fold, `(changes.todo |=%got apply)`, which the runtime applies first. Facts are checked; a bad one crashes the reply, which counts as a crashed `update`.
155155- Islands read agents only by watching. A watch's first fact must be full state, so watching a request whose path case has a separate `scry=` path is a type error in an island. The runtime acks facts, rewatches after a kick or a dropped connection and reseeds from the first fact; a refused watch shows the crash notice.
156156- Watches match by agent and path, timers by gap, and the newest reply is always used. After each `update`, `subs` is diffed to start and stop watches and timers. `%now` and `%every` give the time, `%who` the owner's `@p` from `/~/name`; `%wait` is a one-shot delay.
docs/status.md+8−92
@@ -1,6 +1,6 @@
11# Status
22
3−As of 2026-10-31. The plan is [spec/implementation-plan.md](spec/implementation-plan.md); each milestone ends with its checks passing on a fake ship.
3+As of 2026-10-30. The plan is [spec/implementation-plan.md](spec/implementation-plan.md); each milestone ends with its checks passing on a fake ship.
44
55| # | Milestone | Status |
66| --- | --- | --- |
@@ -19,15 +19,7 @@ On 2026-10-30, @iko decided that Jibb drops `$?`, so a `+$` takes a union's case
1919
2020## Milestone 2: in progress
2121
22−The parser accepts `_` in mold positions and typed path segments, retaining each hole’s span. The partial checker tracks ordinary annotation holes through inference and requires each value or local definition to resolve its own holes before generalization. A hole can resolve to a concrete type or an explicitly written in-scope type variable; later uses cannot fix an unresolved definition. Independent decimal holes can default, but captured variables are not defaulted prematurely. Structural named molds with an unresolved hole report its site. Complex mold forms, inferred path segments, mutual recursive groups and other unsupported constraints still fail closed, and the fragment does not claim the module is checked. A syntax-tree pass rejects duplicate field names within each written record and reports both sites. The repository spec now records that `ask` and `qath` are transparent; `ask` remains outstanding.
23−
24−On 2026-10-31, @iko chose explicit, result-directed `(proj record)` to construct a record with exactly the expected fields, and reserved `proj` against definitions and imports. The partial checker handles selected explicit calls with known, closed record types, records field-selection evidence for later lowering, and reserves the name across source bindings. Reordered fields, some nested contexts and several open or recursive cases remain unsupported; lowering and execution are not implemented yet. The field-order question remains open.
25−
26−The internal prelude also defines `qath` as a transparent recursive knot sequence, re-exported by the public prelude. The partial checker recognizes its source identity, supports selected null/cell construction and matching, and types static application-path literals. Other recursive shapes, broader patterns and dynamic application-path segments remain unsupported. A 256-step limit applies per inference attempt, not to parsing or retries; checking routes and static files remains milestone 4. `ask` is still unfinished.
27−
28−The repository spec records the subsequent type-system and prelude decisions; those changes also need synchronization to the Claude document. An initial inference fragment and a standalone Hoon type reader are being tested. The fragment explicitly reports that it does not check a module; partial bridges pass Hoon `*` in supported nonrecursive molds, selected Hoon atoms, term singletons, the null singleton, the two loobean singletons and their exact fork, nested faced or unfaced cells, supported disjoint unions and opaque standard collections from `/sur` molds and marks into inference. Collections retain their names and supported arguments for printing and unification; nested supported union arguments are retained too. The bridge trusts unchanged results from the source-aware reader; a materialized type graph alone cannot reveal cases Hoon already collapsed. The source-validated standard prelude `list` mold shares this representation with imported lists; other Jibb-written collection molds and most prelude collection operations remain unsupported; malformed names and arities fail closed. Selected self-recursive `/sur` molds, including Tlon `notes.import-node` with list-wrapped self references, cross as opaque module-and-name identities; aliases, foreign references, recursive marks, unfolding and construction remain unsupported. The reader handles mark samples, including a source-proved nonrecursive union from a single Ford-imported `/sur` core, recursive molds whose origins can be verified through Ford imports, nested collections, direct ordered maps, including source-validated named operands such as Tlon `notes.log`, certain ordered-map fields, direct `$^` unions whose cases can be proved disjoint, and one verified explicit union argument in a list, set, map or unit. Tagged `$%` cases can additionally use restricted local named payload molds, bare `~` fields and one level of local named tagged unions, as in real Tlon `notes`, with bounded source proof; unsupported or ambiguous dependencies fail closed. Ambiguous recursive origins fail closed; recognizable explicit unions are checked from source before Hoon can collapse their cases, as @iko confirmed for imported `$%`, `$?` and `$^`, while other nested unions, nested ordered maps, general union disjointness and complete import integration remain unfinished. Opt-in structured reader APIs preserve successful graphs and distinguish definite unsupported-aura and core evidence from failures the reader cannot prove; unverified union disjointness and name-only vase recognition remain unsupported. They revalidate and re-walk failed types. An opt-in partial checker entry point consumes unchanged reader results and reports definite aura or core errors at imported mold use sites when their inputs are unique. Ordered replay covers nested cell samples, record and function casts, and non-generic same-module aliases; unsupported prefixes, cycles and shadowing stop it. Union molds, generic applications, transitive modules and unsupported reader outcomes remain generic. Replay repeats inference and may add work. The partial checker resolves a subset of ordinary library imports in dependency order using supplied Jibb sources and a source-derived partial prelude interface, caches completed interfaces per run, detects missing sources and cycles, and resolves nested fields of imported values with independent scheme instantiation. The source-backed internal prelude defines `poke` and the public prelude re-exports it as a transparent type. A dedicated trusted preparation path supplies a private comparison scheme to the Jibb-written `gth` wrapper; ordinary imports cannot access them. Primitive execution and jet recognition are unfinished, and addition, decrement and length remain unavailable until arithmetic constraints distinguish their results from loobeans. The partial checker resolves its supported source shape and rejects ordinary imports of the private path. An imported API with one mark and a matching direct `+$ poke` declaration can export a constructor and retain agent/mark metadata when the representation has the supported agent case. A separate partial analysis resolves supported API path declarations and their full and diff mark types, including the todo paths; it does not create requests or check an API module. Complete private module checking, other API shapes, request gates, root API and kind checking, stores, `ask`, `pure`, lowering and runtime effects remain unfinished. A possible store or root API with `+$ poke` reports unsupported kind or scope, while definite duplicates and unrelated shadowing still report conflicts. The prelude includes the doc-exact generic `cmd` union; the prelude inventory is incomplete. The inference fragment supports unrestricted `@`, selected one-way widenings including aura-family ancestors, generalized atom constraints arising from explicit capitals or bare sample binders, acyclic local value definitions with captures, selected single self-recursive top-level and local gates, simple and nonrecursive generic mold aliases, selected faced record casts and field reads, and contextual tags, `~` and constructors for closed disjoint unions, including direct nonrecursive generic unions and propagation through complete loobean and unit-shaped branches in casts and known union-sample calls, including nested branches. Known loobean result context also propagates through supported complete branches and binder-only cell arms; binder-only arms over union subjects remain unsupported. A directly known named union can instantiate an unconstrained generic gate sample with its origin, generic arguments and faces preserved; unnamed, pending, recursive and variable-bound cases remain unsupported. A known gate with an unresolved result variable can receive a known enclosing result type before its arguments are inferred; unknown calls and unresolved targets remain conservative. Multi-argument calls form a right-nested sample, retain known faces and shared type variables, and can use known sample positions to contextualize list and union arguments. A definite mismatch points to the failing argument when the fragment can establish it, otherwise to the combined sample; unsupported contextual forms still fail closed. For a supported recursive gate, the checker infers the sample first and uses its exact type, including field faces, for one monomorphic self reference. It generalizes after the body is checked; subsequent uses instantiate it independently. Incompatible recursive arguments can report the gate and argument sites. For a complete loobean branch with one direct self-call arm, a separately inferred closed base type can seed the recursive result before the whole body is checked. Open or pending base types do not seed it; other branch shapes remain subject to the fragment’s existing limits. A supported single local recursive gate also uses a monomorphic self reference and generalizes variables free of the enclosing environment after checking its body; captured variables remain shared. The checker collects written capitals per `++` before inference, excluding nested definitions: a capital used in an enclosing definition is shared with its locals even when written later, while a capital introduced only in a local definition is generalized there. Sibling locals can introduce independent capitals with the same spelling; generic mold parameters keep their own scope. Top-level groups of syntactic gates are inferred together with monomorphic placeholders and shared substitutions, then generalized only after the whole group checks; downstream uses and library interfaces instantiate those schemes independently. A dependency graph identifies groups with two iterative depth-first passes; its conservative local-reference edges can reject otherwise valid programs. Supported local mutually recursive gate groups also use shared monomorphic placeholders and generalize only after the group checks, preserving captured outer variables. A bounded dependency proof reports certain non-gate cycles through values and gates when an explicit atom or loobean result cast and simple unshadowed expressions establish the cycle. Other mixed gate/value cycles, polymorphic recursion, unresolved literal constraints and unresolved branch joins remain unsupported. Reporting repeats inference for a single recursive gate outside a group; grouped reports use the stored schemes. Its performance cost remains unmeasured. A single-arm cell pattern accepts two or more binders, the last capturing the remaining tail; duplicate and shadowed binders are rejected. A structured single-arm pattern also works for a known non-union cell when coverage is proven, including nested literal and wildcard positions. Intermediate union or collection tails, nested patterns, wildcards and faced records remain unsupported. String interpolation accepts known atom auras, unrestricted `@`, tapes and isolated decimal literals; a known cell asks for a printer, and an explicitly generic atom asks for an aura. Loobeans, term singletons, non-tape collections, open types and a type fixed only later remain unsupported. A known closed union with two or more arms supports patterns that provably cover or exclude each remaining case, including payload binders, imported and generic cases, and binder-free catch-alls. Partial boolean patterns can split known `?` positions into their two noun values, up to 64 alternatives across the union; binders retain their original case type. Missing alternatives and covered arms are reported. Other partial patterns, expansions above the limit, binders spanning distinct cases, differing arm result types and some complex two-arm subjects remain unsupported. A cast or known call sample can supply result context through whole-case arms and supported finite loobean refinements for a known union accessed by a wing, a grouped wing or a supported shallow call, including nested cell and list positions; other partial-pattern contexts and subject forms remain unsupported. The Grammar’s `step` block infers in this fragment, but its module is not yet checked. A bare tag proved absent from a known union reports the union and tag sites in casts, single-argument calls, unit payloads, list items and supported branch arms; imported unnamed unions print their cases. Ordered fit replay can identify a missing tag nested in a syntactic tuple, stopping at an earlier mismatch or uncertainty. Known faced records support uniquely named field changes, including nested wings, with field context passed to replacements and the original record type retained. Missing fields, empty changes and definite mismatches report sites; the expected-type site is the edit because the original field declaration location is not retained. Unknown or partly unfaced spines, ambiguous fields and repeated edits remain unsupported. A known record cast supplies field context to its tuple or record initializer, including nested list and union fields; mismatch diagnostics use the cast mold because the original field declaration location is not retained. Isolated cart-style `init` and `update` expressions infer, while the complete cart-store fails closed because its kind and declaration scope remain unchecked. Uncontextualized list literals infer a fresh element type, including empty and nested lists, with independently generalized uses. Unresolved item tags and uncertain widening remain unsupported. Backtick unit construction uses the validated standard prelude unit template, infers its payload without losing pending constraints, and makes the prelude’s `some` available. Ordinary result annotations also let its `bind`, `biff`, `both`, `clap`, `clef` and `flit` infer. A known unit in a cast, call, list item or record field supplies context to its payload, including nested units and lists; mismatches identify the payload and context. Unrelated union identities, some variable-dependent fits, and missing or altered prelude unit templates remain unsupported. Contextual null-headed cells fit their cases, but do not supply a `|=%$` constructor; unresolved nulls remain pending and are reported separately from tags. A known union of `~` and a null-headed cell supports a complete `~` / `[~ value]` branch in either order, including shadow checks; unknown subjects, missing or duplicate arms, and unresolved branch results remain unsupported. This fragment infers the prelude’s `fall` and `need` signatures. With the validated prelude list and a known cast or gate sample, empty, nonempty and nested list literals infer their element types, including contextual union tags; a mismatched element names both sites. In that context `~` and zero-valued terms fit an empty list, and two-item unfaced cells form cons lists, including nested cons and imported-list contexts; invalid heads or tails name both sites. A known gate sample also supplies context to matching positions in a single tuple or record argument, including nested cells; zero literals can fit list positions. A bound zero constant remains unsupported rather than a definite mismatch, and an unknown callee does not supply context. Faced or longer cells and a missing or altered prelude list fail closed. A known list result also supplies context through complete loobean, unit-shaped and list-shaped branches, including recursive and nested branches. For a known standard list with a supported element type, a complete `~` / `[item rest]` branch infers the element and tail types in either arm order and checks binders for shadowing. Unknown subjects, unsupported element types and other or incomplete list patterns remain unsupported. A value with type variable `A` can fit a field whose type is that same `A`, including in generic union payloads and nested or repeated record fields. Other variable-dependent face merges remain unsupported. Forced equality of distinct written capitals now reports both source sites, following @iko’s decision; forcing one to a concrete type remains unsupported. Imported record spines with repeated faces fail closed where used, but only with a generic unsupported diagnostic. Hoon may erase unfaced nested-cell boundaries, so the check can conservatively reject valid names in distinct erased scopes. Supported closed unions print using an in-scope name or imported alias; an unnamed nongeneric union prints its cases, parenthesized when nested. The latter is print-only. Generic union types retain all arguments in their printed name; if that name is unavailable, the partial printer reports the limitation. Different import faces for the same origin remain compatible; compatibility across distinct union origins and some generic-argument comparisons remain unsupported. Nonrecursive generic aliases can reorder, repeat or omit parameters while retaining a union’s origin, including through local scopes and library interfaces. A generic union declared directly inside a body remains unsupported, as do differing-variable face constraints in a union payload. A transitive generic union whose name is unavailable is reported as unsupported instead of hiding its arguments. Unfixed decimal literals default to `@ud` in gate-free inferred types; recursive molds, general branch tag context, other constraint cases and defaulting inside gate types still need work. Collection recognition checks the originating core and fails closed on shadows or unsupported Ford subject shapes; a wrapper regression also rejects forged subjects, samples and tails. Its golden fixtures include three real Tlon files. A Clay test passes a Ford-built nested union through the reader into partial inference. The partial prelude includes `murn`, `join`, `snip`, `rear` and the newly agreed shared-type `clap`, parsed but still awaiting checker and backend validation, and [prelude-inventory.md](prelude-inventory.md) is a source audit, not the complete inventory or signatures. The milestone remains unfinished.
29−
30−The shared prelude interface reserves every name present in the supplied vendored source and makes only supported inferred entries available, including `list`, `unit`, `same`, `fall`, `need`, `bond`, `lure`, `weld`, `snoc` and `turn`. The validated standard `list` mold is injected when the prelude’s own gates are inferred; `weld` and `turn` have ordinary explicit result casts. An absent or altered `list` is not injected, and an altered declaration cannot leak through direct or transitive mold aliases. The same validated template is available when prelude mold aliases are prepared, so supported direct and transitive aliases can use it. Unsupported entries such as most list helpers remain reserved but unavailable; backend validation of the helpers remains outstanding. All callers use the same prelude origin, so a library can export a type containing unqualified `(unit A)` to another module. Preparation rejects empty, malformed, conflicting or import-bearing source; the prepared value is trusted and must come unchanged from `+prepare-prelude`. The module-scope fixture compares the prepared and source-taking paths against the real prelude and a two-module golden under eval and on the ship. The source and checker remain incomplete, so this does not establish complete shadowing coverage or a checked module.
22+The repository spec records the subsequent type-system and prelude decisions; those changes also need synchronization to the Claude document. An initial inference fragment and a standalone Hoon type reader are being tested. The fragment explicitly reports that it does not check a module; a partial bridge passes selected Hoon atoms and unfaced cells into inference, while the reader and bridge do not cover every supported Hoon type. It reads named recursion, several collections, jar and jug in record fields, and direct `$^` unions whose cases can be proved disjoint. Nested `$^`, nested collection arguments, ordered maps, marks and general union disjointness remain unfinished. Collection recognition checks the originating core and fails closed on local shadows or unresolved Ford subjects; its golden fixtures include three real Tlon files. The prelude currently has only a few functions, and [prelude-inventory.md](prelude-inventory.md) is a source audit, not the complete inventory or signatures. The milestone remains unfinished.
3123
3224## Milestone 1: parser and mark
3325
@@ -45,9 +37,9 @@ What the plan asks for, and where it is:
4537
4638Besides the plan's list:
4739
48−- 628 golden cases: 408 that parse and 220 that fail, each failure at a stated line and column. One failing case has an unclear expectation (corpus question 3). The newer type-output cases exercise only the partial inference fragment. Each case's `about.txt` quotes the doc's words it tests.
49−- The 628-case corpus passed under `urbit eval` in 82.9 s while other checks were running. The fake ship passed all 642 tests, including the importer, importer/checker and mark/checker bridges, module scope, unification, hole, qath and projection guards, with 57.8 s for sync and 66.3 s for tests. The importer golden compares 221 projections; `tools/clay-fixtures` builds the example Hoon fixtures through Clay, checks a recursive Ford import's origin, and passes Clay-built types through the Clay-built importer and partial checker.
50−- `tools/testdata/selftest` (22 checks), `tools/testdata/ship-selftest` and `tools/testdata/clay-fixtures-selftest` test the tools themselves; the last checks temporary Clay fixture cleanup and signal handling without a ship.
40+- 393 golden cases: 177 that parse and 216 that fail, each failure at a stated line and column. One failing case has an unclear expectation (corpus question 3). The newer type-output cases exercise only the partial inference fragment. Each case's `about.txt` quotes the doc's words it tests.
41+- The 393-case corpus passed under `urbit eval` in 20.0 s. The fake ship passed all 396 tests, including the importer, importer/checker bridge and unification checks, with 18.9 s for sync and 8.9 s for tests. The importer golden compares 35 projections; `tools/clay-fixtures` also built all seven example Hoon fixtures through Clay.
42+- `tools/testdata/selftest` (19 checks) and `tools/testdata/ship-selftest` test the tools themselves.
5143- Two independent audits before 7c739b7, one of which compared the library with a reference parser written in Python from the doc over about 19,000 generated programs. Before ab797a9, a second Python parser, written from the decisions, agreed with the library on 8,000 generated programs and 900 hand-written probes.
5244- Speed: starting `urbit eval` and building the library takes about 8 s. After that, a 2,000-line module of 400 definitions parses in about a second. Loops over definitions, arms, lines and items grow no stack; nesting costs a few stack frames a level, and 100,000 nested brackets still parse (library section 3).
5345
@@ -63,99 +55,23 @@ Besides the plan's list:
6355| ab797a9 | 2026-10-30 | The 12 grammar decisions of 2026-10-30: four changed the parser, eight confirmed it |
6456| aad6ddb | 2026-10-30 | Drop `$?`; `+$` takes union cases below its name |
6557| 1dd92a6 | 2026-10-30 | Begin type inference and Hoon imports |
66−| 51ce4d9 | 2026-10-30 | Extend partial inference and importer, record type and prelude decisions |
67−| be6d2a5 | 2026-10-30 | Add atom widening, nested collections and case-local Hoon import fixtures |
68−| 26554ac | 2026-10-30 | Infer an atom constraint, extend the prelude and read example molds through Clay |
69−| fbeaa83 | 2026-10-30 | Extend atom constraints and nested ordered-map imports; connect Clay types to partial inference |
70−| 47a1f49 | 2026-10-30 | Read validated Ford imports, widen aura families, and show both sites of selected errors |
71−| bd37989 | 2026-10-30 | Read mark samples and test partial mark imports; reject unproven nested `$^`; preserve atom constraints through aliases |
72−| 2d5deb2 | 2026-10-30 | Default gate-free decimal types, validate named Hoon mold lookup, and isolate fixture failures |
73−| 1b7dbae | 2026-10-30 | Infer acyclic local definitions and parse case-local Jibb module fixtures |
74−| 8b9c9ac | 2026-10-30 | Preserve recursive import origins, infer simple local molds, and supply Jibb module sources to the partial checker |
75−| 529736a | 2026-10-30 | Infer supported library import graphs and guard nested Hoon `$^` in collections |
76−| 8bf1b12 | 2026-10-30 | Infer selected record faces and check nested `$^` in static Hoon records |
77−| d8ac47d | 2026-10-30 | Cache library interfaces, preserve imported Hoon record faces, and check nested tagged unions |
78−| edd9277 | 2026-10-30 | Infer nonrecursive generic mold aliases with lexical parameters |
79−| 4406f6f | 2026-10-30 | Resolve selected contextual tags and check explicit imported unions |
80−| 5c73614 | 2026-10-30 | Print supported named and escaping union types |
81−| 0070584 | 2026-10-30 | Propagate union context through loobean branches, read selected unions in Hoon collections, and add `flit` |
82−| 250564c | 2026-10-30 | Infer selected named generic unions, test Hoon collection wrappers, and add list helpers |
83−| e95ef8f | 2026-10-30 | Bridge selected Hoon unions into partial inference and support generic union aliases |
84−| 56a899f | 2026-10-30 | Infer matching variable types in faced fields and bridge opaque Hoon collections |
85−| 4d45d2f | 2026-10-30 | Resolve selected contextual null literals |
86−| e878edc | 2026-10-30 | Infer complete unit-shaped branches and bridge selected recursive Hoon molds |
87−| 743dfd8 | 2026-10-30 | Propagate union context through unit-shaped branches |
88−| 3f90fa8 | 2026-10-30 | Share a partial prelude interface across module inference |
89−| 29bd39f | 2026-10-30 | Infer contextual list literals and validate prelude parity |
90−| a2a6ef5 | 2026-10-30 | Infer complete list-shaped branches |
91−| 671fe72 | 2026-10-30 | Infer contextual list nulls and cons cells |
92−| 7e69436 | 2026-10-30 | Infer selected self-recursive gates |
93−| 9ab52e8 | 2026-10-30 | Infer recursive branches with closed base types |
94−| d782b45 | 2026-10-30 | Propagate list context and apply settled type decisions |
95−| c7082e0 | 2026-10-30 | Infer multi-argument calls |
96−| 918acbd | 2026-10-30 | Infer recursive gates from their samples first |
97−| 1470d18 | 2026-10-30 | Infer selected prelude list helpers |
98−| 10cbf9c | 2026-10-30 | Infer selected local recursive gates and distinguish reader diagnostics |
99−| 45afb13 | 2026-10-30 | Infer local capital scopes and report direct reader diagnostics |
100−| 054e651 | 2026-10-30 | Report nested reader diagnostics |
101−| 98c19cd | 2026-10-30 | Infer known-aura string interpolation |
102−| ddba633 | 2026-10-30 | Infer top-level mutually recursive gates |
103−| 9f1517e | 2026-10-30 | Infer whole-case union patterns and prelude `turn` |
104−| 9dd35c8 | 2026-10-31 | Match finite boolean refinements of union cases |
105−| 54852d4 | 2026-10-31 | Contextualize tuple calls and infer known record changes |
106−| 0bc5113 | 2026-10-31 | Contextualize record initializers and infer unit construction |
107−| 264a436 | 2026-10-31 | Contextualize unit payloads in casts, calls and nested values |
108−| a140383 | 2026-10-31 | Report missing union tags and infer prelude unit helpers |
109−| d69cc52 | 2026-10-31 | Infer longer cell binder patterns and prelude unit helpers |
110−| ae35005 | 2026-10-31 | Import source-verified tagged Hoon unions |
111−| c8f894a | 2026-10-31 | Report nested missing tags and contextualize union branch results |
112−| ef2ea71 | 2026-10-31 | Import Hoon null singleton cases |
113−| 67f900e | 2026-10-31 | Infer local mutual gates and uncontextualized lists |
114−| 7ff15f1 | 2026-10-31 | Contextualize finite union patterns and record the initial poke decision |
115−| c790a9f | 2026-10-31 | Expose transparent `poke` from the internal prelude |
116−| ef4772a | 2026-10-31 | Bridge imported loobeans and loobean singletons |
117−| ad46655 | 2026-10-31 | Bridge selected imported any-noun molds |
118−| beada10 | 2026-10-31 | Import source-proved Ford mark unions, analyze API paths and infer list helpers |
119−| e28f7be | 2026-10-31 | Diagnose proven non-gate cycles and import Tlon null-payload union cases |
120−| fd2f288 | 2026-10-31 | Infer qualified fields of imported values |
121−| ed9291e | 2026-10-31 | Infer term-headed pairs and function helpers, and import nested named unions |
122−| ad0265e | 2026-10-31 | Infer proven single-case patterns and the prelude command union |
123−| 413b12b | 2026-10-31 | Propagate known result context into generic calls and batch ship deletions |
124−| c690076 | 2026-10-31 | Propagate loobean context, infer predicate helpers, and import named ordered-map operands |
125−| 0bf6178 | 2026-10-31 | Bridge recursive Tlon lists and prepare a private comparison interface |
126−| 4e472b5 | 2026-10-31 | Pass known named unions through polymorphic gates |
127−| e3e184f | 2026-10-31 | Parse type holes, reject duplicate written record fields, and extend partial union inference and imports |
128−| 80e221a | 2026-10-31 | Infer supported annotation holes and prelude list aliases |
129−| ba1fec4 | 2026-10-31 | Add the curried `bond` prelude gate |
130−| 0ea700d | 2026-10-31 | Infer a source-defined recursive `qath` subset and record the explicit `proj` decision |
131−| 75f5952 | 2026-10-31 | Check a subset of explicit `proj` calls and retain their lowering evidence |
132−| This change | 2026-10-31 | Infer supported single-field projections |
58+| This change | 2026-10-30 | Extend partial inference and importer, record type and prelude decisions |
13359
13460## Checking it
13561
13662On a machine set up as [development.md](development.md) says:
13763
13864```
139−tools/golden # 628 cases under urbit eval
65+tools/golden # 393 cases under urbit eval
14066tools/importer-test # the Hoon importer fixture projection
14167tools/type-import-test # the importer/checker bridge fixture
142−tools/type-tlon-test # the real Tlon reader/checker fixture
143−tools/type-mark-test # the mark/checker bridge fixture
144−tools/type-poke-test # the source-backed poke/API fixture
145−tools/type-api-paths-test # partial API path metadata fixture
146−tools/type-hole-guards-test # hole defaulting and API interface guards
147−tools/type-list-alias-test # prelude list-alias guards
148−tools/type-qath-guards-test # qath source and unfolding guards
149−tools/type-proj-guards-test # projection evidence and scope guards
150−tools/type-module-scope-test # module and prelude scope fixture
15168tools/hoon check-spans-test # prints <<>> when the span checker works
15269tools/testdata/selftest # the tools themselves
15370tools/doc-blocks docs/spec # the doc's examples are golden cases
15471tools/ship start
15572tools/ship gen-tests --check # tests/lib/jibb.hoon is up to date
156−tools/ship test # the same 628 cases as -test arms on the ship
73+tools/ship test # the same 393 cases as -test arms on the ship
15774tools/testdata/ship-selftest
158−tools/testdata/clay-fixtures-selftest # scratch fixture cleanup without a ship
15975tools/ship check-commit # |commit stores .jibb files
16076tools/clay-fixtures # example /sur files and marks build through Clay
16177```
jibb-dev/lib/jibb-import.hoon+62−1582
@@ -8,27 +8,17 @@
88:: Hoon's %hold nodes retain the generator's Hoon and its bound arguments.
99:: Comparing that Hoon to the standard generators identifies collections
1010:: before they expand into trees. Recursive holds are tracked by identity;
11−:: a repeated named hold becomes a module-qualified reference. A proven
12−:: nested self-recursive tagged union retains its own named boundary.
11+:: a repeated named hold becomes a module-qualified reference.
1312::
1413:: A direct $^ is read from its original branches and accepted only when
15−:: their imported shapes prove disjoint. A single nested $^ in a
16−:: static record is checked by splitting and reassembling its branches;
17−:: other nested forms and unprovably disjoint cases remain unsupported. Source-level overlap in
18−:: other unions, general nested ordered maps, broader Ford subject
19−:: shapes, ambiguous recursive origins and full error locations still
20−:: need work. One direct union argument to a standard collection is
21−:: recovered only from its exact call wrapper, static independent cases,
22−:: proven disjoint branches and unshadowed standard names. Other source
23−:: shapes fail closed. A nested ordered map is recovered only when its key and
24−:: value are fixed atom molds and
25−:: the other fields are fixed atoms or collections of static atoms;
26−:: other source shapes fail closed.
14+:: their imported shapes prove disjoint. Nested $^ and some valid but
15+:: unprovably disjoint cases remain unsupported. Source-level overlap in
16+:: other unions, nested collection arguments, ordered maps, Ford import
17+:: provenance, marks and full error locations still need work.
2718::
28−:: The partial checker bridges supported nouns, atoms, cells, faces,
29−:: proven forks and collections, and keeps proven recursive roots nominal.
30−:: Unsupported shapes fail closed. Reader failures return %|; no partial
31−:: tree is returned as success.
19+:: The checker has a small bridge for successful unfaced atom and cell
20+:: results; it rejects other importer shapes. Failures return %|; no
21+:: partial tree is returned as success.
3222::
3323|%
3424+$ imported
@@ -39,16 +29,9 @@
3929 [%cell head=imported tail=imported]
4030 [%face name=term body=imported]
4131 [%fork cases=(list imported)]
42− [%named module=term name=term body=imported]
4332 [%apply name=term args=(list imported)]
4433 [%ref module=term name=term]
4534 [%bad reason=@t]
46− [%invalid code=?(%aura %core) reason=@t]
47− ==
48−+$ import-diagnostic
49− $% [%ok value=imported]
50− [%invalid code=?(%aura %core) message=@t]
51− [%unsupported message=@t]
5235 ==
5336+$ signatures (list [name=term code=hoon])
5437+$ visiting (list [typ=type name=(unit term)])
@@ -79,398 +62,17 @@
7962 ^- (each imported @t)
8063 (read-with module name typ ~)
8164::
82−:: When Hoon's expanded type has lost source cases, inspect the exact
83−:: selected local arm. Restrict this fallback to distinct literal head tags
84−:: and proven-safe dependencies, then verify each projected branch again.
85−+$ tagged-case [tag=@ branch=spec]
86−:: Clay and eval expose different versions of the spec union. Inspect help
87−:: and source-location wrappers as nouns before checking their contained spec.
88−++ source-gist-tail
89− |= raw=*
90− ^- (unit *)
91− ?: ?=([%gist [%help *] *] raw) `+.+.raw
92− ?: ?=([%dbug * *] raw) `+.+.raw
93− ~
94−::
95−:: Bound metadata work separately from semantic source-node visits.
96−++ source-unwrap
97− |= [raw=* left=@ud]
98− ^- (unit *)
99− =/ wrapper=(unit *) (source-gist-tail raw)
100− ?~ wrapper `raw
101− ?: =(left 0) ~
102− $(raw u.wrapper, left (dec left))
103−::
104−++ tagged-term
105− |= leaf=spec
106− ^- (unit @)
107− =/ plain=(unit *) (source-unwrap leaf 4)
108− ?~ plain ~
109− ?. ?=([%leaf %tas @] u.plain) ~
110− `+.+.u.plain
111−::
112−++ tagged-head
113− |= branch=spec
114− ^- (unit @)
115− =/ plain=(unit *) (source-unwrap branch 4)
116− ?~ plain ~
117− =. branch ;;(spec u.plain)
118− ?+ branch ~
119− [%bccl *]
120− ?~ t.p.branch ~
121− (tagged-term i.p.branch)
122− ==
123−::
124−++ tagged-cases
125− |= [cases=(list spec) tags=(list @)]
126− ^- (unit (list tagged-case))
127− ?~ cases `~
128− ?: |((has-spec-cell-union i.cases) (has-spec-general-union i.cases)) ~
129− =/ tag=(unit @) (tagged-head i.cases)
130− ?~ tag ~
131− ?: (lien tags |=(x=@ =(x u.tag))) ~
132− =/ rest $(cases t.cases, tags [u.tag tags])
133− ?~ rest ~
134− `[[u.tag i.cases] u.rest]
135−::
136−:: Benign source annotations have different typed representations on
137−:: Clay and under eval. Inspect the wrapper as a noun, and validate the
138−:: contained Hoon before examining an arm.
139−++ source-note-tail
140− |= raw=*
141− ^- (unit *)
142− ?: ?=([%note [%help *] *] raw) `+.+.raw
143− ?: ?=([%dbug * *] raw) `+.+.raw
144− ~
145−::
146−++ source-note-unwrap
147− |= [raw=* left=@ud]
148− ^- (unit *)
149− =/ wrapper=(unit *) (source-note-tail raw)
150− ?~ wrapper `raw
151− ?: =(left 0) ~
152− $(raw u.wrapper, left (dec left))
153−::
154−++ tagged-source-code
155− |= [code=hoon name=term]
156− ^- (unit (list tagged-case))
157− =/ found=(unit spec) (local-mold-spec code name)
158− ?~ found ~
159− =/ plain=(unit *) (source-unwrap u.found 4)
160− ?~ plain ~
161− =/ body=spec ;;(spec u.plain)
162− ?. ?=([%bccn *] body) ~
163− =/ cases=(list spec) p.body
164− ?~ cases ~
165− ?~ t.cases ~
166− (tagged-cases cases ~)
167−::
168−:: Source proof for dependencies of an explicitly tagged union. Only
169−:: simple local molds, standard collections and distinct term enums are
170−:: accepted; computed molds, nested cell unions and cycles fail closed.
171−:: One shared fuel budget bounds repeated visits through acyclic aliases;
172−:: exhaustion or an inherited same-name arm leaves the result unsupported.
173−++ local-arm-source
174− |= [cor=type name=term]
175− ^- (unit hoon)
176− ?. ?=([%core *] cor) ~
177− =/ chapters=(map term tome) q.r.q.cor
178− =/ all=(list [term tome]) ~(tap by chapters)
179− ?: (lien all |=(e=[term tome] &(!=(-.e %$) (chapter-unsafe +.e name)))) ~
180− =/ chapter=(unit tome) (~(get by chapters) %$)
181− ?~ chapter ~
182− (chapter-source u.chapter name)
183−::
184−++ local-mold-spec
185− |= [code=hoon name=term]
186− ^- (unit spec)
187− =/ plain=(unit *) (source-note-unwrap code 4)
188− ?~ plain ~
189− =. code ;;(hoon u.plain)
190− ?+ code ~
191− [%ktcl *]
192− ?. ?=([%name * *] p.code) ~
193− ?. =(name p.p.code) ~
194− `q.p.code
195− ==
196−::
197−++ safe-source-enum
198− |= [cases=(list spec) seen=(list @) fuel=@ud]
199− ^- (unit @ud)
200− ?~ cases `fuel
201− ?: =(fuel 0) ~
202− =/ tag=(unit @) (tagged-term i.cases)
203− ?~ tag ~
204− ?: (lien seen |=(n=@ =(n u.tag))) ~
205− $(cases t.cases, seen [u.tag seen], fuel (dec fuel))
206−::
207−++ safe-source-specs-mode
208− |= [xs=(list spec) cor=type seen=(list term) fuel=@ud allow-nested=?]
209− ^- (unit @ud)
210− ?~ xs `fuel
211− =/ left=(unit @ud) (safe-source-spec-mode i.xs cor seen fuel allow-nested)
212− ?~ left ~
213− $(xs t.xs, fuel u.left)
214−::
215−++ safe-source-name-mode
216− |= [name=term cor=type seen=(list term) fuel=@ud allow-nested=?]
217− ^- (unit @ud)
218− :: Permit a direct root revisit or one proven nested self-revisit.
219− :: Mutual cycles and inherited same-name bindings remain unavailable.
220− ?: (lien seen |=(x=term =(name x)))
221− ?. ?=([%core *] cor) ~
222− ?. (scope-safe p.cor name) ~
223− ?: =(seen ~[name]) `fuel
224− ?. allow-nested ~
225− ?. ?=([* [* ~]] seen) ~
226− ?. =(i.seen name) ~
227− =/ selected=(unit hoon) (local-arm-source cor name)
228− ?~ selected ~
229− =/ cases=(unit (list tagged-case)) (tagged-source-code u.selected name)
230− ?~ cases ~
231− `fuel
232− =/ arm=(unit hoon) (local-arm-source cor name)
233− ?~ arm
234− ?. &(|(=(name %ship) =(name %path)) (scope-safe cor name)) ~
235− `fuel
236− ?. ?=([%core *] cor) ~
237− ?. (scope-safe p.cor name) ~
238− =/ body=(unit spec) (local-mold-spec u.arm name)
239− ?~ body ~
240− (safe-source-spec-mode u.body cor [name seen] fuel allow-nested)
241−::
242−++ safe-source-spec-mode
243− |= [shape=spec cor=type seen=(list term) fuel=@ud allow-nested=?]
244− ^- (unit @ud)
245− =/ plain=(unit *) (source-unwrap shape 4)
246− ?~ plain ~
247− =. shape ;;(spec u.plain)
248− ?: =(fuel 0) ~
249− =. fuel (dec fuel)
250− ?+ shape ~
251− [%base *] ?:(|(?=([%atom *] p.shape) =(%flag p.shape) =(%null p.shape)) `fuel ~)
252− [%leaf *] `fuel
253− [%bcts *] ?@ p.shape $(shape q.shape)
254− ~
255− [%bccl *] (safe-source-specs-mode p.shape cor seen fuel allow-nested)
256− [%bccn *]
257− :: A source proof may cross one named union dependency. Deeper
258− :: named unions stay unsupported to bound recursive reprojection.
259− ?. allow-nested ~
260− ?. ?=([* [* ~]] seen) ~
261− =/ cases=(unit (list tagged-case)) (tagged-cases p.shape ~)
262− ?~ cases ~
263− ?~ u.cases ~
264− ?~ t.u.cases ~
265− (safe-source-tagged-fuel-mode u.cases cor seen fuel allow-nested)
266− [%bcwt *] (safe-source-enum p.shape ~ fuel)
267− [%like *]
268− ?. ?=([@ ~] p.shape) ~
269− ?. ?=(~ q.shape) ~
270− (safe-source-name-mode i.p.shape cor seen fuel allow-nested)
271− [%make *]
272− =/ wing=(unit term) (source-single-wing p.shape)
273− ?~ wing ~
274− =/ n=term u.wing
275− ?. (lien `(list term)`~[%map %set %qeu %list %unit %jar %jug] |=(x=term =(x n))) ~
276− ?. (scope-safe cor n) ~
277− (safe-source-specs-mode q.shape cor seen fuel allow-nested)
278− ==
279−::
280−++ safe-source-tagged-fuel-mode
281− |= [cases=(list tagged-case) cor=type seen=(list term) fuel=@ud allow-nested=?]
282− ^- (unit @ud)
283− ?~ cases `fuel
284− =/ left=(unit @ud) (safe-source-spec-mode branch.i.cases cor seen fuel allow-nested)
285− ?~ left ~
286− $(cases t.cases, fuel u.left)
287−::
288−++ safe-source-name
289− |= [name=term cor=type seen=(list term) fuel=@ud]
290− ^- (unit @ud)
291− (safe-source-name-mode name cor seen fuel &)
292−::
293−++ safe-source-tagged
294− |= [cases=(list tagged-case) cor=type seen=(list term) fuel=@ud]
295− ^- ?
296− ?=(^ (safe-source-tagged-fuel-mode cases cor seen fuel &))
297−::
298−++ tagged-union-fallback
299− |= [module=term name=term cor=type]
300− ^- (unit (each imported @t))
301− ?. ?=([%core *] cor) ~
302− =/ chapters=(map term tome) q.r.q.cor
303− =/ other=(list [term tome]) ~(tap by chapters)
304− ?: (lien other |=(e=[term tome] &(!=(-.e %$) (chapter-unsafe +.e name)))) ~
305− =/ chapter=(unit tome) (~(get by chapters) %$)
306− ?~ chapter ~
307− =/ selected=(unit hoon) (chapter-source u.chapter name)
308− ?~ selected ~
309− =/ cases (tagged-source-code u.selected name)
310− ?~ cases ~
311− :: Preserve the original budget when no nested union recovery is needed.
312− =/ plain=? ?=(^ (safe-source-tagged-fuel-mode u.cases cor ~[name] 4.096 |))
313− ?. |(plain (safe-source-tagged u.cases cor ~[name] 256)) ~
314− =/ tried=(each (list type) tang)
315− (mule |.((turn u.cases |=(c=tagged-case (~(play ut cor) [%kttr branch.c])))))
316− ?. ?=([%& *] tried) ~
317− :: Record the selected hold before projecting branches so an exact
318− :: recursive revisit can retain its independently verified origin.
319− =/ selected-type=(each type tang)
320− (mule |.((~(play ut cor) (ream (cat 3 '*' name)))))
321− ?. ?=([%& *] selected-type) ~
322− =/ projected=(each (list imported) tang)
323− (mule |.((turn p.tried |=(t=type (walk module t catalog ~[[p.selected-type [~ name]]] `cor)))))
324− ?. ?=([%& *] projected) ~
325− ?^ (first-bads p.projected) ~
326− ?. (all-disjoint p.projected) ~
327− =/ xs=(list tagged-case) u.cases
328− =/ ys=(list imported) p.projected
329− |-
330− ?~ xs
331− ?^ ys ~
332− `[%& [%fork (sort p.projected |=(pair=[imported imported] (dor -.pair +.pair)))]]
333− ?~ ys ~
334− ?. ?=([%cell [%atom %tas [~ @]] *] i.ys) ~
335− ?. =(tag.i.xs u.value.head.i.ys) ~
336− $(xs t.xs, ys t.ys)
337−::
33865:: +read-mold-in: accept the /sur core as provenance. The core must be
339−:: built against zuse or validated Ford imports, and its selected arm
340−:: must be this type. Unknown subject shapes fail closed.
66+:: built directly against zuse and its selected arm must be this type;
67+:: imported Ford subjects need a future provenance-aware host.
34168++ read-mold-in
34269 |= [module=term name=term typ=type cor=type]
34370 ^- (each imported @t)
34471 ?. ?=([%core *] cor) [%| 'Hoon module provenance is unavailable']
345− ?: =(cor -:!>(..zuse)) [%| 'Hoon module provenance is unavailable']
346− ?. (scope-safe cor %$) [%| 'Hoon module provenance is unavailable']
347− =/ chapters=(map term tome) q.r.q.cor
348− ?. (lien ~(tap by chapters) |=(entry=[term tome] =((chapter-has +.entry name) [~ &])))
349− [%| (crip "Hoon mold `{(trip name)}` is not declared")]
72+ ?. =(q.q.cor -:!>(..zuse)) [%| 'Hoon module provenance is unavailable']
35073 ?. =(typ (~(play ut cor) (ream (cat 3 '*' name))))
35174 [%| 'Hoon module provenance does not match the selected mold']
352− =/ result (read-with module name typ [~ cor])
353− ?: ?=([%& *] result) result
354− =/ fallback=(each (unit (each imported @t)) tang)
355− (mule |.((tagged-union-fallback module name cor)))
356− ?: ?=(%| -.fallback) result
357− ?~ p.fallback result
358− u.p.fallback
359−::
360−:: +read-named is the source-aware entry point for callers that have
361−:: not selected a Hoon type yet. Check the core and the local arm
362−:: before invoking Hoon's type engine, which otherwise crashes when
363−:: the requested name is absent.
364−++ read-named
365− |= [module=term name=term cor=type]
366− ^- (each imported @t)
367− ?. ?=([%core *] cor) [%| 'Hoon module provenance is unavailable']
368− ?: =(cor -:!>(..zuse)) [%| 'Hoon module provenance is unavailable']
369− ?. (scope-safe cor %$) [%| 'Hoon module provenance is unavailable']
370− =/ chapters=(map term tome) q.r.q.cor
371− ?. (lien ~(tap by chapters) |=(entry=[term tome] =((chapter-has +.entry name) [~ &])))
372− [%| (crip "Hoon mold `{(trip name)}` is not declared")]
373− =/ attempted=(each type tang)
374− (mule |.((~(play ut cor) (ream (cat 3 '*' name)))))
375− ?- attempted
376− [%& *] (read-mold-in module name p.attempted cor)
377− [%| *]
378− =/ lines=wall (zing (turn (flop p.attempted) |=(a=tank (wash [0 80] a))))
379− =/ rev=wall (flop lines)
380− ?~ rev [%| (crip "Hoon mold `{(trip name)}` could not be evaluated")]
381− [%| (crip "Hoon mold `{(trip name)}` could not be evaluated: {i.rev}")]
382− ==
383−::
384−:: A mark door's payload is [sample build-subject]. Its outer sample
385−:: face names the door sample, not the imported mark type. Collection
386−:: lookup for the sample happened against the pre-door build subject.
387−:: Fallback for a mark whose sample is exactly one arm of its only
388−:: Ford-imported /sur core. Source validation remains in read-mold-in.
389−:: Recursive results need a separate mark-origin/interface design.
390−++ mark-has-ref
391− |= node=imported
392− ^- ?
393− ?- node
394− [%ref *] &
395− [%named *] $(node body.node)
396− [%face *] $(node body.node)
397− [%cell *] |($(node head.node) $(node tail.node))
398− [%fork *] (lien cases.node |=(child=imported (mark-has-ref child)))
399− [%apply *] (lien args.node |=(child=imported (mark-has-ref child)))
400− * |
401− ==
402−::
403−++ mark-union-fallback
404− |= [raw=type context=type]
405− ^- (unit (each imported @t))
406− ?. ?=([%cell [%face @ [%core *]] *] context) ~
407− ?. =(q.context -:!>(..zuse)) ~
408− =/ alias=term p.p.context
409− =/ core=type q.p.context
410− ?. ?=([%hold *] raw) ~
411− =/ name=(unit term) (hold-name q.raw)
412− ?~ name ~
413− =/ selected=(each type tang)
414− (mule |.((~(play ut core) (ream (cat 3 '*' u.name)))))
415− ?. ?=([%& *] selected) ~
416− ?. =(p.selected raw) ~
417− =/ result=(each imported @t) (read-mold-in alias u.name raw core)
418− ?. ?=([%& [%fork *]] result) ~
419− ?: (mark-has-ref p.result) ~
420− `result
421−::
422−++ read-mark
423− |= [name=term cor=type]
424− ^- (each imported @t)
425− ?. ?=([%core *] cor) [%| 'Hoon mark provenance is unavailable']
426− ?. ?=([%cell *] p.cor) [%| 'Hoon mark sample is unavailable']
427− ?. =(p.cor q.q.cor) [%| 'Hoon mark provenance is unavailable']
428− ?. (scope-safe q.p.cor %$) [%| 'Hoon mark provenance is unavailable']
429− =/ sample=type p.p.cor
430− =/ raw=type ?:(?=([%face *] sample) q.sample sample)
431− =/ result (read-with name name raw [~ q.p.cor])
432− ?: ?=([%& *] result) result
433− =/ fallback=(each (unit (each imported @t)) tang)
434− (mule |.((mark-union-fallback raw q.p.cor)))
435− ?: ?=(%| -.fallback) result
436− ?~ p.fallback result
437− u.p.fallback
438−::
439−++ read-named-diagnostic
440− |= [module=term name=term cor=type]
441− ^- import-diagnostic
442− =/ result=(each imported @t) (read-named module name cor)
443− ?: ?=(%& -.result) [%ok p.result]
444− ?. ?=([%core *] cor) [%unsupported p.result]
445− ?: =(cor -:!>(..zuse)) [%unsupported p.result]
446− ?. (scope-safe cor %$) [%unsupported p.result]
447− =/ chapters=(map term tome) q.r.q.cor
448− ?. (lien ~(tap by chapters) |=(entry=[term tome] =((chapter-has +.entry name) [~ &])))
449− [%unsupported p.result]
450− =/ selected=(each type tang) (mule |.((~(play ut cor) (ream (cat 3 '*' name)))))
451− ?. ?=(%& -.selected) [%unsupported p.result]
452− =/ again=(each imported tang) (mule |.((walk module p.selected catalog ~ [~ cor])))
453− ?. ?=(%& -.again) [%unsupported p.result]
454− =/ evidence=(unit import-diagnostic) (first-invalid p.again)
455− ?~ evidence [%unsupported p.result]
456− u.evidence
457−::
458−++ read-mark-diagnostic
459− |= [name=term cor=type]
460− ^- import-diagnostic
461− =/ result=(each imported @t) (read-mark name cor)
462− ?: ?=(%& -.result) [%ok p.result]
463− ?. ?=([%core *] cor) [%unsupported p.result]
464− ?. ?=([%cell *] p.cor) [%unsupported p.result]
465− ?. =(p.cor q.q.cor) [%unsupported p.result]
466− ?. (scope-safe q.p.cor %$) [%unsupported p.result]
467− =/ sample=type p.p.cor
468− =/ raw=type ?:(?=([%face *] sample) q.sample sample)
469− =/ again=(each imported tang) (mule |.((walk name raw catalog ~ [~ q.p.cor])))
470− ?. ?=(%& -.again) [%unsupported p.result]
471− =/ evidence=(unit import-diagnostic) (first-invalid p.again)
472− ?~ evidence [%unsupported p.result]
473− u.evidence
75+ (read-with module name typ [~ cor])
47476::
47577++ read-with
47678 |= [module=term name=term typ=type context=(unit type)]
@@ -500,11 +102,6 @@
500102 =/ w=wing p.p.q.p.body
501103 ?: =(w ~[%jar]) [~ %jar]
502104 ?: =(w ~[%jug]) [~ %jug]
503− ?: =(w ~[%map]) [~ %map]
504− ?: =(w ~[%set]) [~ %set]
505− ?: =(w ~[%qeu]) [~ %qeu]
506− ?: =(w ~[%list]) [~ %list]
507− ?: =(w ~[%unit]) [~ %unit]
508105 ~
509106::
510107++ hold-alias
@@ -515,139 +112,8 @@
515112::
516113:: Reconcile source aliases with the expanded type in corresponding
517114:: cells and fields. Return an error unless every alias is accounted for.
518−++ recover-spec
519− |= [src=spec out=imported]
520− ^- (each imported @t)
521− ?. (has-hidden-alias src) [%& out]
522− ?. ?=([%make [%wing *] *] src)
523− [%| 'nested collection arguments need source-aware import']
524− =/ w=wing p.p.src
525− =/ name=term
526− ?: =(w ~[%jar]) %jar
527− ?: =(w ~[%jug]) %jug
528− ?: =(w ~[%map]) %map
529− ?: =(w ~[%set]) %set
530− ?: =(w ~[%qeu]) %qeu
531− ?: =(w ~[%list]) %list
532− ?: =(w ~[%unit]) %unit
533− %$
534− ?: =(%$ name) [%| 'nested collection arguments need source-aware import']
535− =/ original=(each imported @t)
536− ?: |(=(%jar name) =(%jug name))
537− ?. ?=([%apply %map [* [%apply * [* ~]] ~]] out)
538− [%| 'nested collection arguments need source-aware import']
539− =/ inn i.args.i.t.args.out
540− ?. |(&(?=(%jar name) ?=(%list name.i.t.args.out)) &(?=(%jug name) ?=(%set name.i.t.args.out)))
541− [%| 'nested collection arguments need source-aware import']
542− [%& [%apply name ~[i.args.out inn]]]
543− [%& out]
544− ?. ?=([%& *] original) original
545− =/ fixed=imported p.original
546− ?. ?=([%apply *] fixed) [%| 'nested collection arguments need source-aware import']
547− ?. =(name name.fixed) [%| 'nested collection arguments need source-aware import']
548− =/ args (recover-specs q.src args.fixed)
549− ?- args
550− [%| *] args
551− [%& *] [%& [%apply name p.args]]
552− ==
553−::
554−++ recover-specs
555− |= [src=(list spec) args=(list imported)]
556− ^- (each (list imported) @t)
557− ?~ src ?~(args [%& ~] [%| 'collection argument count mismatch'])
558− ?~ args [%| 'collection argument count mismatch']
559− =/ first (recover-spec i.src i.args)
560− ?- first
561− [%| *] [%| p.first]
562− [%& *]
563− =/ rest $(src t.src, args t.args)
564− ?- rest
565− [%| *] rest
566− [%& *] [%& [p.first p.rest]]
567− ==
568− ==
569−::
570−++ recover-hoons
571− |= [src=(list hoon) args=(list imported)]
572− ^- (each (list imported) @t)
573− ?~ src ?~(args [%& ~] [%| 'collection argument count mismatch'])
574− ?~ args [%| 'collection argument count mismatch']
575− =/ first=(each imported @t)
576− ?. (has-hidden-alias i.src) [%& i.args]
577− ?. ?=([%ktcl *] i.src) [%| 'nested collection arguments need source-aware import']
578− (recover-spec p.i.src i.args)
579− ?- first
580− [%| *] [%| p.first]
581− [%& *]
582− =/ rest $(src t.src, args t.args)
583− ?- rest
584− [%| *] rest
585− [%& *] [%& [p.first p.rest]]
586− ==
587− ==
588−::
589−:: Replace direct mop expressions in records with a simple placeholder;
590−:: recover-alias restores each from its original source specs afterward.
591−:: Other fields must be fixed atom molds or standard collections with
592−:: statically fixed atom arguments. A dependent mold could otherwise
593−:: change when a field changes. All collection names are checked below.
594−++ static-spec
595− |= shape=spec
596− ^- ?
597− ?+ shape |
598− [%base *] ?=([%atom *] p.shape)
599− [%make *]
600− ?. ?=([%wing *] p.shape) |
601− =/ w=wing p.p.shape
602− ?. |(=(w ~[%map]) =(w ~[%set]) =(w ~[%qeu]) =(w ~[%list]) =(w ~[%unit]) =(w ~[%jar]) =(w ~[%jug])) |
603− (levy q.shape |=(a=spec (static-spec a)))
604− ==
605−::
606−++ static-arguments
607− |= args=(list hoon)
608− ^- ?
609− ?~ args &
610− ?. ?=([%ktcl *] i.args) |
611− ?. (static-spec p.i.args) |
612− $(args t.args)
613−::
614−++ static-collection
615− |= src=hoon
616− ^- ?
617− =/ alias (source-alias src)
618− ?~ alias |
619− ?> ?=([%cncl *] src)
620− ?> ?=([%tsgr *] p.src)
621− ?> ?=([%cncl *] q.p.src)
622− (static-arguments q.q.p.src)
623−::
624−++ patchable-mop-record
625− |= src=hoon
626− ^- ?
627− ?^ -.src &($(src -.src) $(src +.src))
628− ?+ src |
629− [%note *] $(src q.src)
630− [%ktts *] $(src q.src)
631− [%ktls *] ?=([%sand *] p.src)
632− [%cncl *]
633− =/ specs (mop-specs src)
634− ?~ specs (static-collection src)
635− &(?=([%base [%atom *]] key.u.specs) ?=([%base [%atom *]] value.u.specs))
636− ==
637−::
638−++ patch-mops
639− |= src=hoon
640− ^- hoon
641− ?^ -.src [$(src -.src) $(src +.src)]
642− ?+ src src
643− [%note *] src(q $(src q.src))
644− [%ktts *] src(q $(src q.src))
645− [%cncl *] ?: ?=(^ (mop-specs src)) (ream '*@t')
646− src
647− ==
648−::
649115++ recover-alias
650− |= [src=hoon out=imported subject=type module=term sig=signatures seen=visiting context=(unit type)]
116+ |= [src=hoon out=imported]
651117 ^- (each imported @t)
652118 ?. (has-hidden-alias src) [%& out]
653119 ?^ -.src
@@ -673,41 +139,27 @@
673139 [%& *] [%& [%face name.out p.child]]
674140 ==
675141 [%cncl *]
676− =/ mop=(unit [key=spec value=spec]) (mop-specs src)
677− ?^ mop
678− =/ attempt=(each [type type] tang)
679− (mule |.([(~(play ut subject) [%kttr key.u.mop]) (~(play ut subject) [%kttr value.u.mop])]))
680− ?- attempt
681− [%| *] [%| 'a nested Hoon mop needs source-aware import']
682− [%& *]
683− =/ key (walk module -.p.attempt sig seen context)
684− =/ val (walk module +.p.attempt sig seen context)
685− [%& [%apply %mop ~[key val]]]
686− ==
687142 =/ alias (source-alias src)
688143 ?~ alias [%| 'a nested collection alias needs source-aware import']
689− =/ original=(each imported @t)
690− ?: |(=(%jar u.alias) =(%jug u.alias))
691− ?. ?=([%apply %map [* [%apply * [* ~]] ~]] out)
692− [%| 'a nested collection alias needs source-aware import']
693− =/ inner i.args.i.t.args.out
694− ?. |(&(?=(%jar u.alias) ?=(%list name.i.t.args.out)) &(?=(%jug u.alias) ?=(%set name.i.t.args.out)))
695− [%| 'a nested collection alias needs source-aware import']
696− [%& [%apply u.alias ~[i.args.out inner]]]
697− [%& out]
698− ?. ?=([%& *] original) original
699− =/ fixed=imported p.original
700− ?. ?=([%apply *] fixed) [%| 'a nested collection alias needs source-aware import']
701− ?. =(name.fixed u.alias) [%| 'a nested collection alias needs source-aware import']
702− ?> ?=([%tsgr *] p.src)
703− ?> ?=([%cncl *] q.p.src)
704− =/ args (recover-hoons q.q.p.src args.fixed)
705− ?- args
706− [%| *] [%| p.args]
707− [%& *] [%& [%apply u.alias p.args]]
708− ==
144+ ?: (gth (alias-count src) 1)
145+ [%| 'nested collection arguments need source-aware import']
146+ ?. ?=([%apply %map [* [%apply * [* ~]] ~]] out)
147+ [%| 'a nested collection alias needs source-aware import']
148+ =/ inner i.args.i.t.args.out
149+ ?: &(?=(%jar u.alias) ?=(%list name.i.t.args.out))
150+ [%& [%apply %jar ~[i.args.out inner]]]
151+ ?: &(?=(%jug u.alias) ?=(%set name.i.t.args.out))
152+ [%& [%apply %jug ~[i.args.out inner]]]
153+ [%| 'a nested collection alias needs source-aware import']
709154 ==
710155::
156+++ alias-count
157+ |= h=*
158+ ^- @ud
159+ ?: |(=(h [%wing ~[%jar]]) =(h [%wing ~[%jug]]) =(h [%wing ~[%mop]])) 1
160+ ?@ h 0
161+ (add $(h -.h) $(h +.h))
162+::
711163++ has-hidden-alias
712164 |= h=*
713165 ^- ?
@@ -717,69 +169,15 @@
717169::
718170:: $^ is lowered to a conditional by Hoon's parser; conservatively
719171:: reject its distinctive test until the original branches have been
720−:: checked for disjointness. The tested axis follows the field path;
721−:: tracking that path distinguishes a nested $^ from an ordinary $@.
722−:: Other Hoon code can look the same, so some valid molds may be rejected.
723−:: Collection argument syntax retains $^ as %bckt, before Hoon
724−:: reduces the resulting type and can collapse overlapping cases. Until
725−:: argument-level disjointness is checked, reject those source forms.
726−++ has-spec-cell-union
727− |= h=*
728− ^- ?
729− ?@ h |
730− ?: ?=([%bckt ^ ^] h) &
731− |($(h -.h) $(h +.h))
732−::
733−:: The Grammar's disjointness rule applies to imported $% and $? too;
734−:: @iko confirmed the rule for imported unions on 2026-10-30.
735−++ has-spec-general-union
736− |= h=*
737− ^- ?
738− ?@ h |
739− ?: ?=([%bcwt [^ [^ *]]] h) &
740− ?: ?=([%bccn [^ [^ *]]] h) &
741− |($(h -.h) $(h +.h))
742−::
743−++ has-fits-union
744− |= h=*
745− ^- ?
746− ?@ h |
747− ?: ?=([%wtcl [%fits *] * *] h) &
748− |($(h -.h) $(h +.h))
749−::
750−++ fits-union-at
751− |= [h=hoon axis=@ud]
752− ^- ?
753− ?. ?=([%fits *] h) |
754− |(=(q.h ~[[%.y axis]]) =(q.h ~[[%.y (mul 2 axis)]]))
755−::
172+:: checked for disjointness. Other Hoon code can produce the same test,
173+:: so this partial reader may reject some supported molds too.
756174++ has-cell-union
757− |= h=hoon
758− ^- ?
759− ?. ?=([%tsls [%note * *] *] h) (has-cell-union-any h)
760− (has-cell-union-at q.p.h 6)
761−::
762−++ has-cell-union-any
763175 |= h=*
764176 ^- ?
765177 ?@ h |
766178 ?: =(h [%dtwt [%$ 12]]) &
767179 |($(h -.h) $(h +.h))
768180::
769−++ has-cell-union-at
770− |= [h=hoon axis=@ud]
771− ^- ?
772− ?^ -.h
773− |($(h -.h, axis (mul 2 axis)) $(h +.h, axis (add 1 (mul 2 axis))))
774− ?+ h (has-cell-union-any h)
775− [%note *] $(h q.h)
776− [%dbug *] $(h q.h)
777− [%ktts *] $(h q.h)
778− [%wtcl *]
779− ?: =(p.h [%dtwt [%$ (mul 2 axis)]]) &
780− |($(h q.h) $(h r.h))
781− ==
782−::
783181++ cell-branches
784182 |= h=type
785183 ^- (unit [left=type right=type])
@@ -800,119 +198,11 @@
800198 [%| *] ~
801199 ==
802200::
803−:: A static branch contains atom molds, exact tag constants and cells.
804−:: A tag shape must compare the current axis to the same atom it returns.
805−++ fixed-cell-mold
806− |= [h=hoon axis=@ud]
807− ^- ?
808− ?^ -.h
809− &($(h -.h, axis (mul 2 axis)) $(h +.h, axis (add 1 (mul 2 axis))))
810− ?+ h |
811− [%note *] $(h q.h)
812− [%dbug *] $(h q.h)
813− [%ktts *] $(h q.h)
814− [%ktls *] ?=([%sand *] p.h)
815− [%cncl *]
816− ?: =(h [%cncl [%tsgr [%wing ~[[%.y 7]]] [%wing ~[%path]]] ~[[%$ axis]]]) &
817− (static-collection h)
818− [%wtcl *]
819− ?. (fits-union-at p.h axis) |
820− &($(h q.h) $(h r.h))
821− [%wtgr *]
822− ?: =(h [%wtgr [%dtts [%bust %noun] [%$ axis]] [%rock %n 0]]) &
823− ?. ?=([%dtts [%$ *] [%rock %$ *]] p.h) |
824− ?. ?=([%rock %tas *] q.h) |
825− ?^ q.q.h |
826− &(=(p.p.p.h axis) =(q.q.p.h q.q.h))
827− ==
828−::
829−:: Return two source records with a single $^ replaced by each branch.
830−++ split-cell-record
831− |= [h=hoon axis=@ud]
832− ^- (unit [one=hoon two=hoon])
833− ?^ -.h
834− =/ left $(h -.h, axis (mul 2 axis))
835− =/ right $(h +.h, axis (add 1 (mul 2 axis)))
836− ?^ left
837− ?^ right ~
838− ?. (fixed-cell-mold +.h (add 1 (mul 2 axis))) ~
839− [~ [[one.u.left +.h] [two.u.left +.h]]]
840− ?~ right ~
841− ?. (fixed-cell-mold -.h (mul 2 axis)) ~
842− [~ [[-.h one.u.right] [-.h two.u.right]]]
843− ?+ h ~
844− [%note *]
845− =/ out $(h q.h)
846− ?~ out ~
847− [~ [h(q one.u.out) h(q two.u.out)]]
848− [%dbug *]
849− =/ out $(h q.h)
850− ?~ out ~
851− [~ [h(q one.u.out) h(q two.u.out)]]
852− [%ktts *]
853− =/ out $(h q.h)
854− ?~ out ~
855− [~ [h(q one.u.out) h(q two.u.out)]]
856− [%wtcl *]
857− ?. |(=(p.h [%dtwt [%$ (mul 2 axis)]]) (fits-union-at p.h axis)) ~
858− ?. &((fixed-cell-mold q.h axis) (fixed-cell-mold r.h axis)) ~
859− [~ [q.h r.h]]
860− ==
861−::
862−:: Reassemble a split source record. Non-union fields must have remained
863−:: unchanged; the replaced field must have provably disjoint branches.
864−++ merge-cell-record
865− |= [h=hoon axis=@ud a=imported b=imported]
866− ^- (each imported @t)
867− ?^ -.h
868− ?. &(?=([%cell *] a) ?=([%cell *] b))
869− [%| 'a nested Hoon $^ union needs a source-level disjointness check']
870− =/ left $(h -.h, axis (mul 2 axis), a head.a, b head.b)
871− ?. ?=([%& *] left) left
872− =/ right $(h +.h, axis (add 1 (mul 2 axis)), a tail.a, b tail.b)
873− ?. ?=([%& *] right) right
874− [%& [%cell p.left p.right]]
875− ?+ h
876− ?: =(a b) [%& a]
877− [%| 'a nested Hoon $^ union needs a source-level disjointness check']
878− [%note *] $(h q.h)
879− [%dbug *] $(h q.h)
880− [%ktts *]
881− ?. &(?=([%face *] a) ?=([%face *] b))
882− [%| 'a nested Hoon $^ union needs a source-level disjointness check']
883− ?. &(=(p.h name.a) =(p.h name.b))
884− [%| 'a nested Hoon $^ union needs a source-level disjointness check']
885− =/ child $(h q.h, a body.a, b body.b)
886− ?. ?=([%& *] child) child
887− [%& [%face name.a p.child]]
888− [%wtcl *]
889− ?. |(=(p.h [%dtwt [%$ (mul 2 axis)]]) (fits-union-at p.h axis))
890− [%| 'a Hoon union needs a source-level disjointness check']
891− ?. (disjoint a b)
892− ?: ?=([%fits *] p.h) [%| 'Hoon union disjointness could not be verified']
893− [%| 'Hoon $^ union disjointness could not be verified']
894− [%& [%fork (sort (weld (union-cases a) (union-cases b)) |=(pair=[imported imported] (dor -.pair +.pair)))]]
895− ==
896−++ union-cases
897− |= a=imported
898− ^- (list imported)
899− ?. ?=([%fork *] a) ~[a]
900− (zing (turn cases.a |=(item=imported (union-cases item))))
901−::
902−++ all-disjoint
903− |= cases=(list imported)
904− ^- ?
905− ?~ cases &
906− ?. (levy t.cases |=(item=imported (disjoint i.cases item))) |
907− $(cases t.cases)
908−::
909201++ disjoint
910202 |= [a=imported b=imported]
911203 ^- ?
912204 ?: ?=([%face *] a) $(a body.a)
913205 ?: ?=([%face *] b) $(b body.b)
914− ?: ?=([%named *] a) $(a body.a)
915− ?: ?=([%named *] b) $(b body.b)
916206 ?: ?=([%fork *] a)
917207 (levy cases.a |=(item=imported (disjoint item b)))
918208 ?: ?=([%fork *] b)
@@ -967,32 +257,6 @@
967257 ?. (arm-map-valid +.chapter) ~
968258 [~ (arm-map-has +.chapter target)]
969259::
970−:: Return a unique source arm from either validated tome wrapper. Walk
971−:: the noun map rather than relying on fields that differ on Clay.
972−++ arm-map-sources
973− |= [m=* target=term]
974− ^- (list hoon)
975− ?@ m ~
976− =/ kv=* -.m
977− =/ children=* +.m
978− =/ found=(list hoon) ?:(=(-.kv target) ~[;;(hoon +.kv)] ~)
979− (weld found (weld $(m -.children) $(m +.children)))
980−::
981−++ chapter-source
982− |= [chapter=* target=term]
983− ^- (unit hoon)
984− ?: (arm-map-valid chapter) (unique-arm-source chapter target)
985− ?@ chapter ~
986− ?. (arm-map-valid +.chapter) ~
987− (unique-arm-source +.chapter target)
988−::
989−++ unique-arm-source
990− |= [arms=* target=term]
991− ^- (unit hoon)
992− =/ sources=(list hoon) (arm-map-sources arms target)
993− ?. ?=([* ~] sources) ~
994− `i.sources
995−::
996260++ chapter-unsafe
997261 |= [chapter=* target=term]
998262 ^- ?
@@ -1000,33 +264,16 @@
1000264 ?~ has &
1001265 u.has
1002266::
1003−:: Verify every lexical subject layer until the exact standard subject.
1004−:: Refuse unknown forms, malformed chapters, mismatched core payloads,
1005−:: faces that shadow the selected name, and imported arms of that name.
1006−++ scope-safe
1007− |= [scope=type target=term]
1008− ^- ?
1009− ?: =(scope -:!>(..zuse)) &
1010− ?- scope
1011− [%cell *]
1012− ?. ?=([%face *] p.scope) |
1013− ?^ p.p.scope |
1014− ?: =(p.p.scope target) |
1015− ?. ?=([%core *] q.p.scope) |
1016− &($(scope q.p.scope) $(scope q.scope))
1017− [%core *]
1018− ?. =(p.scope q.q.scope) |
1019− =/ chapters=(map term tome) q.r.q.scope
1020− ?: (lien ~(tap by chapters) |=(entry=[term tome] (chapter-unsafe +.entry target))) |
1021− $(scope p.scope)
1022− * |
1023− ==
1024−::
1025267++ alias-safe
1026268 |= [context=(unit type) target=term]
1027269 ^- ?
1028270 ?~ context |
1029− (scope-safe u.context target)
271+ =/ cor=type u.context
272+ ?. ?=([%core *] cor) |
273+ ?. =(q.q.cor -:!>(..zuse)) |
274+ =/ chapters=(map term tome) q.r.q.cor
275+ ?: (lien ~(tap by chapters) |=(entry=[term tome] (chapter-unsafe +.entry target))) |
276+ &
1030277::
1031278++ source-uses
1032279 |= [src=* target=term]
@@ -1035,79 +282,6 @@
1035282 ?@ src |
1036283 |($(src -.src) $(src +.src))
1037284::
1038−:: Clay can wrap each call component in source-location metadata.
1039−:: Peel only those wrappers; malformed casts are trapped by +mop-specs.
1040−++ mop-source-code
1041− |= code=hoon
1042− ^- hoon
1043− =/ plain=(unit *) (source-unwrap code 4)
1044− ?~ plain !!
1045− ;;(hoon u.plain)
1046−::
1047−++ source-single-wing
1048− |= raw=*
1049− ^- (unit term)
1050− =/ plain=(unit *) (source-unwrap raw 4)
1051− ?~ plain ~
1052− ?. ?=([%wing [@ ~]] u.plain) ~
1053− `;;(term -.+.u.plain)
1054−::
1055−++ mop-specs-raw
1056− |= body=hoon
1057− ^- (unit [key=spec value=spec])
1058− =. body (mop-source-code body)
1059− ?. ?=([%cncl *] body) ~
1060− ?. ?=([%tsgr *] p.body) ~
1061− =/ b=hoon (mop-source-code q.p.body)
1062− ?. ?=([%cncl *] b) ~
1063− =/ call=hoon (mop-source-code p.b)
1064− ?. ?=([%cncl *] call) ~
1065− =/ w=(unit term) (source-single-wing p.call)
1066− ?~ w ~
1067− ?. =(u.w %mop) ~
1068− =/ raw=* q.call
1069− =/ wings=(unit [key=spec value=spec])
1070− ?. ?=([* [* ~]] raw) ~
1071− =/ a=(unit term) (source-single-wing -.raw)
1072− =/ b=(unit term) (source-single-wing -.+.raw)
1073− ?~ a ~
1074− ?~ b ~
1075− [~ [[%like ~[u.a] ~] [%like ~[u.b] ~]]]
1076− ?^ wings wings
1077− =/ specs=(list spec) ;;((list spec) raw)
1078− ?. ?=([* [* ~]] specs) ~
1079− [~ [i.specs i.t.specs]]
1080−::
1081−++ mop-specs
1082− |= body=hoon
1083− ^- (unit [key=spec value=spec])
1084− =/ attempt=(each (unit [key=spec value=spec]) tang)
1085− (mule |.((mop-specs-raw body)))
1086− ?- attempt
1087− [%& *] p.attempt
1088− [%| *] ~
1089− ==
1090−::
1091−++ mop-arguments-raw
1092− |= h=type
1093− ^- (unit [key=type value=type])
1094− ?. ?=([%hold *] h) ~
1095− =/ original=hoon q.h
1096− ?. ?=([%tsls [%note * *] *] original) ~
1097− =/ specs (mop-specs q.p.original)
1098− ?~ specs ~
1099− [~ [(~(play ut p.h) [%kttr key.u.specs]) (~(play ut p.h) [%kttr value.u.specs])]]
1100−::
1101−++ mop-arguments
1102− |= h=type
1103− ^- (unit [key=type value=type])
1104− =/ attempt=(each (unit [key=type value=type]) tang)
1105− (mule |.((mop-arguments-raw h)))
1106− ?- attempt
1107− [%& *] p.attempt
1108− [%| *] ~
1109− ==
1110−::
1111285++ match-signature
1112286 |= [h=hoon sig=signatures]
1113287 ^- (unit term)
@@ -1122,211 +296,6 @@
1122296 ?: =(typ typ.i.seen) [~ name.i.seen]
1123297 $(seen t.seen)
1124298::
1125−:: Find the source module for an exact recursive hold by evaluating
1126−:: locally declared arms of each validated core in the subject. An
1127−:: unlabelled core, failed evaluation, or multiple labels is ambiguous.
1128−++ origin-candidates
1129− |= [scope=type label=(unit term) name=term typ=type]
1130− ^- (list (unit term))
1131− ?: =(scope -:!>(..zuse)) ~
1132− ?- scope
1133− [%cell *]
1134− ?. ?=([%face *] p.scope) ~[~]
1135− ?^ p.p.scope ~[~]
1136− %+ weld
1137− $(scope q.p.scope, label [~ p.p.scope])
1138− $(scope q.scope, label ~)
1139− [%core *]
1140− =/ chapters=(map term tome) q.r.q.scope
1141− =/ present=? (lien ~(tap by chapters) |=(entry=[term tome] =((chapter-has +.entry name) [~ &])))
1142− =/ own=(list (unit term))
1143− ?. present ~
1144− =/ trial=(each type tang) (mule |.((~(play ut scope) (ream (cat 3 '*' name)))))
1145− ?- trial
1146− [%| *] ~[~]
1147− [%& *] ?: =(p.trial typ) ~[label]
1148− ~
1149− ==
1150− (weld own $(scope p.scope, label ~))
1151− * ~[~]
1152− ==
1153−::
1154−++ ref-origin
1155− |= [module=term name=term typ=type context=(unit type)]
1156− ^- (unit term)
1157− ?~ context ~
1158− =/ found (origin-candidates u.context [~ module] name typ)
1159− ?~ found ~
1160− ?~ i.found ~
1161− =/ choice=term u.i.found
1162− =/ same
1163− |= item=(unit term)
1164− ^- ?
1165− ?~ item |
1166− =(u.item choice)
1167− ?. (levy t.found same) ~
1168− [~ choice]
1169−::
1170−::
1171−:: A collection case is independent of the subject only when its
1172−:: original spec uses literal atoms, tags and finite record structure.
1173−++ static-union-spec
1174− |= s=spec
1175− ^- ?
1176− ?+ s |
1177− [%base *] ?=([%atom *] p.s)
1178− [%leaf *] &
1179− [%bcts *] ?@ p.s $(s q.s)
1180− |
1181− [%bccl *] (static-union-specs p.s)
1182− ==
1183−::
1184−++ static-union-specs
1185− |= parts=(list spec)
1186− ^- ?
1187− ?~ parts &
1188− &((static-union-spec i.parts) $(parts t.parts))
1189−::
1190−++ union-spec-parts
1191− |= s=spec
1192− ^- (unit (list spec))
1193− ?+ s ~
1194− [%bcwt *] [~ p.s]
1195− [%bccn *] [~ p.s]
1196− [%bckt *] [~ ~[p.s q.s]]
1197− ==
1198−::
1199−:: Select one direct union argument, replacing exactly that spec with
1200−:: @t. The other arguments must be static and cannot contain unions.
1201−++ safe-union-parts
1202− |= cases=(list spec)
1203− ^- ?
1204− ?~ cases |
1205− ?~ t.cases |
1206− =/ rest=(list spec) t.cases
1207− &((static-union-spec i.cases) (levy rest |=(part=spec (static-union-spec part))))
1208−::
1209−++ split-union-arguments
1210− |= [args=(list hoon) index=@ud]
1211− ^- (unit [args=(list hoon) cases=(list spec) index=@ud])
1212− ?~ args ~
1213− ?. ?=([%ktcl *] i.args) ~
1214− =/ cases (union-spec-parts p.i.args)
1215− ?^ cases
1216− ?. (safe-union-parts u.cases) ~
1217− ?. (static-arguments t.args) ~
1218− [~ [[[%ktcl [%base [%atom %t]]] t.args] u.cases index]]
1219− ?. (static-spec p.i.args) ~
1220− =/ rest $(args t.args, index +(index))
1221− ?~ rest ~
1222− [~ [[i.args args.u.rest] cases.u.rest index.u.rest]]
1223−::
1224−++ replace-union-argument
1225− |= [args=(list imported) index=@ud union=imported]
1226− ^- (unit (list imported))
1227− ?~ args ~
1228− ?: =(index 0)
1229− ?. =([%atom %t ~] i.args) ~
1230− [~ [union t.args]]
1231− =/ rest $(args t.args, index (dec index))
1232− ?~ rest ~
1233− [~ [i.args u.rest]]
1234−::
1235−:: Accept only the compiler's direct collection call wrapper.
1236−++ direct-collection-source
1237− |= [body=hoon original=hoon]
1238− ^- ?
1239− ?. ?=([%cncl [%tsgr * [%cncl *]] *] body) |
1240− ?. =(p.p.body [%wing ~[[%.y 7]]]) |
1241− ?. =(q.body ~[[%$ 6]]) |
1242− ?. ?=([%tsls * *] original) |
1243− =(q.original [%tsls [%dtts [%$ 14] [%$ 2]] [%$ 6]])
1244−::
1245−++ collection-union
1246− |= [typ=type module=term sig=signatures seen=visiting context=(unit type)]
1247− ^- imported
1248− ?. ?=([%hold *] typ) [%bad 'a Hoon union needs a source-level disjointness check']
1249− =/ is-cell=? (has-spec-cell-union q.typ)
1250− =/ unsupported=@t
1251− ?: is-cell 'a Hoon $^ union needs a source-level disjointness check'
1252− 'a Hoon union needs a source-level disjointness check'
1253− =/ original=hoon q.typ
1254− ?. ?=([%tsls [%note * *] *] original) [%bad unsupported]
1255− =/ body=hoon q.p.original
1256− =/ alias (source-alias body)
1257− ?~ alias [%bad unsupported]
1258− ?. (alias-safe context u.alias) [%bad 'Hoon collection provenance is unavailable or shadowed']
1259− =/ names=(list term) ~[%map %set %qeu %list %unit %jar %jug]
1260− ?: (lien names |=(n=term &((source-uses body n) !(alias-safe context n))))
1261− [%bad 'Hoon collection provenance is unavailable or shadowed']
1262− ?. (direct-collection-source body original) [%bad unsupported]
1263− ?> ?=([%cncl [%tsgr * [%cncl *]] *] body)
1264− =/ split (split-union-arguments q.q.p.body 0)
1265− ?~ split [%bad unsupported]
1266− =/ tried=(each (list type) tang)
1267− (mule |.((turn cases.u.split |=(s=spec (~(play ut p.typ) [%kttr s])))))
1268− ?. ?=([%& *] tried) [%bad unsupported]
1269− =/ cases=(list imported)
1270− (turn p.tried |=(t=type (walk module t sig seen context)))
1271− =/ err (first-bads cases)
1272− ?^ err [%bad u.err]
1273− ?. (all-disjoint cases)
1274− [%bad ?:(is-cell 'Hoon $^ union disjointness could not be verified' 'Hoon union disjointness could not be verified')]
1275− =/ rewritten=hoon original(q.p body(q.q.p args.u.split))
1276− =/ attempt=(each type tang) (mule |.((~(play ut p.typ) rewritten)))
1277− ?. ?=([%& *] attempt) [%bad unsupported]
1278− =/ out=imported (walk module p.attempt sig seen context)
1279− ?. ?=([%apply *] out) [%bad unsupported]
1280− ?. =(name.out u.alias) [%bad unsupported]
1281− =/ replacement=imported
1282− [%fork (sort cases |=(pair=[imported imported] (dor -.pair +.pair)))]
1283− =/ args (replace-union-argument args.out index.u.split replacement)
1284− ?~ args [%bad unsupported]
1285− [%apply name.out u.args]
1286−::
1287−:: A nested named tagged union may be recovered only if its hold is
1288−:: exactly the selected arm of this core. Provenance and all original
1289−:: source cases are checked by the same fallback as a top-level arm.
1290−++ nested-tagged-union
1291− |= [module=term typ=type context=(unit type)]
1292− ^- (unit imported)
1293− ?~ context ~
1294− ?. ?=([%core *] u.context) ~
1295− ?. ?=([%hold *] typ) ~
1296− =/ n=(unit term) (hold-name q.typ)
1297− ?~ n ~
1298− :: The outer proof has a shared budget. Bound each nested re-proof as
1299− :: well, so rebuilding a shared source DAG cannot grow without limit.
1300− =/ source=(unit hoon) (local-arm-source u.context u.n)
1301− ?~ source ~
1302− =/ cases=(unit (list tagged-case)) (tagged-source-code u.source u.n)
1303− ?~ cases ~
1304− ?. (safe-source-tagged u.cases u.context ~[u.n] 256) ~
1305− =/ selected=(each type tang)
1306− (mule |.((~(play ut u.context) (ream (cat 3 '*' u.n)))))
1307− ?. ?=([%& *] selected) ~
1308− ?. =(p.selected typ) ~
1309− =/ attempt=(each (unit (each imported @t)) tang)
1310− (mule |.((tagged-union-fallback module u.n u.context)))
1311− ?. ?=([%& *] attempt) ~
1312− ?~ p.attempt ~
1313− ?. ?=([%& [%fork *]] u.p.attempt) ~
1314− `p.u.p.attempt
1315−::
1316−:: Keep the proven owner boundary when a nested union refers to itself.
1317−++ contains-named-ref
1318− |= [node=imported module=term name=term]
1319− ^- ?
1320− ?- node
1321− [%ref *] &(=(module module.node) =(name name.node))
1322− [%named *] |
1323− [%face *] $(node body.node)
1324− [%cell *] |($(node head.node) $(node tail.node))
1325− [%fork *] (lien cases.node |=(child=imported (contains-named-ref child module name)))
1326− [%apply *] (lien args.node |=(child=imported (contains-named-ref child module name)))
1327− * |
1328− ==
1329−::
1330299++ walk
1331300 |= [module=term typ=type sig=signatures seen=visiting context=(unit type)]
1332301 ^- imported
@@ -1335,38 +304,19 @@
1335304 %void [%void ~]
1336305 [%atom *]
1337306 ?: |(=('s' (cut 3 [0 1] p.typ)) =('r' (cut 3 [0 1] p.typ)))
1338− [%invalid %aura 'signed and float auras cannot be imported']
307+ [%bad 'signed and float auras cannot be imported']
1339308 [%atom p.typ q.typ]
1340309 [%cell *] [%cell $(typ p.typ) $(typ q.typ)]
1341− [%core *] [%invalid %core 'cores and gates cannot be imported']
310+ [%core *] [%bad 'cores and gates cannot be imported']
1342311 [%face *]
1343312 ?@ p.typ [%face p.typ $(typ q.typ)]
1344313 [%bad 'a complex Hoon face needs translation']
1345314 [%fork *]
1346315 =/ cases=(list imported)
1347316 (turn ~(tap in:..zuse p.typ) |=(t=type ^$(typ t)))
1348− =/ err (first-bads cases)
1349− ?^ err [%bad u.err]
1350− ?. (all-disjoint cases) [%bad 'Hoon union disjointness could not be verified']
1351317 [%fork (sort cases |=(pair=[imported imported] (dor -.pair +.pair)))]
1352318 [%hint *] $(typ q.typ)
1353319 [%hold *]
1354− =/ prior=(unit (unit term)) (find-seen typ seen)
1355− ?^ prior
1356− ?~ u.prior [%bad 'an anonymous recursive Hoon mold cannot be named']
1357− =/ origin (ref-origin module u.u.prior typ context)
1358− ?~ origin [%bad 'a recursive Hoon mold needs unambiguous source provenance']
1359− [%ref u.origin u.u.prior]
1360− =/ nested=(unit imported) (nested-tagged-union module typ context)
1361− ?^ nested
1362− ?: ?=(~ seen) u.nested
1363− =/ name=(unit term) (hold-name q.typ)
1364− ?~ name u.nested
1365− ?. (contains-named-ref u.nested module u.name) u.nested
1366− [%named module u.name u.nested]
1367− ?: &(?=([%tsls [%note * *] *] q.typ) |((has-spec-cell-union q.typ) (has-spec-general-union q.typ)))
1368− =/ nm (hold-name q.typ)
1369− (collection-union typ module sig [[typ nm] seen] context)
1370320 =/ named=(unit term) (match-signature q.typ sig)
1371321 ?^ named
1372322 =/ name u.named
@@ -1380,44 +330,16 @@
1380330 =/ second=type (~(play ut p.typ) (ream '*value'))
1381331 [%apply name ~[first-import $(typ second)]]
1382332 [%apply name ~[first-import]]
333+ =/ prior=(unit (unit term)) (find-seen typ seen)
334+ ?^ prior
335+ ?~ u.prior [%bad 'an anonymous recursive Hoon mold cannot be named']
336+ [%ref module u.u.prior]
1383337 =/ nm (hold-name q.typ)
1384− ?: =(nm [~ %vase]) [%bad 'a Hoon type named vase needs source provenance']
338+ ?: =(nm [~ %vase]) [%bad 'vases cannot be imported']
1385339 ?: &((source-uses q.typ %jar) !(alias-safe context %jar))
1386340 [%bad 'Hoon collection provenance is unavailable or shadowed']
1387341 ?: &((source-uses q.typ %jug) !(alias-safe context %jug))
1388342 [%bad 'Hoon collection provenance is unavailable or shadowed']
1389− ?: &((source-uses q.typ %mop) !(alias-safe context %mop))
1390− [%bad 'Hoon collection provenance is unavailable or shadowed']
1391− =/ mop (mop-arguments typ)
1392− ?^ mop
1393− :: An exact revisit fails closed without guessing a name.
1394− [%apply %mop ~[$(typ key.u.mop, seen [[typ ~] seen]) $(typ value.u.mop, seen [[typ ~] seen])]]
1395− ?: (source-uses q.typ %mop)
1396− =/ checked-names=(list term) ~[%map %set %qeu %list %unit]
1397− ?: (lien checked-names |=(n=term &((source-uses q.typ n) !(alias-safe context n))))
1398− [%bad 'Hoon collection provenance is unavailable or shadowed']
1399− ?. ?=([%tsls [%note * *] *] q.typ)
1400− [%bad 'a nested Hoon mop needs source-aware import']
1401− =/ original=hoon q.typ
1402− ?> ?=([%tsls [%note * *] *] original)
1403− =/ source=hoon q.p.original
1404− ?. (patchable-mop-record source)
1405− [%bad 'a nested Hoon mop needs source-aware import']
1406− =/ patched=hoon (patch-mops source)
1407− ?: |(=(source patched) (source-uses patched %mop))
1408− [%bad 'a nested Hoon mop needs source-aware import']
1409− =/ replacement=hoon original(q.p patched)
1410− =/ attempt=(each type tang) (mule |.((~(play ut p.typ) replacement)))
1411− ?- attempt
1412− [%| *] [%bad 'a nested Hoon mop needs source-aware import']
1413− [%& *]
1414− =/ projected $(typ p.attempt, seen [[typ nm] seen])
1415− =/ corrected (recover-alias source projected p.typ module sig seen context)
1416− ?- corrected
1417− [%| *] [%bad p.corrected]
1418− [%& *] p.corrected
1419− ==
1420− ==
1421343 =/ branches (cell-branches typ)
1422344 ?^ branches
1423345 =/ first $(typ left.u.branches, seen [[typ nm] seen])
@@ -1426,33 +348,9 @@
1426348 ?^ err [%bad u.err]
1427349 ?: (disjoint first second)
1428350 [%fork (sort ~[first second] |=(pair=[imported imported] (dor -.pair +.pair)))]
1429− [%bad 'Hoon $^ union disjointness could not be verified']
1430− ?: |((has-cell-union q.typ) (has-fits-union q.typ))
1431− =/ cannot=@t
1432− ?: (has-fits-union q.typ) 'a Hoon union needs a source-level disjointness check'
1433− 'a Hoon $^ union needs a source-level disjointness check'
1434− =/ checked-names=(list term) ~[%map %set %qeu %list %unit %jar %jug %path]
1435− ?: (lien checked-names |=(n=term &((source-uses q.typ n) !(alias-safe context n))))
1436− [%bad 'Hoon collection provenance is unavailable or shadowed']
1437− ?. ?=([%tsls [%note * *] *] q.typ)
1438− [%bad cannot]
1439− =/ original=hoon q.typ
1440− ?> ?=([%tsls [%note * *] *] original)
1441− =/ body=hoon q.p.original
1442− =/ split (split-cell-record body 6)
1443− ?~ split [%bad cannot]
1444− =/ try=(each [type type] tang)
1445− (mule |.([(~(play ut p.typ) original(q.p one.u.split)) (~(play ut p.typ) original(q.p two.u.split))]))
1446− ?. ?=([%& *] try) [%bad cannot]
1447− =/ first $(typ -.p.try, seen [[typ nm] seen])
1448− =/ second $(typ +.p.try, seen [[typ nm] seen])
1449− =/ err (first-bads ~[first second])
1450− ?^ err [%bad u.err]
1451− =/ combined (merge-cell-record body 6 first second)
1452− ?- combined
1453− [%& *] p.combined
1454− [%| *] [%bad p.combined]
1455− ==
351+ [%bad 'a Hoon $^ union has overlapping cases']
352+ ?: (has-cell-union q.typ)
353+ [%bad 'a Hoon $^ union needs a source-level disjointness check']
1456354 =/ alias (hold-alias q.typ)
1457355 =/ hidden (has-hidden-alias q.typ)
1458356 =/ body $(typ ~(repo ut typ), seen [[typ nm] seen])
@@ -1460,18 +358,21 @@
1460358 ?. hidden body
1461359 ?. ?=([%tsls [%note * *] *] q.typ)
1462360 [%bad 'a nested collection alias needs source-aware import']
1463− =/ corrected (recover-alias q.p.q.typ body p.typ module sig seen context)
361+ =/ corrected (recover-alias q.p.q.typ body)
1464362 ?- corrected
1465363 [%& *] p.corrected
1466364 [%| *] [%bad p.corrected]
1467365 ==
1468− ?. ?=([%tsls [%note * *] *] q.typ)
366+ ?: (gth (alias-count q.typ) 1)
367+ [%bad 'nested collection arguments need source-aware import']
368+ ?. ?=([%apply %map [* [%apply * [* ~]] ~]] body)
1469369 [%bad 'a Hoon collection alias could not be recovered']
1470− =/ corrected (recover-alias q.p.q.typ body p.typ module sig seen context)
1471− ?- corrected
1472− [%& *] p.corrected
1473− [%| *] [%bad p.corrected]
1474− ==
370+ =/ inner i.args.i.t.args.body
371+ ?: &(?=(%jar u.alias) ?=(%list name.i.t.args.body))
372+ [%apply %jar ~[i.args.body inner]]
373+ ?: &(?=(%jug u.alias) ?=(%set name.i.t.args.body))
374+ [%apply %jug ~[i.args.body inner]]
375+ [%bad 'a Hoon collection alias could not be recovered']
1475376 ==
1476377::
1477378++ first-bad
@@ -1483,9 +384,7 @@
1483384 [%atom *] ~
1484385 [%ref *] ~
1485386 [%bad *] [~ reason.out]
1486− [%invalid *] [~ reason.out]
1487387 [%face *] $(out body.out)
1488− [%named *] $(out body.out)
1489388 [%cell *]
1490389 =/ err $(out head.out)
1491390 ?~ err $(out tail.out)
@@ -1501,35 +400,6 @@
1501400 =/ err (first-bad i.xs)
1502401 ?~ err $(xs t.xs)
1503402 err
1504−::
1505−++ first-invalid
1506− |= out=imported
1507− ^- (unit import-diagnostic)
1508− ?- out
1509− [%noun *] ~
1510− [%void *] ~
1511− [%atom *] ~
1512− [%ref *] ~
1513− [%bad *] `[%unsupported reason.out]
1514− [%invalid *] `[%invalid code.out reason.out]
1515− [%face *] $(out body.out)
1516− [%named *] $(out body.out)
1517− [%cell *]
1518− =/ first $(out head.out)
1519− ?~ first $(out tail.out)
1520− first
1521− [%fork *] (first-invalids cases.out)
1522− [%apply *] (first-invalids args.out)
1523− ==
1524−::
1525−++ first-invalids
1526− |= xs=(list imported)
1527− ^- (unit import-diagnostic)
1528− ?~ xs ~
1529− =/ first (first-invalid i.xs)
1530− ?~ first $(xs t.xs)
1531− first
1532−::
1533403:: +fixture-test: shared golden expectations for eval and the ship.
1534404:: A synthetic hold whose first $^ branch cannot be evaluated. It tests
1535405:: that a failed branch probe is reported rather than crashing the host.
@@ -1594,25 +464,8 @@
1594464 [%cell [%face %values [%apply %jar ~[[%atom %ud ~] [%atom %t ~]]]] [%face %cache [%apply %jug ~[[%atom %ud ~] [%atom %t ~]]]]]
1595465 =/ errors ?: =((sample %paired-aliases) [%& expect-paired]) errors
1596466 ['multiple collection aliases are preserved' errors]
1597− =/ expect-nested-alias=imported
1598− [%apply %jar ~[[%atom %ud ~] [%apply %jug ~[[%atom %ud ~] [%atom %t ~]]]]]
1599− =/ errors ?: =((sample %nested-alias) [%& expect-nested-alias]) errors
1600− ['nested collection arguments preserve names' errors]
1601− =/ expect-mop=imported [%apply %mop ~[[%atom %ud ~] [%atom %t ~]]]
1602− =/ errors ?: =((sample %mop-test) [%& expect-mop]) errors
1603− ['ordered map name and arguments' errors]
1604− =/ expect-nested-mop=imported
1605− [%cell [%face %table expect-mop] [%face %other [%atom %ud ~]]]
1606− =/ errors ?: =((sample %nested-mop) [%& expect-nested-mop]) errors
1607− ['ordered map field is preserved' errors]
1608− =/ expect-mixed=imported
1609− [%cell [%face %a expect-mop] [%face %b [%apply %list ~[[%atom %ud ~]]]]]
1610− =/ errors ?: =((sample %mixed-mop) [%& expect-mixed]) errors
1611− ['static list sibling is preserved' errors]
1612− =/ errors ?: =((sample %named-mop) [%| 'a nested Hoon mop needs source-aware import']) errors
1613− ['non-atom argument remains unsupported' errors]
1614− =/ errors ?: =((sample %mop-list) [%| 'a nested Hoon mop needs source-aware import']) errors
1615− ['ordered map in a list remains unsupported' errors]
467+ =/ errors ?: =((sample %nested-alias) [%| 'nested collection arguments need source-aware import']) errors
468+ ['nested collection arguments remain unsupported' errors]
1616469 =/ errors ?: =((sample %signed) [%| 'signed and float auras cannot be imported']) errors
1617470 ['signed aura rejected' errors]
1618471 =/ errors ?: =((sample %float) [%| 'signed and float auras cannot be imported']) errors
@@ -1625,12 +478,8 @@
1625478 [%fork ~[[%cell [%face %x [%atom %ud ~]] [%face %y [%atom %ud ~]]] [%atom %ud ~]]]
1626479 =/ errors ?: =((sample %valid-cell) [%& expect-valid]) errors
1627480 ['disjoint cell union' errors]
1628− =/ errors ?: =((sample %invalid-cell) [%| 'Hoon $^ union disjointness could not be verified']) errors
481+ =/ errors ?: =((sample %invalid-cell) [%| 'a Hoon $^ union has overlapping cases']) errors
1629482 ['overlapping cell union is rejected' errors]
1630− =/ errors ?: =((shad %mn) [%| 'Hoon collection provenance is unavailable or shadowed']) errors
1631− ['local mop shadow in a field is rejected' errors]
1632− =/ errors ?: =((shad %mm) [%| 'Hoon collection provenance is unavailable or shadowed']) errors
1633− ['local mop shadow is rejected' errors]
1634483 =/ errors ?: =((shad %aa) [%| 'Hoon collection provenance is unavailable or shadowed']) errors
1635484 ['local jar shadow is rejected' errors]
1636485 =/ errors ?: =((shad %bb) [%| 'Hoon collection provenance is unavailable or shadowed']) errors
@@ -1666,11 +515,9 @@
1666515 [%cell *] "[{(show-import head.out)} {(show-import tail.out)}]"
1667516 [%face *] "{(trip name.out)}={(show-import body.out)}"
1668517 [%fork *] "(union {(show-imports cases.out)})"
1669− [%named *] "(named {(trip name.out)}.{(trip module.out)} {(show-import body.out)})"
1670518 [%apply *] "({(trip name.out)} {(show-imports args.out)})"
1671519 [%ref *] "{(trip name.out)}.{(trip module.out)}"
1672520 [%bad *] "error: {(trip reason.out)}"
1673− [%invalid *] "error: {(trip reason.out)}"
1674521 ==
1675522::
1676523++ show-imports
@@ -1688,195 +535,14 @@
1688535 [%| *] "error: {(trip p.result)}"
1689536 ==
1690537::
1691−++ show-import-diagnostic
1692− |= result=import-diagnostic
1693− ^- tape
1694− ?- result
1695− [%ok *] (show-import value.result)
1696− [%invalid *] "invalid/{(trip code.result)}: {(trip message.result)}"
1697− [%unsupported *] "unsupported: {(trip message.result)}"
1698− ==
1699−::
1700−:: Clay includes debug spans around source nodes. Reproduce that
1701−:: shape without Clay so the same regression runs under eval and -test.
1702−++ decorate-union-source
1703− |= h=hoon
1704− ^- hoon
1705− =/ at=spot [/tests/importer/synthetic/hoon [[1 1] [1 2]]]
1706− ?^ -.h [%dbug at [$(h -.h) $(h +.h)]]
1707− ?+ h [%dbug at h]
1708− [%note *] [%dbug at h(q $(h q.h))]
1709− [%ktts *] [%dbug at h(q $(h q.h))]
1710− [%wtcl *] [%dbug at h(q $(h q.h), r $(h r.h))]
1711− ==
1712−::
1713−++ debug-union-fixture
1714− |= [cor=type name=term]
1715− ^- (each imported @t)
1716− =/ typ=type (~(play ut cor) (ream (cat 3 '*' name)))
1717− ?. ?=([%hold *] typ) [%| 'synthetic union is not a hold']
1718− =/ original=hoon q.typ
1719− ?. ?=([%tsls [%note * *] *] original) [%| 'synthetic union source is unavailable']
1720− =/ source=hoon original(q.p (decorate-union-source q.p.original))
1721− (read-mold %small name typ(q source))
1722−::
1723−:: Test debug metadata at the spec boundary without assuming that the
1724−:: eval version of Hoon's spec mold itself includes Clay's %dbug tag.
1725−++ debug-spec-fixture
1726− ^- tape
1727− =/ location=* [/tests/importer/synthetic/hoon [[1 1] [1 2]]]
1728− =/ wrapped=* [%dbug location [%leaf %tas %x]]
1729− =/ got=(unit *) (source-gist-tail wrapped)
1730− ?~ got "debug wrapper missing"
1731− =/ leaf=(each spec tang) (mule |.(;;(spec u.got)))
1732− ?. ?=([%& [%leaf %tas %x]] leaf) "debug leaf not recovered"
1733− =/ branch=spec [%bccl ~[p.leaf [%base [%atom %t]]]]
1734− ?^ (tagged-cases ~[branch branch] ~) "duplicate tags accepted"
1735− =/ broken=(unit *) (source-gist-tail [%dbug location 42])
1736− ?~ broken "debug wrapper missing"
1737− =/ invalid=(each spec tang) (mule |.(;;(spec u.broken)))
1738− ?: ?=(%& -.invalid) "malformed spec accepted"
1739− "valid wrapper; duplicate and malformed rejected"
1740−::
1741−:: The same named-operand call with Clay-style source-location wrappers.
1742−++ debug-mop-fixture
1743− |= cor=type
1744− ^- tape
1745− =/ typ=type (~(play ut cor) (ream '*mop-wing-valid'))
1746− ?> ?=([%hold *] typ)
1747− =/ original=hoon q.typ
1748− ?> ?=([%tsls [%note * *] *] original)
1749− =/ body=hoon q.p.original
1750− ?> ?=([%cncl *] body)
1751− ?> ?=([%tsgr *] p.body)
1752− =/ b=hoon q.p.body
1753− ?> ?=([%cncl *] b)
1754− =/ call=hoon p.b
1755− ?> ?=([%cncl *] call)
1756− ?> ?=([* [* ~]] q.call)
1757− =/ at=spot [/tests/importer/synthetic/hoon [[1 1] [1 2]]]
1758− =/ inner=hoon call(p [%dbug at p.call], q ~[[%dbug at i.q.call] [%dbug at i.t.q.call]])
1759− =/ outer=hoon body(p p.body(q b(p [%dbug at inner])))
1760− =/ mixed=hoon body(p p.body(q b(p inner)))
1761− =/ multi=hoon body(p p.body(q b(p call(p [%dbug at [%wing ~[%one %two]]]))))
1762− =/ plain=(unit [key=spec value=spec]) (mop-specs body)
1763− ?~ plain "unwrapped mop not recognized"
1764− ?. =((mop-specs [%dbug at outer]) plain) "wrapped mop not recognized"
1765− ?. =((mop-specs mixed) plain) "mixed mop not recognized"
1766− ?^ (mop-specs multi) "multi-segment callee accepted"
1767− ?^ (mop-specs [%dbug at [%sand %ud 42]]) "malformed call accepted"
1768− ?^ (source-single-wing [%dbug at 42]) "malformed wing accepted"
1769− ?^ (source-single-wing [%dbug at [%wing ~[%one %two]]]) "multi-segment operand accepted"
1770− =/ four=* [%dbug at [%dbug at [%dbug at [%dbug at [%wing ~[%mop]]]]]]
1771− =/ five=* [%dbug at four]
1772− ?~ (source-single-wing four) "four wrappers rejected"
1773− ?^ (source-single-wing five) "wrapper limit exceeded"
1774− ?~ (source-note-unwrap four 4) "four note wrappers rejected"
1775− ?^ (source-note-unwrap five 4) "note wrapper limit exceeded"
1776− =/ selected=(unit hoon) (local-arm-source cor %tag-valid)
1777− ?~ selected "selected union not found"
1778− =/ arm-four=hoon [%dbug at [%dbug at [%dbug at [%dbug at u.selected]]]]
1779− =/ arm-five=hoon [%dbug at arm-four]
1780− ?~ (tagged-source-code arm-four %tag-valid) "four wrapped selected arms rejected"
1781− ?^ (tagged-source-code arm-five %tag-valid) "selected arm wrapper limit exceeded"
1782− "wrapped and mixed calls accepted; malformed, multi-segment and excessive wrappers rejected"
1783−::
1784−:: Synthetic nodes test each part of the direct collection-call proof.
1785−++ collection-wrapper-fixture
1786− ^- tape
1787− =/ call=hoon [%cncl [%tsgr [%wing ~[[%.y 7]]] [%cncl [%wing ~[%list]] ~]] ~[[%$ 6]]]
1788− =/ subject=hoon [%cncl [%tsgr [%wing ~[[%.y 8]]] [%cncl [%wing ~[%list]] ~]] ~[[%$ 6]]]
1789− =/ sample=hoon [%cncl [%tsgr [%wing ~[[%.y 7]]] [%cncl [%wing ~[%list]] ~]] ~[[%$ 2]]]
1790− =/ good=hoon [%tsls [%note [%made %x ~] call] [%tsls [%dtts [%$ 14] [%$ 2]] [%$ 6]]]
1791− =/ tail=hoon [%tsls [%note [%made %x ~] call] [%$ 6]]
1792− =/ args=(list [hoon hoon]) ~[[call good] [subject good] [sample good] [call tail]]
1793− =/ flags=(list ?) (turn args |=(pair=[hoon hoon] (direct-collection-source -.pair +.pair)))
1794− ?: =(flags ~[& | | |]) "valid; forged subject, sample and tail rejected"
1795− "wrapper guard failed"
1796−::
1797−++ overlap-fork-fixture
1798− ^- type
1799− =/ nodes=(list type) ~[[%atom %ud ~] [%atom %t ~]]
1800− [%fork (silt nodes)]
1801−::
1802−++ invalid-fork-fixture
1803− ^- type
1804− =/ nodes=(list type) ~[[%atom %ud ~] [%atom %sd ~]]
1805− [%fork (silt nodes)]
1806−::
1807538++ fixture-output
1808− |= [small=@t epic=@t presence=@t docs=@t shadow=@t shadow-static=@t ford=@t mark=@t mark-rec=@t mark-gate=@t mark-basic=@t origin-trans=@t origin-first=@t origin-other=@t]
539+ |= [small=@t epic=@t presence=@t docs=@t shadow=@t]
1809540 ^- wain
1810541 =/ sc=type -:(ride -:!>(..zuse) small)
1811542 =/ ec=type -:(ride -:!>(..zuse) epic)
1812543 =/ pc=type -:(ride -:!>(..zuse) presence)
1813544 =/ dc=type -:(ride -:!>(..zuse) docs)
1814545 =/ hc=type -:(ride -:!>(..zuse) shadow)
1815− =/ xc=type -:(ride -:!>(..zuse) shadow-static)
1816− =/ fp=type [%cell [%face %small sc] -:!>(..zuse)]
1817− =/ other=type -:(ride -:!>(..zuse) origin-other)
1818− =/ fc=type -:(ride fp ford)
1819− ?> ?=([%core *] fc)
1820− =/ only-list=@t '|%\0a+$ lists (list @ud)\0a--\0a'
1821− =/ tp=type [%cell [%face %intermediate fc] -:!>(..zuse)]
1822− =/ tc=type -:(ride tp only-list)
1823− =/ sp=type [%cell [%face %small xc] -:!>(..zuse)]
1824− =/ shc=type -:(ride sp only-list)
1825− =/ mark-core=type -:(ride fp mark)
1826− =/ mark-rec-core=type -:(ride fp mark-rec)
1827− =/ mark-gate-core=type -:(ride -:!>(..zuse) mark-gate)
1828− =/ mark-basic-core=type -:(ride -:!>(..zuse) mark-basic)
1829− =/ make-mark
1830− |= [field=@t scope=type]
1831− ^- type
1832− -:(ride scope (crip "|_ a={(trip field)}\0a++ grab |% ++ noun a --\0a++ grow |% ++ noun a --\0a++ grad %noun\0a--\0a"))
1833− =/ mark-union-core=type (make-mark 'mark-flag-valid:small' fp)
1834− =/ mark-overlap-core=type (make-mark 'mark-flag-overlap:small' fp)
1835− =/ mark-hidden-core=type (make-mark 'mark-flag-hidden:small' fp)
1836− =/ mark-signed-core=type (make-mark 'signed:small' fp)
1837− =/ mark-callable-core=type (make-mark 'gate-test:small' fp)
1838− =/ extra-subject=type [%cell [%face %other other] fp]
1839− =/ mark-extra-core=type (make-mark 'mark-flag-valid:small' extra-subject)
1840− =/ other-hold=type (~(play ut other) (ream '*chain'))
1841− =/ recursive-hold=type (~(play ut sc) (ream '*chain'))
1842− =/ fake-vase=type -:(ride -:!>(..zuse) '|%\0a+$ vase @ud\0a--\0a')
1843− =/ spoof=(unit import-diagnostic)
1844− (first-invalid [%bad 'signed and float auras cannot be imported'])
1845− ?> ?=(^ spoof)
1846− =/ mark-shadow-core=type -:(ride sp mark-basic)
1847− =/ tshp=type [%cell [%face %intermediate shc] -:!>(..zuse)]
1848− =/ tshc=type -:(ride tshp only-list)
1849− =/ trans=type -:(ride tp origin-trans)
1850− =/ ambiguous-parent=type [%cell [%face %first sc] [%cell [%face %second sc] -:!>(..zuse)]]
1851− =/ ambiguous=type -:(ride ambiguous-parent origin-first)
1852− =/ distinct-parent=type [%cell [%face %first sc] [%cell [%face %second other] -:!>(..zuse)]]
1853− =/ distinct=type -:(ride distinct-parent origin-first)
1854− =/ trans-amb-parent=type [%cell [%face %intermediate fc] [%cell [%face %second sc] -:!>(..zuse)]]
1855− =/ trans-amb=type -:(ride trans-amb-parent origin-trans)
1856− =/ tag-child=@t
1857− '|%\0a+$ tag-invalid-cell @t\0a+$ choice $%([%ok a=tag-invalid-cell] [%err a=@ud])\0a--\0a'
1858− =/ tag-collision=type -:(ride [%cell [%face %base sc] -:!>(..zuse)] tag-child)
1859− =/ tag-clean=type -:(ride [%cell [%face %base other] -:!>(..zuse)] tag-child)
1860− =/ tag-zuse=@t
1861− '|%\0a+$ ship @t\0a+$ path @ud\0a+$ choice $%([%ok who=ship] [%err where=path])\0a--\0a'
1862− =/ tag-zuse-core=type -:(ride -:!>(..zuse) tag-zuse)
1863− =/ nest-parent-src=@t
1864− '|%\0a+$ tag-nest-inner $%([%foreign @t] [%foreign @t])\0a--\0a'
1865− =/ nest-parent=type -:(ride -:!>(..zuse) nest-parent-src)
1866− =/ nest-child-src=@t
1867− '|%\0a+$ tag-nest-inner $%([%left @t] [%right @ud])\0a+$ tag-nest-middle $%([%one x=tag-nest-inner] [%two ~])\0a--\0a'
1868− =/ nest-collision=type -:(ride [%cell [%face %base nest-parent] -:!>(..zuse)] nest-child-src)
1869− =/ self-parent=type
1870− -:(ride -:!>(..zuse) '|%\0a+$ tag-self ?(%same %same)\0a--\0a')
1871− =/ self-child=@t
1872− '|%\0a+$ tag-self $%([%branch children=(list tag-self)] [%leaf value=@t])\0a--\0a'
1873− =/ self-collision=type -:(ride [%cell [%face %tag-self self-parent] -:!>(..zuse)] self-child)
1874− =/ self-other=type
1875− -:(ride -:!>(..zuse) '|%\0a+$ tag-self $%([%branch children=(list tag-self)] [%leaf value=@ud])\0a--\0a')
1876− =/ mop-ford-parent=type
1877− -:(ride -:!>(..zuse) '|%\0a+$ value ?(%same %same)\0a--\0a')
1878− =/ mop-ford-child=type
1879− -:(ride [%cell [%face %value mop-ford-parent] -:!>(..zuse)] '|%\0a+$ key @ud\0a+$ value @t\0a+$ mm ((mop key value) lte)\0a--\0a')
1880546 =/ sample
1881547 |= name=term
1882548 (read-mold-in %small name (~(play ut sc) (ream (cat 3 '*' name))) sc)
@@ -1905,127 +571,11 @@
1905571 (crip "nested-jar: {(show-result (sample %nested-jar))}")
1906572 (crip "paired-aliases: {(show-result (sample %paired-aliases))}")
1907573 (crip "nested-alias: {(show-result (sample %nested-alias))}")
1908− (crip "compound: {(show-result (sample %compound))}")
1909− (crip "compound-fields: {(show-result (sample %compound-fields))}")
1910− (crip "mop: {(show-result (sample %mop-test))}")
1911− (crip "nested-mop: {(show-result (sample %nested-mop))}")
1912− (crip "two-mops: {(show-result (sample %two-mops))}")
1913− (crip "mixed-mop: {(show-result (sample %mixed-mop))}")
1914− (crip "nested-static-mop: {(show-result (sample %nested-static-mop))}")
1915− (crip "collection-siblings: {(show-result (sample %collection-siblings))}")
1916− (crip "dynamic-sibling-mop: {(show-result (sample %dynamic-sibling-mop))}")
1917− (crip "mark-flag-source: {(show-result (read-named %small %mark-flag-valid sc))}")
1918− (crip "mark-flag-union: {(show-result (read-mark %flag-union mark-union-core))}")
1919− (crip "mark-flag-overlap: {(show-result (read-mark %flag-overlap mark-overlap-core))}")
1920− (crip "mark-flag-hidden: {(show-result (read-mark %flag-hidden mark-hidden-core))}")
1921− (crip "mark-flag-signed: {(show-result (read-mark %flag-signed mark-signed-core))}")
1922− (crip "mark-flag-callable: {(show-result (read-mark %flag-callable mark-callable-core))}")
1923− (crip "mark-flag-extra: {(show-result (read-mark %flag-extra mark-extra-core))}")
1924− (crip "mark-flag-other-hold: {?~((mark-union-fallback other-hold fp) "unsupported" "BAD")}")
1925− (crip "mark-flag-recursive-fallback: {?~((mark-union-fallback recursive-hold fp) "unsupported" "BAD")}")
1926− (crip "mark-record: {(show-result (read-mark %todo-item mark-core))}")
1927− (crip "mark-recursive: {(show-result (read-mark %recursive mark-rec-core))}")
1928− (crip "mark-gate: {(show-result (read-mark %bad mark-gate-core))}")
1929− (crip "mark-list: {(show-result (read-mark %list-mark mark-basic-core))}")
1930− (crip "mark-shadow: {(show-result (read-mark %list-mark mark-shadow-core))}")
1931− (crip "mark-not-core: {(show-result (read-mark %bad [%atom %ud ~]))}")
1932− (crip "ford-list: {(show-result (read-mold-in %ford %lists (~(play ut fc) (ream '*lists')) fc))}")
1933− (crip "ford-imported: {(show-result (read-mold-in %ford %wrapped (~(play ut fc) (ream '*wrapped')) fc))}")
1934− (crip "ford-recursive: {(show-result (read-mold-in %ford %recursive (~(play ut fc) (ream '*recursive')) fc))}")
1935− (crip "ford-local-recursive: {(show-result (read-mold-in %ford %local (~(play ut fc) (ream '*local')) fc))}")
1936− (crip "ford-recursive-transitive: {(show-result (read-named %outer %wrapped trans))}")
1937− (crip "ford-recursive-ambiguous: {(show-result (read-named %outer %pick-one ambiguous))}")
1938− (crip "ford-recursive-transitive-ambiguous: {(show-result (read-named %outer %wrapped trans-amb))}")
1939− (crip "ford-recursive-distinct-first: {(show-result (read-named %outer %pick-one distinct))}")
1940− (crip "ford-recursive-distinct-second: {(show-result (read-named %outer %pick-two distinct))}")
1941− (crip "ford-transitive: {(show-result (read-mold-in %ford %lists (~(play ut tc) (ream '*lists')) tc))}")
1942− (crip "ford-shadow: {(show-result (read-mold-in %ford %lists (~(play ut shc) (ream '*lists')) shc))}")
1943− (crip "ford-transitive-shadow: {(show-result (read-mold-in %ford %lists (~(play ut tshc) (ream '*lists')) tshc))}")
1944− (crip "ford-shadow-face: {?:((scope-safe [%cell [%face %list sc] -:!>(..zuse)] %list) "wrong" "unsafe")}")
1945− (crip "ford-unknown: {?:((scope-safe [%cell [%atom %ud ~] -:!>(..zuse)] %list) "wrong" "unsafe")}")
1946− (crip "ford-mismatched-core: {?:((scope-safe fc(p -:!>(..zuse)) %list) "wrong" "unsafe")}")
1947− (crip "shadow-list-mop: {(show-result (read-mold-in %shadow-static %bad (~(play ut xc) (ream '*bad')) xc))}")
1948− (crip "named-mop: {(show-result (sample %named-mop))}")
1949− (crip "mop-list: {(show-result (sample %mop-list))}")
1950− (crip "mop-wing-valid: {(show-result (sample %mop-wing-valid))}")
1951− (crip "mop-wing-invalid-key: {(show-result (sample %mop-wing-invalid-key))}")
1952− (crip "mop-wing-invalid-key-alias: {(show-result (sample %mop-wing-invalid-key-alias))}")
1953− (crip "mop-wing-invalid-value: {(show-result (sample %mop-wing-invalid-value))}")
1954− (crip "mop-wing-invalid-value-alias: {(show-result (sample %mop-wing-invalid-value-alias))}")
1955− (crip "mop-wing-rec-key: {(show-result (sample %mop-wing-rec-key))}")
1956− (crip "mop-wing-rec-value: {(show-result (sample %mop-wing-rec-value))}")
1957− (crip "mop-wing-shadow: {(show-result (read-named %shadow %mmw hc))}")
1958− (crip "mop-wing-ford-collision: {(show-result (read-named %child %mm mop-ford-child))}")
1959− (crip "mop-wing-debug: {(debug-mop-fixture sc)}")
1960574 (crip "signed: {(show-result (sample %signed))}")
1961575 (crip "float: {(show-result (sample %float))}")
1962576 (crip "gate: {(show-result (sample %gate-test))}")
1963577 (crip "vase: {(show-result vase)}")
1964578 (crip "failed-branch: {(show-result (read-mold %external %bad bad-branch-fixture))}")
1965− (crip "debug-spec: {debug-spec-fixture}")
1966− (crip "debug-union: {(show-result (debug-union-fixture sc %action))}")
1967− (crip "debug-union-overlap: {(show-result (debug-union-fixture sc %explicit-wut-overlap))}")
1968− (crip "debug-nested-cell: {(show-result (debug-union-fixture sc %nested-valid-cell))}")
1969− (crip "debug-nested-cell-overlap: {(show-result (debug-union-fixture sc %nested-invalid-cell))}")
1970− (crip "explicit-graph: {(show-result (read-mold %raw %raw overlap-fork-fixture))}")
1971− (crip "explicit-graph-unsupported: {(show-result (read-mold %raw %raw invalid-fork-fixture))}")
1972− (crip "explicit-wut-safe: {(show-result (sample %explicit-wut-safe))}")
1973− (crip "explicit-percent-overlap: {(show-result (sample %explicit-percent-overlap))}")
1974− (crip "explicit-wut-overlap: {(show-result (sample %explicit-wut-overlap))}")
1975− (crip "explicit-collapsed: {(show-result (sample %explicit-collapsed))}")
1976− (crip "explicit-subsumed: {(show-result (sample %explicit-subsumed))}")
1977− (crip "explicit-three: {(show-result (sample %explicit-three))}")
1978− (crip "explicit-unknown: {(show-result (sample %explicit-unknown))}")
1979− (crip "explicit-nested: {(show-result (sample %explicit-nested))}")
1980− (crip "collection-union-wrapper: {collection-wrapper-fixture}")
1981− (crip "collection-union-list: {(show-result (sample %collection-union-list))}")
1982− (crip "collection-union-set: {(show-result (sample %collection-union-set))}")
1983− (crip "collection-union-map-key: {(show-result (sample %collection-union-map-key))}")
1984− (crip "collection-union-map-value: {(show-result (sample %collection-union-map-value))}")
1985− (crip "collection-union-unit: {(show-result (sample %collection-union-unit))}")
1986− (crip "collection-union-collapsed: {(show-result (sample %collection-union-collapsed))}")
1987− (crip "collection-union-multiple: {(show-result (sample %collection-union-multiple))}")
1988− (crip "collection-union-nested: {(show-result (sample %collection-union-nested))}")
1989− (crip "collection-union-dependent: {(show-result (sample %collection-union-dependent))}")
1990− (crip "collection-union-shadow: {(show-result (read-named %shadow %collection-union-shadow xc))}")
1991− (crip "explicit-list: {(show-result (sample %explicit-list))}")
1992− (crip "explicit-set: {(show-result (sample %explicit-set))}")
1993− (crip "explicit-faces: {(show-result (sample %explicit-faces))}")
1994− (crip "explicit-alias: {(show-result (sample %explicit-alias))}")
1995− (crip "explicit-ford: {(show-result (read-named %outer %bad-union trans))}")
1996− (crip "explicit-shadow-path: {(show-result (read-named %shadow %path-shadow xc))}")
1997− (crip "list-bckt-field: {(show-result (sample %list-bckt-field))}")
1998− (crip "list-noun-overlap: {(show-result (sample %list-noun-overlap))}")
1999− (crip "list-null-overlap: {(show-result (sample %list-null-overlap))}")
2000− (crip "list-nested-atom-cell: {(show-result (sample %list-nested-atom-cell))}")
2001− (crip "list-nested-valid-cell: {(show-result (sample %list-nested-valid-cell))}")
2002− (crip "list-nested-invalid-cell: {(show-result (sample %list-nested-invalid-cell))}")
2003− (crip "map-nested-invalid-cell: {(show-result (sample %map-nested-invalid-cell))}")
2004− (crip "set-direct-invalid-cell: {(show-result (sample %set-direct-invalid-cell))}")
2005− (crip "map-key-invalid-cell: {(show-result (sample %map-key-invalid-cell))}")
2006− (crip "nested-atom-cell: {(show-result (sample %nested-atom-cell))}")
2007− (crip "nested-tags: {(show-result (sample %nested-tags))}")
2008− (crip "nested-tags-overlap: {(show-result (sample %nested-tags-overlap))}")
2009− (crip "nested-tagged: {(show-result (sample %nested-tagged))}")
2010− (crip "nested-tagged-bckt: {(show-result (sample %nested-tagged-bckt))}")
2011− (crip "nested-tagged-overlap: {(show-result (sample %nested-tagged-overlap))}")
2012− (crip "nested-tagged-alias: {(show-result (sample %nested-tagged-alias))}")
2013− (crip "nested-tagged-ford: {(show-result (read-named %outer %tagged trans))}")
2014− (crip "tag-static-valid: {?:((fixed-cell-mold [%wtgr [%dtts [%$ 13] [%rock %$ %foo]] [%rock %tas %foo]] 13) "yes" "no")}")
2015− (crip "tag-static-wrong-axis: {?:((fixed-cell-mold [%wtgr [%dtts [%$ 12] [%rock %$ %foo]] [%rock %tas %foo]] 13) "wrong" "no")}")
2016− (crip "tag-static-nonconstant: {?:((fixed-cell-mold [%wtgr [%dtts [%$ 13] [%rock %$ %foo]] [%$ 13]] 13) "wrong" "no")}")
2017− (crip "tag-static-wrong-value: {?:((fixed-cell-mold [%wtgr [%dtts [%$ 13] [%rock %$ %foo]] [%rock %tas %bar]] 13) "wrong" "no")}")
2018− (crip "nested-first-cell: {(show-result (sample %nested-first-cell))}")
2019− (crip "nested-alias-cell: {(show-result (sample %nested-alias-cell))}")
2020− (crip "nested-multiple-cell: {(show-result (sample %nested-multiple-cell))}")
2021− (crip "nested-named-sibling: {(show-result (sample %nested-named-sibling))}")
2022− (crip "nested-list-sibling: {(show-result (sample %nested-list-sibling))}")
2023− (crip "nested-validated-sibling: {(show-result (sample %nested-validated-sibling))}")
2024− (crip "nested-validated-branch: {(show-result (sample %nested-validated-branch))}")
2025− (crip "nested-named-branch: {(show-result (sample %nested-named-branch))}")
2026− (crip "nested-ford-cell: {(show-result (read-named %outer %nested trans))}")
2027− (crip "nested-valid-cell: {(show-result (sample %nested-valid-cell))}")
2028− (crip "nested-invalid-cell: {(show-result (sample %nested-invalid-cell))}")
2029579 (crip "valid-cell: {(show-result (sample %valid-cell))}")
2030580 (crip "invalid-cell: {(show-result (sample %invalid-cell))}")
2031581 (crip "chapter-malformed: {?:((chapter-unsafe [%x %y %z] %jar) "unsafe" "wrong")}")
@@ -2034,81 +584,11 @@
2034584 (crip "chapter-wrapped-hit: {?:(=((chapter-has [~ chapter-tree] %jar) [~ &]) "yes" "no")}")
2035585 (crip "chapter-direct-miss: {?:(=((chapter-has chapter-tree %jug) [~ &]) "yes" "no")}")
2036586 (crip "chapter-wrapped-miss: {?:(=((chapter-has [~ chapter-tree] %jug) [~ &]) "yes" "no")}")
2037− (crip "shadow-nested-mop: {(show-result (shad %mn))}")
2038− (crip "shadow-mop: {(show-result (shad %mm))}")
2039587 (crip "shadow-jar: {(show-result (shad %aa))}")
2040588 (crip "shadow-jug: {(show-result (shad %bb))}")
2041− (crip "no-provenance-atom: {(show-result (read-mold %small %word (~(play ut sc) (ream '*word'))))}")
2042− (crip "no-provenance-recursive: {(show-result (read-mold %wrong %alias (~(play ut sc) (ream '*chain'))))}")
2043589 (crip "no-provenance: {(show-result (read-mold %small %jar-test (~(play ut sc) (ream '*jar-test'))))}")
2044− (crip "named-not-mold: {(show-result (read-named %small %not-mold sc))}")
2045− (crip "named-present: {(show-result (read-named %small %items sc))}")
2046− (crip "named-missing: {(show-result (read-named %small %missing sc))}")
2047− (crip "named-invalid-core: {(show-result (read-named %small %items [%atom %ud ~]))}")
2048− (crip "named-ford-recursive: {(show-result (read-named %ford %recursive fc))}")
2049− (crip "diagnostic-items: {(show-import-diagnostic (read-named-diagnostic %small %items sc))}")
2050− (crip "diagnostic-signed: {(show-import-diagnostic (read-named-diagnostic %small %signed sc))}")
2051− (crip "diagnostic-float: {(show-import-diagnostic (read-named-diagnostic %small %float sc))}")
2052− (crip "diagnostic-overlap: {(show-import-diagnostic (read-named-diagnostic %small %explicit-percent-overlap sc))}")
2053− (crip "diagnostic-unproved: {(show-import-diagnostic (read-named-diagnostic %small %list-nested-invalid-cell sc))}")
2054− (crip "diagnostic-mark-gate: {(show-import-diagnostic (read-mark-diagnostic %bad mark-gate-core))}")
2055− (crip "diagnostic-shadow-vase: {(show-import-diagnostic (read-named-diagnostic %fake %vase fake-vase))}")
2056− (crip "diagnostic-spoof: {(show-import-diagnostic u.spoof)}")
2057− (crip "missing-arm: {(show-result (read-mold-in %small %missing [%atom %ud ~] sc))}")
2058590 (crip "wrong-provenance: {(show-result (read-mold-in %small %action (~(play ut sc) (ream '*items')) sc))}")
2059591 (crip "unverified-subject: {(show-result (read-mold-in %std %jar (~(play ut -:!>(..zuse)) (ream '*(jar @ud @t)')) -:!>(..zuse)))}")
2060− (crip "tag-ford-collision: {(show-result (read-named %child %choice tag-collision))}")
2061− (crip "tag-ford-clean: {(show-result (read-named %child %choice tag-clean))}")
2062− (crip "tag-zuse-local: {(show-result (read-named %child %choice tag-zuse-core))}")
2063− (crip "tag-nest-inner: {(show-result (sample %tag-nest-inner))}")
2064− (crip "tag-nest-middle: {(show-result (sample %tag-nest-middle))}")
2065− (crip "tag-nest-diamond: {(show-result (sample %tag-nest-diamond))}")
2066− (crip "tag-nest-deep: {(show-result (sample %tag-nest-deep))}")
2067− (crip "tag-nest-hidden: {(show-result (sample %tag-nest-hidden))}")
2068− (crip "tag-nest-overlap: {(show-result (sample %tag-nest-overlap))}")
2069− (crip "tag-nest-recursive: {(show-result (sample %tag-nest-recursive-outer))}")
2070− (crip "tag-nest-rec-list: {(show-result (sample %tag-nest-rec-list-outer))}")
2071− (crip "tag-nest-rec-repeat: {(show-result (sample %tag-nest-rec-repeat))}")
2072− (crip "tag-nest-rec-duplicate: {(show-result (sample %tag-nest-rec-bad-outer))}")
2073− (crip "tag-nest-rec-hidden: {(show-result (sample %tag-nest-rec-hidden-outer))}")
2074− (crip "tag-nest-rec-mutual: {(show-result (sample %tag-nest-rec-mutual-outer))}")
2075− (crip "tag-nest-rec-outer-overlap: {(show-result (sample %tag-nest-rec-outer-overlap))}")
2076− (crip "tag-nest-rec-owner: {?:(&((contains-named-ref [%ref %small %tag-self] %small %tag-self) !(contains-named-ref [%named %small %other [%ref %small %tag-self]] %small %tag-self)) "yes" "wrong")}")
2077− (crip "tag-nest-many: {(show-result (sample %tag-nest-many))}")
2078− (crip "tag-nest-shadow: {(show-result (read-named %shadow-static %tag-nest-shadow xc))}")
2079− (crip "tag-nest-wrong-hold: {?~((nested-tagged-union %small (~(play ut other) (ream '*chain')) `sc) "unsupported" "BAD")}")
2080− (crip "tag-nest-ford-collision: {(show-result (read-named %outer %tag-nest-middle nest-collision))}")
2081− (crip "tag-self: {(show-result (sample %tag-self))}")
2082− (crip "tag-self-tail: {(show-result (sample %tag-self-tail))}")
2083− (crip "tag-self-duplicate: {(show-result (sample %tag-self-duplicate))}")
2084− (crip "tag-self-hidden: {(show-result (sample %tag-self-hidden))}")
2085− (crip "tag-self-indirect: {(show-result (sample %tag-self-indirect))}")
2086− (crip "tag-mutual-a: {(show-result (sample %tag-mutual-a))}")
2087− (crip "tag-mutual-b: {(show-result (sample %tag-mutual-b))}")
2088− (crip "tag-self-pair: {(show-result (sample %tag-self-pair))}")
2089− (crip "tag-self-ford-collision: {(show-result (read-named %child %tag-self self-collision))}")
2090− (crip "tag-self-wrong-core: {(show-result (read-mold-in %other %tag-self (~(play ut sc) (ream '*tag-self')) self-other))}")
2091− (crip "tag-flat-large: {?:(&(?=(~ (safe-source-name-mode %tag-fuel-7 sc ~ 256 |)) ?=(^ (safe-source-name-mode %tag-fuel-7 sc ~ 4.096 |)) ?=([%& *] (sample %tag-flat-large))) "supported above 256" "BAD")}")
2092− (crip "tag-null-good: {(show-result (sample %tag-null-good))}")
2093− (crip "tag-null-duplicate: {(show-result (sample %tag-null-duplicate))}")
2094− (crip "tag-null-hidden: {(show-result (sample %tag-null-hidden))}")
2095− (crip "tag-valid: {(show-result (sample %tag-valid))}")
2096− (crip "tag-duplicate: {(show-result (sample %tag-duplicate))}")
2097− (crip "tag-collapsed: {(show-result (sample %tag-collapsed))}")
2098− (crip "tag-invalid-direct: {(show-result (sample %tag-invalid-direct))}")
2099− (crip "tag-invalid-alias: {(show-result (sample %tag-invalid-alias))}")
2100− (crip "tag-invalid-list: {(show-result (sample %tag-invalid-list))}")
2101− (crip "tag-enum-good: {(show-result (sample %tag-enum-good))}")
2102− (crip "tag-enum-bad: {(show-result (sample %tag-enum-bad))}")
2103− (crip "tag-nested-good: {(show-result (sample %tag-nested-good))}")
2104− (crip "tag-shadow-jar: {(show-result (read-named %shadow-static %tag-shadow-jar xc))}")
2105− (crip "tag-shadow-jug: {(show-result (read-named %shadow-static %tag-shadow-jug xc))}")
2106− (crip "tag-fuel-small: {?:(?=(^ (safe-source-name %tag-fuel-2 sc ~ 64)) "yes" "no")}")
2107− (crip "tag-fuel-large: {?:(?=(~ (safe-source-name %tag-fuel-11 sc ~ 64)) "rejected" "wrong")}")
2108− (crip "presence-action-1: {(show-result (present %action-1))}")
2109− (crip "presence-command-1: {(show-result (present %command-1))}")
2110− (crip "presence-update-1: {(show-result (present %update-1))}")
2111− (crip "presence-response-1: {(show-result (present %response-1))}")
2112592 (crip "presence-topic: {(show-result (present %topic))}")
2113593 (crip "presence-timing: {(show-result (present %timing))}")
2114594 (crip "presence-places: {(show-result (present %places))}")
jibb-dev/lib/jibb.hoon+150−5333
@@ -874,7 +874,7 @@
874874 %'~[' %'|=(' %'$-(' :: openers
875875 %'%/' %'/' :: paths
876876 %'+' %'`' %'=' :: pair, unit, face
877− %'*' %'?' %'_' :: noun, loobean, type hole
877+ %'*' %'?' :: noun, loobean mold
878878 %'++' %'+$' %'|=' %'|$' :: runes
879879 %'^-' %'~&' %'?-' %'!!' :: runes
880880 %'/-' %'/%' %'/=' :: imports
@@ -1016,7 +1016,6 @@
10161016 [%const at=span =lit] :: ~ %add %.y
10171017 [%ref at=span names=(list term)] :: state item.todo
10181018 [%tvar at=span name=@t] :: M
1019− [%hole at=span ~] :: _
10201019 [%path at=span segs=(list pseg)] :: / /todos /todo/[id=@ud]
10211020 [%apply at=span ref=(list term) args=(list shape)] :: (list @t)
10221021 [%cell at=span fields=(list field)] :: [text=@t done=?]
@@ -1025,9 +1024,9 @@
10251024 [%generic at=span vars=(list @t) body=shape] :: +$ name |$ [M] …
10261025 ==
10271026::
1028−:: +pseg: a path mold's segment, a knot, [name=aura], or [name=_]
1027+:: +pseg: a path mold's segment, a knot or [name=aura]
10291028::
1030−+$ pseg $%([%knot p=@ta] [%typed at=span name=term aura=@ta] [%inferred at=span name=term hole-at=span])
1029++$ pseg $%([%knot p=@ta] [%typed at=span name=term aura=@ta])
10311030::
10321031+| %api
10331032::
@@ -1296,7 +1295,6 @@
12961295 (emit 1 %'=')
12971296 ?: =('`' a) (emit 1 %'`')
12981297 ?: =('*' a) (emit 1 %'*')
1299− ?: =('_' a) (emit 1 %'_')
13001298 ?: =('~' a)
13011299 ?: =('[' b) (emit 2 %'~[')
13021300 ?: =('&' b) (emit 2 %'~&')
@@ -1672,14 +1670,14 @@
16721670:: What may begin each place the parser reads (section 3, Errors):
16731671:: an expression a-z 0-9 " ( [ ~ % / ` | ^ ? !
16741672:: an operand a-z 0-9 " ( [ ~ % / ` | !
1675−:: a mold a-z A-Z @ * ! ? ~ % / ( [ $ _
1673+:: a mold a-z A-Z @ * ! ? ~ % / ( [ $
16761674:: a pattern a-z 0-9 " ~ % * [
16771675:: and what may go tight after an operand: . ( + = after a name, a
16781676:: closer ) ] }, or the : of a comment
16791677::
16801678++ expr-mask 0x57ff.ffff.4800.0000.83ff.8126.0000.0000
16811679++ operand-mask 0x57ff.ffff.0800.0000.03ff.8126.0000.0000
1682−++ mold-mask 0x47ff.fffe.8fff.ffff.8000.8532.0000.0000
1680+++ mold-mask 0x47ff.fffe.0fff.ffff.8000.8532.0000.0000
16831681++ bar-mask 0x1000.0000.0000.0000.0000.0000.0000.0000
16841682++ pattern-mask 0x47ff.fffe.0800.0000.03ff.0424.0000.0000
16851683++ after-mask 0x2000.0000.2000.0000.2400.4b00.0000.0000
@@ -2109,7 +2107,6 @@
21092107 ?- -.s
21102108 %knot (weld "/" (trip p.s))
21112109 %typed "/[{(trip name.s)}=@{(trip aura.s)}]"
2112− %inferred "/[{(trip name.s)}=_]"
21132110 ==
21142111::
21152112++ show-tvars
@@ -2321,7 +2318,6 @@
23212318 %const (nod "const" at.s (show-lit lit.s) ~)
23222319 %ref (nod "ref" at.s (show-names names.s) ~)
23232320 %tvar (nod "tvar" at.s (trip name.s) ~)
2324− %hole (nod "hole" at.s "" ~)
23252321 %path (nod "path" at.s (show-psegs segs.s) ~)
23262322 %apply (nod "apply" at.s (show-names ref.s) (turn args.s sexp-shape))
23272323 %cell (nod "cell" at.s "" (turn fields.s sexp-field))
@@ -3846,7 +3842,6 @@
38463842 %'*' [%& [%noun at.t ~] t.ts]
38473843 %'!!' [%& [%void at.t ~] t.ts]
38483844 %'?' [%& [%flag at.t ~] t.ts]
3849− %'_' [%& [%hole at.t ~] t.ts]
38503845 [%name *] [%& [%ref at.t ~[p.lex.t]] t.ts]
38513846 [%wing *] [%& [%ref at.t p.lex.t] t.ts]
38523847 [%tvar *] [%& [%tvar at.t p.lex.t] t.ts]
@@ -4063,7 +4058,7 @@
40634058 ?: &(?=(^ nex) tight.i.nex) (bad nex "a path segment")
40644059 (bad-space i.after nex "a path segment")
40654060 ::
4066− :: +read-pseg: a path mold's knot, [name=aura], or [name=_] with no
4061+ :: +read-pseg: a path mold's segment, a knot or [name=aura] with no
40674062 :: spaces, and where it ends
40684063 ::
40694064 ++ read-pseg
@@ -4080,16 +4075,13 @@
40804075 ?: |(?=(~ r2) !tight.i.r2) (bad-space i.r1 r2 "`=`")
40814076 ?. ?=([[* * %'='] *] r2) (bad-in r2 "`=`" tis-mask)
40824077 =/ r3=(list token) t.r2
4083− ?: |(?=(~ r3) !tight.i.r3) (bad-space i.r2 r3 "an aura or type hole")
4084− ?. ?=([[* * ?([%aura *] %'_')] *] r3) (bad-in r3 "an aura or type hole" (con pat-mask (bex 95)))
4078+ ?: |(?=(~ r3) !tight.i.r3) (bad-space i.r2 r3 "an aura")
4079+ ?. ?=([[* * [%aura *]] *] r3) (bad-in r3 "an aura" pat-mask)
40854080 =/ r4=(list token) t.r3
40864081 ?: |(?=(~ r4) !tight.i.r4) (bad-space i.r3 r4 "`]`")
40874082 ?. ?=([[* * %']'] *] r4) (bad-in r4 "`]`" ser-mask)
40884083 =/ at=span [beg.at.op end.at.i.r4]
4089− =/ seg=pseg
4090− ?: ?=(%'_' lex.i.r3) [%inferred at p.lex.i.r1 at.i.r3]
4091− [%typed at p.lex.i.r1 p.lex.i.r3]
4092− [%& [seg end.at.i.r4] t.r4]
4084+ [%& [[%typed at p.lex.i.r1 p.lex.i.r3] end.at.i.r4] t.r4]
40934085 --
40944086::
40954087+| %span-check
@@ -4473,7 +4465,6 @@
44734465 %const [%const at.s ~[%lit] %one ~]
44744466 %ref [%ref at.s ~[%name %wing] %one ~]
44754467 %tvar [%tvar at.s ~[%tvar] %one ~]
4476− %hole [%hole at.s ~[%'_'] %one ~]
44774468 %apply [%apply at.s ~[%'('] %shut (turn args.s outline-shape)]
44784469 %cell [%cell at.s ~[%'['] %shut (turn fields.s outline-sample)]
44794470 ::
@@ -4482,11 +4473,8 @@
44824473 %+ murn segs.s
44834474 |= g=pseg
44844475 ^- (unit outline)
4485− ?- -.g
4486− %knot ~
4487− %typed `[%typed at.g ~[%'['] %shut ~]
4488− %inferred `[%typed at.g ~[%'['] %shut ~[[%hole hole-at.g ~[%'_'] %one ~]]]
4489− ==
4476+ ?. ?=(%typed -.g) ~
4477+ `[%typed at.g ~[%'['] %shut ~]
44904478 [%path at.s ~[%'/'] %run ks]
44914479 ::
44924480 %union
@@ -4546,8 +4534,6 @@
45464534 [%path [1 9] [1 9] [1 21]]
45474535 [%face [1 7] [1 7] [1 21]]
45484536 ==
4549− :: an inferred path aura's hole spanning its = as well
4550− ['+$ x /a/[id=_]' ~[[%hole [1 13] [1 12] [1 14]]]]
45514537 :: an import's path cut short
45524538 ['/= c /ui/c' ~[[%jibb [1 1] [1 1] [1 11]]]]
45534539 :: brackets that close with the deeper lines, cut at their line's
@@ -4604,52 +4590,22 @@
46044590:: Each top-level inferred definition generalizes its free variables, and
46054591:: a use instantiates them afresh. Binders inside a gate stay monomorphic;
46064592:: capital variables in molds share one allocation within the definition.
4607−:: Atom constraints tied to an explicit capital or an inferred sample
4608−:: are generalized and printed. Other aura variables remain unsupported until
4609−:: their defaulting and inferred generalization are implemented.
4610−:: Bare @ is a separate unrestricted atom type. A directional fit check
4611−:: permits concrete atoms to widen to it, never the reverse. A fit that
4612−:: needs a not-yet-implemented constraint remains unsupported. Named unions
4613−:: retain origin and ordered arguments, including phantom arguments, apart
4614−:: from their display name. Generic cases must be disjoint for all arguments.
4615−:: Unnamed union printing is informational; it is not Jibb syntax.
4616−::
4617−:: `proj` is a reserved, type-directed operation, not an ordinary gate.
4618−:: The supported fragment selects uniquely faced fields from a known record
4619−:: in source order (reordering is a doc question). It records the original
4620−:: call, source and target types, and source axes with its definition;
4621−:: A single selected field keeps its face and uses one source axis.
4622−:: Checked module interfaces retain that evidence and their source, including
4623−:: the private prelude dependency. A later lowerer must replace the call by
4624−:: an inline gate applied to the operand once; no lowering is implemented yet.
4625−:: Ordinary fits never insert a projection. Unknown or variable-origin record
4626−:: spines, implicit narrowing inside selected fields, and projections in
4627−:: recursive groups remain unsupported. Directional fits bound faced-spine
4628−:: proofs to fewer than 1,024 cells; the projection planner has a separate
4629−:: 4,096-step bound. These are inference limits, not language limits.
4593+:: Decimal literals have atom-only variables; until their constraints
4594+:: can be printed and generalized, an unresolved one is unsupported.
4595+:: Bare @ is unsupported until its unrestricted-atom rule is implemented.
4596+:: Only unfaced cells are represented here.
46304597::
46314598+$ itype
46324599 $~ [%var 0]
46334600 $% [%var id=@ud]
46344601 [%avar id=@ud]
4635− [%nvar id=@ud]
46364602 [%atom aura=@ta]
4637− [%any-atom ~]
46384603 [%flag ~]
4639− [%noun ~]
4640− [%tag id=@ud literal=lit constructor=?]
4641− [%const literal=lit]
4642− [%collection name=term args=(list itype)]
4643− [%recursive module=term name=term label=(unit @t)]
4644− [%jrec at=path name=term label=(unit @t) head=term aura=@ta tail=term]
4645− [%union cases=(list itype) origin=(unit [at=path name=term]) label=(unit @t) args=(list itype)]
4646− [%face name=term body=itype]
46474604 [%fn sample=itype product=itype]
46484605 [%cell hed=itype tal=itype]
46494606 ==
46504607+$ ibinding [id=@ud val=itype]
46514608+$ isub (list ibinding)
4652−+$ ipending [id=@ud literal=lit]
46534609::
46544610++ itype-lookup
46554611 |= [n=@ud sub=isub]
@@ -4670,14 +4626,6 @@
46704626 =/ found=(unit itype) (itype-lookup id.t sub)
46714627 ?~ found t
46724628 $(t u.found)
4673− %nvar
4674− =/ found=(unit itype) (itype-lookup id.t sub)
4675− ?~ found t
4676− $(t u.found)
4677− %tag
4678− =/ found=(unit itype) (itype-lookup id.t sub)
4679− ?~ found t
4680− $(t u.found)
46814629 ==
46824630::
46834631++ itype-occurs
@@ -4687,18 +4635,8 @@
46874635 ?- -.t
46884636 %var =(n id.t)
46894637 %avar =(n id.t)
4690− %nvar =(n id.t)
46914638 %atom |
4692− %any-atom |
46934639 %flag |
4694− %noun |
4695− %tag =(n id.t)
4696− %const |
4697− %union |((lien cases.t |=(c=itype (itype-occurs n c sub))) (lien args.t |=(c=itype (itype-occurs n c sub))))
4698− %recursive |
4699− %jrec |
4700− %collection (lien args.t |=(c=itype (itype-occurs n c sub)))
4701− %face $(t body.t)
47024640 %fn |($(t sample.t) $(t product.t))
47034641 %cell |($(t hed.t) $(t tal.t))
47044642 ==
@@ -4715,46 +4653,19 @@
47154653 =. a (itype-walk a sub)
47164654 =. b (itype-walk b sub)
47174655 ?: =(a b) `sub
4718− ?: &(?=(%jrec -.a) ?=(%jrec -.b))
4719− ?:(&(=(at.a at.b) =(name.a name.b) =(head.a head.b) =(aura.a aura.b) =(tail.a tail.b)) `sub ~)
4720− ?: &(?=(%recursive -.a) ?=(%recursive -.b))
4721− ?:(&(=(module.a module.b) =(name.a name.b)) `sub ~)
4722− ?: &(?=(%union -.a) ?=(%union -.b))
4723− ?. =(origin.a origin.b) ~
4724− ?: &(?=(~ args.a) ?=(~ args.b)) ?:(=(cases.a cases.b) `sub ~)
4725− ?~ origin.a ~
4726− (itype-unify-args args.a args.b sub)
4727− ?: &(?=(%collection -.a) ?=(%collection -.b))
4728− ?. =(name.a name.b) ~
4729− (itype-unify-args args.a args.b sub)
47304656 ?: ?=(%var -.a)
47314657 ?: (itype-occurs id.a b sub) ~
47324658 `[[id.a b] sub]
47334659 ?: ?=(%var -.b)
47344660 ?: (itype-occurs id.b a sub) ~
47354661 `[[id.b a] sub]
4736− :: The narrower decimal constraint survives a match with an atom
4737− :: variable; decimal syntax alone does not make it a loobean.
4738− ?: &(?=(%nvar -.a) ?=(%avar -.b)) `[[id.b a] sub]
4739− ?: &(?=(%avar -.a) ?=(%nvar -.b)) `[[id.a b] sub]
4740− ?: ?=(%nvar -.a)
4741− ?. |(?=(%nvar -.b) ?=(%atom -.b)) ~
4742− `[[id.a b] sub]
4743− ?: ?=(%nvar -.b)
4744− ?. ?=(%atom -.a) ~
4745− `[[id.b a] sub]
47464662 ?: ?=(%avar -.a)
4747− ?. |(?=(%avar -.b) ?=(%atom -.b) ?=(%any-atom -.b) ?=(%flag -.b)) ~
4663+ ?. |(?=(%avar -.b) ?=(%atom -.b)) ~
47484664 `[[id.a b] sub]
47494665 ?: ?=(%avar -.b)
4750− ?. |(?=(%atom -.a) ?=(%any-atom -.a) ?=(%flag -.a)) ~
4666+ ?. ?=(%atom -.a) ~
47514667 `[[id.b a] sub]
4752− ?: &(?=(%const -.a) ?=(%const -.b))
4753− ?:(=(val.literal.a val.literal.b) `sub ~)
47544668 ?: &(?=(%atom -.a) ?=(%atom -.b)) ~
4755− ?: &(?=(%face -.a) ?=(%face -.b))
4756− ?. =(name.a name.b) ~
4757− $(a body.a, b body.b)
47584669 ?: &(?=(%fn -.a) ?=(%fn -.b))
47594670 =/ first=(unit isub) $(a sample.a, b sample.b)
47604671 ?~ first ~
@@ -4765,498 +4676,6 @@
47654676 $(a tal.a, b tal.b, sub u.first)
47664677 ~
47674678::
4768−++ itype-unify-args
4769− |= [as=(list itype) bs=(list itype) sub=isub]
4770− ^- (unit isub)
4771− ?~ as ?~(bs `sub ~)
4772− ?~ bs ~
4773− =/ next=(unit isub) (itype-unify i.as i.bs sub)
4774− ?~ next ~
4775− $(as t.as, bs t.bs, sub u.next)
4776−::
4777−:: +itype-fit: one-way widening from an actual type to an expected type
4778−::
4779−:: An unknown variable used where @ is expected gains a fresh atom
4780−:: constraint. Function compatibility involving @ remains unknown.
4781−::
4782−+$ ifit $%([%ok sub=isub next=@ud] [%bad ~] [%unknown ~])
4783−++ itype-has-any-atom
4784− |= [t=itype sub=isub]
4785− ^- ?
4786− =. t (itype-walk t sub)
4787− ?- -.t
4788− %var |
4789− %avar |
4790− %nvar |
4791− %atom |
4792− %any-atom &
4793− %flag |
4794− %noun |
4795− %tag |
4796− %const |
4797− %union |((lien cases.t |=(c=itype (itype-has-any-atom c sub))) (lien args.t |=(c=itype (itype-has-any-atom c sub))))
4798− %recursive |
4799− %jrec |
4800− %collection (lien args.t |=(c=itype (itype-has-any-atom c sub)))
4801− %face $(t body.t)
4802− %fn |($(t sample.t) $(t product.t))
4803− %cell |($(t hed.t) $(t tal.t))
4804− ==
4805−::
4806−::
4807−:: Hoon aura families are textual prefixes: @tD is in @t, and @uvJ
4808−:: is in @uv and @u. Jibb permits widening toward the prefix only.
4809−::
4810−++ aura-prefix
4811− |= [parent=@ta child=@ta]
4812− ^- ?
4813− =/ a=tape (trip parent)
4814− =/ b=tape (trip child)
4815− |-
4816− ?~ a &
4817− ?~ b |
4818− ?. =(i.a i.b) |
4819− $(a t.a, b t.b)
4820−::
4821−:: Related auras in a structural unification need a common-type rule;
4822−:: until that rule is implemented, report an unknown rather than error.
4823−::
4824−++ itype-family-related-collection-args
4825− |= [as=(list itype) bs=(list itype) sub=isub]
4826− ^- ?
4827− ?~ as |
4828− ?~ bs |
4829− ?: (itype-family-related i.as i.bs sub) &
4830− $(as t.as, bs t.bs)
4831−::
4832−++ itype-family-related
4833− |= [a=itype b=itype sub=isub]
4834− ^- ?
4835− =. a (itype-walk a sub)
4836− =. b (itype-walk b sub)
4837− ?: &(?=(%atom -.a) ?=(%atom -.b))
4838− ?. !=(aura.a aura.b) |
4839− |((aura-prefix aura.a aura.b) (aura-prefix aura.b aura.a))
4840− ?: &(?=(%collection -.a) ?=(%collection -.b))
4841− ?. =(name.a name.b) |
4842− (itype-family-related-collection-args args.a args.b sub)
4843− ?: &(?=(%face -.a) ?=(%face -.b))
4844− ?. =(name.a name.b) |
4845− $(a body.a, b body.b)
4846− ?: &(?=(%cell -.a) ?=(%cell -.b))
4847− |($(a hed.a, b hed.b) $(a tal.a, b tal.b))
4848− ?: &(?=(%fn -.a) ?=(%fn -.b))
4849− |($(a sample.a, b sample.b) $(a product.a, b product.b))
4850− |
4851−::
4852−:: A branch whose two result types are already concrete can use an
4853−:: explicitly present parent aura (or @) as its result. This does not
4854−:: guess a parent for sibling auras or solve variable-dependent joins.
4855−::
4856−++ itype-has-fixed-atom
4857− |= typ=itype
4858− ^- ?
4859− ?- -.typ
4860− %var |
4861− %avar |
4862− %nvar |
4863− %atom &
4864− %any-atom &
4865− %flag &
4866− %noun |
4867− %tag &
4868− %const &
4869− %union |((lien cases.typ |=(c=itype (itype-has-fixed-atom c))) (lien args.typ |=(c=itype (itype-has-fixed-atom c))))
4870− %recursive |
4871− %jrec |
4872− %collection (lien args.typ |=(c=itype (itype-has-fixed-atom c)))
4873− %face $(typ body.typ)
4874− %fn |($(typ sample.typ) $(typ product.typ))
4875− %cell |($(typ hed.typ) $(typ tal.typ))
4876− ==
4877−::
4878−++ itype-concrete-join
4879− |= [a=itype b=itype sub=isub]
4880− ^- (unit itype)
4881− =. a (itype-walk a sub)
4882− =. b (itype-walk b sub)
4883− ?: &(?=(%atom -.a) ?=(%atom -.b))
4884− ?: (aura-prefix aura.a aura.b) `a
4885− ?: (aura-prefix aura.b aura.a) `b
4886− ~
4887− ?: &(?=(%any-atom -.a) |(?=(%atom -.b) ?=(%flag -.b))) `a
4888− ?: &(?=(%any-atom -.b) |(?=(%atom -.a) ?=(%flag -.a))) `b
4889− ~
4890−::
4891−:: Unifying an already-bound tuple with a faced position would need to
4892−:: update the bound type. Until substitutions can retain that information,
4893−:: variable-dependent face merges stay unresolved.
4894−::
4895−++ itype-has-face
4896− |= [t=itype sub=isub]
4897− ^- ?
4898− =. t (itype-walk t sub)
4899− ?- -.t
4900− %collection (lien args.t |=(c=itype (itype-has-face c sub)))
4901− %face &
4902− %cell |($(t hed.t) $(t tal.t))
4903− %fn |($(t sample.t) $(t product.t))
4904− * |
4905− ==
4906−::
4907−++ itype-face-asym-collection-args
4908− |= [as=(list itype) bs=(list itype) sub=isub]
4909− ^- ?
4910− ?~ as |
4911− ?~ bs |
4912− ?: (itype-face-asym i.as i.bs sub) &
4913− $(as t.as, bs t.bs)
4914−::
4915−++ itype-face-asym
4916− |= [a=itype b=itype sub=isub]
4917− ^- ?
4918− =. a (itype-walk a sub)
4919− =. b (itype-walk b sub)
4920− ?: &(?=(%collection -.a) ?=(%collection -.b))
4921− ?. =(name.a name.b) |
4922− (itype-face-asym-collection-args args.a args.b sub)
4923− ?: &(?=(%face -.a) ?=(%face -.b)) $(a body.a, b body.b)
4924− ?: ?=(%face -.a) !|(?=(%var -.b) ?=(%avar -.b) ?=(%nvar -.b))
4925− ?: ?=(%face -.b) !|(?=(%var -.a) ?=(%avar -.a) ?=(%nvar -.a))
4926− ?: &(?=(%cell -.a) ?=(%cell -.b)) |($(a hed.a, b hed.b) $(a tal.a, b tal.b))
4927− ?: &(?=(%fn -.a) ?=(%fn -.b)) |($(a sample.a, b sample.b) $(a product.a, b product.b))
4928− |
4929−::
4930−:: A successful cast keeps any explicit faces from either side while
4931−:: retaining the target's aura choices. Both faces have already matched.
4932−::
4933−++ itype-merge-faces
4934− |= [actual=itype expected=itype sub=isub]
4935− ^- itype
4936− =. actual (itype-walk actual sub)
4937− =. expected (itype-walk expected sub)
4938− ?: &(?=(%face -.actual) ?=(%face -.expected))
4939− [%face name.expected $(actual body.actual, expected body.expected)]
4940− ?: ?=(%face -.actual)
4941− [%face name.actual $(actual body.actual)]
4942− ?: ?=(%face -.expected)
4943− [%face name.expected $(expected body.expected)]
4944− ?: &(?=(%cell -.actual) ?=(%cell -.expected))
4945− [%cell $(actual hed.actual, expected hed.expected) $(actual tal.actual, expected tal.expected)]
4946− expected
4947−::
4948−++ itype-output-may-be-cell
4949− |= [t=itype sub=isub]
4950− ^- ?
4951− =. t (itype-walk t sub)
4952− ?- -.t
4953− %var &
4954− %cell &
4955− %union &
4956− %recursive &
4957− %jrec &
4958− %noun &
4959− %collection &
4960− %face $(t body.t)
4961− %fn |($(t sample.t) $(t product.t))
4962− * |
4963− ==
4964−::
4965−++ pending-tags
4966− |= [tags=(list ipending) sub=isub]
4967− ^- ?
4968− ?~ tags |
4969− ?~ (itype-lookup id.i.tags sub) &
4970− $(tags t.tags)
4971−::
4972−++ pending-null
4973− |= [tags=(list ipending) sub=isub]
4974− ^- ?
4975− ?~ tags |
4976− ?: &(?=(%null form.literal.i.tags) ?=(~ (itype-lookup id.i.tags sub))) &
4977− $(tags t.tags)
4978−::
4979−:: Tags remain constrained until a mold selects a case or permitted atom
4980−:: type. Never generalize an unresolved tag through aliases or cells.
4981−::
4982−++ itype-has-tag
4983− |= t=itype
4984− ^- ?
4985− ?- -.t
4986− %tag &
4987− %collection (lien args.t |=(c=itype (itype-has-tag c)))
4988− %face $(t body.t)
4989− %fn |($(t sample.t) $(t product.t))
4990− %cell |($(t hed.t) $(t tal.t))
4991− %union |((lien cases.t |=(c=itype (itype-has-tag c))) (lien args.t |=(c=itype (itype-has-tag c))))
4992− * |
4993− ==
4994−::
4995−++ itype-has-union
4996− |= t=itype
4997− ^- ?
4998− ?- -.t
4999− %union &
5000− %collection (lien args.t |=(c=itype (itype-has-union c)))
5001− %face $(t body.t)
5002− %fn |($(t sample.t) $(t product.t))
5003− %cell |($(t hed.t) $(t tal.t))
5004− * |
5005− ==
5006−::
5007−:: Until a visible generic alias can be selected, expanding a named
5008−:: generic union would hide phantom arguments and its origin. This is a
5009−:: limitation of partial inference, not the unnamed-union print notation.
5010−::
5011−++ itype-has-hidden-generic
5012− |= t=itype
5013− ^- ?
5014− ?- -.t
5015− %union
5016− ?: &(?=(~ label.t) ?=(^ args.t)) &
5017− (lien (weld args.t cases.t) |=(c=itype (itype-has-hidden-generic c)))
5018− %collection (lien args.t |=(c=itype (itype-has-hidden-generic c)))
5019− %face $(t body.t)
5020− %fn |($(t sample.t) $(t product.t))
5021− %cell |($(t hed.t) $(t tal.t))
5022− * |
5023− ==
5024−::
5025−++ itype-has-recursive
5026− |= t=itype
5027− ^- ?
5028− ?- -.t
5029− %recursive &
5030− %jrec &
5031− %collection (lien args.t |=(c=itype (itype-has-recursive c)))
5032− %union (lien (weld args.t cases.t) |=(c=itype (itype-has-recursive c)))
5033− %face $(t body.t)
5034− %cell |($(t hed.t) $(t tal.t))
5035− %fn |($(t sample.t) $(t product.t))
5036− * |
5037− ==
5038−::
5039−++ itype-has-hidden-recursive
5040− |= t=itype
5041− ^- ?
5042− ?- -.t
5043− %recursive ?=(~ label.t)
5044− %jrec ?=(~ label.t)
5045− %collection (lien args.t |=(c=itype (itype-has-hidden-recursive c)))
5046− %union (lien (weld args.t cases.t) |=(c=itype (itype-has-hidden-recursive c)))
5047− %face $(t body.t)
5048− %cell |($(t hed.t) $(t tal.t))
5049− %fn |($(t sample.t) $(t product.t))
5050− * |
5051− ==
5052−::
5053−++ itype-fit-cases
5054− |= [actual=itype cases=(list itype) sub=isub next=@ud]
5055− ^- ifit
5056− =/ good=(unit ifit) ~
5057− =/ pending=? |
5058− |-
5059− ?~ cases
5060− ?: pending [%unknown ~]
5061− ?~ good [%bad ~]
5062− u.good
5063− =/ trial=ifit (itype-fit actual i.cases sub next)
5064− ?- -.trial
5065− %unknown $(cases t.cases, pending &)
5066− %bad $(cases t.cases)
5067− %ok
5068− ?^ good [%unknown ~]
5069− $(cases t.cases, good `trial)
5070− ==
5071−::
5072−:: A constructor needs a case with its tag at the head and a payload
5073−:: compatible with the expected gate sample. Other case forms do not
5074−:: identify a constructor.
5075−::
5076−++ itype-fit-ctor-cases
5077− |= [tag=lit sample=itype cases=(list itype) sub=isub next=@ud]
5078− ^- ifit
5079− =/ found=(unit ifit) ~
5080− |-
5081− ?~ cases ?~(found [%bad ~] u.found)
5082− =/ c=itype (itype-walk i.cases sub)
5083− ?. ?=(%cell -.c) $(cases t.cases)
5084− =/ head=itype (itype-walk hed.c sub)
5085− ?. ?=(%const -.head) $(cases t.cases)
5086− ?. =(%term form.literal.head) $(cases t.cases)
5087− ?. =(val.literal.head val.tag) $(cases t.cases)
5088− ?^ found [%unknown ~]
5089− =/ trial=ifit (itype-fit sample tal.c sub next)
5090− $(cases t.cases, found `trial)
5091−::
5092−++ itype-fit
5093− |= [actual=itype expected=itype sub=isub next=@ud]
5094− ^- ifit
5095− (itype-fit-inner actual expected sub next | |)
5096−++ itype-fit-inner
5097− |= [actual=itype expected=itype sub=isub next=@ud skip-width=? spine-proof=?]
5098− ^- ifit
5099− ?: &(!skip-width ?=(%cell -.actual) ?=(%cell -.expected) |((width-spine-exhausted actual 1.024) (width-spine-exhausted expected 1.024)))
5100− [%unknown ~]
5101− =/ known=(unit [source=iwfields target=iwfields])
5102− ?: skip-width ~
5103− (width-known-shape actual expected sub)
5104− =/ too-wide=? ?~(known | (gth (lent order.source.u.known) (lent order.target.u.known)))
5105− ?: too-wide [%unknown ~]
5106− =/ spine-checked=? |(spine-proof ?=(^ known))
5107− =/ uncertain=?
5108− |(?=(%var -.actual) ?=(%avar -.actual) ?=(%nvar -.actual) ?=(%var -.expected) ?=(%avar -.expected) ?=(%nvar -.expected))
5109− =/ actual-open=?
5110− |(?=(%var -.actual) ?=(%avar -.actual) ?=(%nvar -.actual))
5111− =. actual (itype-walk actual sub)
5112− =. expected (itype-walk expected sub)
5113− ?: =(actual expected) [%ok sub next]
5114− :: Any value can be used where a noun is expected. An unresolved
5115− :: bare tag is fixed as a constant; a constructor still needs a gate.
5116− ?: ?=(%noun -.expected)
5117− ?: ?=(%tag -.actual)
5118− ?: constructor.actual [%unknown ~]
5119− [%ok [[id.actual expected] sub] next]
5120− [%ok sub next]
5121− :: An arbitrary noun is not known to fit a narrower type.
5122− ?: &(?=(%noun -.actual) !?=(%var -.expected)) [%unknown ~]
5123− ?: &(!uncertain ?=(%jrec -.actual) ?=(%face -.expected)) $(expected body.expected)
5124− ?: &(!uncertain ?=(%face -.actual) ?=(%jrec -.expected)) $(actual body.actual)
5125− ?: &(?=(%jrec -.actual) ?=(%jrec -.expected))
5126− ?:(&(=(at.actual at.expected) =(name.actual name.expected) =(head.actual head.expected) =(aura.actual aura.expected) =(tail.actual tail.expected)) [%ok sub next] [%bad ~])
5127− ?: &(|(?=(%jrec -.actual) ?=(%jrec -.expected)) !|(?=(%var -.actual) ?=(%var -.expected))) [%unknown ~]
5128− ?: &(?=(%recursive -.actual) ?=(%recursive -.expected))
5129− ?:(&(=(module.actual module.expected) =(name.actual name.expected)) [%ok sub next] [%bad ~])
5130− ?: &(|(?=(%recursive -.actual) ?=(%recursive -.expected)) !|(?=(%var -.actual) ?=(%var -.expected))) [%unknown ~]
5131− ?: &(?=(%union -.actual) ?=(%union -.expected))
5132− ?. =(origin.actual origin.expected) [%unknown ~]
5133− ?: &(?=(~ args.actual) ?=(~ args.expected))
5134− ?:(=(cases.actual cases.expected) [%ok sub next] [%unknown ~])
5135− ?~ origin.actual [%unknown ~]
5136− =/ unified=(unit isub) (itype-unify-args args.actual args.expected sub)
5137− ?^ unified [%ok u.unified next]
5138− [%unknown ~]
5139− :: A known union can instantiate an unconstrained sample directly;
5140− :: preserve unknown results for variable-bound union origins.
5141− ?: &(!actual-open ?=(%union -.actual) ?=(%var -.expected))
5142− ?~ origin.actual [%unknown ~]
5143− =/ normalized=itype (itype-normalize actual sub)
5144− ?: |((itype-has-tag normalized) (itype-has-recursive normalized) (itype-has-any-atom actual sub)) [%unknown ~]
5145− =/ unified=(unit isub) (itype-unify actual expected sub)
5146− ?~ unified [%unknown ~]
5147− [%ok u.unified next]
5148− :: A concrete union value in a tuple may acquire the expected field's
5149− :: face. A variable-bound union still needs face propagation support.
5150− ?: &(!uncertain ?=(%union -.actual) ?=(%face -.expected))
5151− $(expected body.expected)
5152− ?: ?=(%union -.actual) [%unknown ~]
5153− ?: &(?=(%union -.expected) |(?=(%avar -.actual) ?=(%nvar -.actual))) [%unknown ~]
5154− ?: &(?=(%union -.expected) !?=(%var -.actual))
5155− (itype-fit-cases actual cases.expected sub next)
5156− ?: ?=(%tag -.actual)
5157− ?: ?=(%var -.expected)
5158− =/ u=(unit isub) (itype-unify actual expected sub)
5159− ?~ u [%bad ~]
5160− [%ok u.u next]
5161− ?: |(?=(%avar -.expected) ?=(%nvar -.expected)) [%unknown ~]
5162− ?: ?=(%face -.expected) $(expected body.expected)
5163− ?: constructor.actual
5164− ?. ?=(%fn -.expected) [%bad ~]
5165− =/ product=itype (itype-walk product.expected sub)
5166− =/ cases=(list itype) ?:(?=(%union -.product) cases.product ~[product])
5167− =/ trial=ifit (itype-fit-ctor-cases literal.actual sample.expected cases sub next)
5168− ?. ?=(%ok -.trial) trial
5169− [%ok [[id.actual expected] sub.trial] next.trial]
5170− :: Zero may be the empty list. A nested cell fit lacks the context
5171− :: needed to resolve it here, so do not report a definite mismatch.
5172− ?: &(?=(%collection -.expected) =(%list name.expected) =(0 val.literal.actual))
5173− [%unknown ~]
5174− ?: ?=(%const -.expected)
5175− ?:(=(val.literal.actual val.literal.expected) [%ok [[id.actual expected] sub] next] [%bad ~])
5176− ?: ?=(%atom -.expected)
5177− ?: |(=(%tas aura.expected) =(%ta aura.expected))
5178− [%ok [[id.actual expected] sub] next]
5179− [%bad ~]
5180− ?: ?=(%flag -.expected)
5181− ?:(|(=(0 val.literal.actual) =(1 val.literal.actual)) [%ok [[id.actual expected] sub] next] [%bad ~])
5182− ?: ?=(%any-atom -.expected) [%ok [[id.actual expected] sub] next]
5183− [%bad ~]
5184− ?: ?=(%const -.actual)
5185− ?: ?=(%var -.expected)
5186− =/ u=(unit isub) (itype-unify actual expected sub)
5187− ?~ u [%bad ~]
5188− [%ok u.u next]
5189− ?: |(?=(%avar -.expected) ?=(%nvar -.expected)) [%unknown ~]
5190− ?: ?=(%face -.expected) $(expected body.expected)
5191− ?: &(?=(%collection -.expected) =(%list name.expected) =(0 val.literal.actual))
5192− [%unknown ~]
5193− ?: ?=(%const -.expected)
5194− ?:(=(val.literal.actual val.literal.expected) [%ok sub next] [%bad ~])
5195− ?: ?=(%atom -.expected)
5196− ?: |(=(%tas aura.expected) =(%ta aura.expected)) [%ok sub next]
5197− [%bad ~]
5198− ?: ?=(%flag -.expected)
5199− ?:(|(=(0 val.literal.actual) =(1 val.literal.actual)) [%ok sub next] [%bad ~])
5200− ?: ?=(%any-atom -.expected) [%ok sub next]
5201− [%bad ~]
5202− ?: &(uncertain (itype-face-asym actual expected sub)) [%unknown ~]
5203− ?: ?=(%any-atom -.expected)
5204− ?: |(?=(%atom -.actual) ?=(%avar -.actual) ?=(%nvar -.actual) ?=(%flag -.actual)) [%ok sub next]
5205− ?: ?=(%var -.actual)
5206− =/ unified=(unit isub) (itype-unify actual [%avar next] sub)
5207− ?~ unified [%bad ~]
5208− [%ok u.unified +(next)]
5209− [%bad ~]
5210− ?: ?=(%any-atom -.actual)
5211− ?: ?=(%var -.expected)
5212− =/ unified=(unit isub) (itype-unify actual expected sub)
5213− ?~ unified [%bad ~]
5214− [%ok u.unified next]
5215− ?: |(?=(%avar -.expected) ?=(%nvar -.expected)) [%unknown ~]
5216− [%bad ~]
5217− ?: &(?=(%atom -.actual) ?=(%atom -.expected))
5218− ?: (aura-prefix aura.expected aura.actual) [%ok sub next]
5219− ?: &((aura-prefix aura.actual aura.expected) uncertain) [%unknown ~]
5220− [%bad ~]
5221− ?: &(?=(%cell -.actual) ?=(%cell -.expected))
5222− =/ first=ifit $(actual hed.actual, expected hed.expected, skip-width |, spine-proof |)
5223− ?. ?=(%ok -.first) first
5224− $(actual tal.actual, expected tal.expected, sub sub.first, next next.first, skip-width spine-checked, spine-proof spine-checked)
5225− :: A field may add a face to an occurrence of the very same type
5226− :: variable. Binding that variable to a face around itself would fail
5227− :: the occurs check, but its underlying type has already matched.
5228− ?: &(?=(%var -.actual) ?=(%face -.expected) =(actual (itype-walk body.expected sub)))
5229− [%ok sub next]
5230− :: Differing variables and faces need propagation that is not yet
5231− :: represented. Binding one to the face can create a false mismatch.
5232− ?: &(?=(%var -.actual) ?=(%face -.expected)) [%unknown ~]
5233− ?: &(?=(%face -.actual) ?=(%var -.expected)) [%unknown ~]
5234− ?: &(?=(%var -.actual) (itype-has-any-atom expected sub))
5235− [%unknown ~]
5236− ?: |(?=(%var -.actual) ?=(%var -.expected))
5237− =/ unified=(unit isub) (itype-unify actual expected sub)
5238− ?~ unified
5239− ?: |(?=(%face -.actual) ?=(%face -.expected)) [%unknown ~]
5240− ?: |((itype-has-recursive (itype-normalize actual sub)) (itype-has-recursive (itype-normalize expected sub))) [%unknown ~]
5241− ?: (itype-family-related actual expected sub) [%unknown ~]
5242− [%bad ~]
5243− [%ok u.unified next]
5244− ?: &(?=(%face -.actual) ?=(%face -.expected))
5245− ?. =(name.actual name.expected) [%bad ~]
5246− $(actual body.actual, expected body.expected, skip-width |, spine-proof |)
5247− ?: ?=(%face -.actual) $(actual body.actual, skip-width |, spine-proof |)
5248− ?: ?=(%face -.expected) $(expected body.expected, skip-width |, spine-proof |)
5249− ?: (itype-face-asym actual expected sub) [%unknown ~]
5250− ?: |((itype-has-any-atom actual sub) (itype-has-any-atom expected sub))
5251− [%unknown ~]
5252− =/ unified=(unit isub) (itype-unify actual expected sub)
5253− ?~ unified
5254− ?: |((itype-has-union (itype-normalize actual sub)) (itype-has-union (itype-normalize expected sub))) [%unknown ~]
5255− ?: |((itype-has-recursive (itype-normalize actual sub)) (itype-has-recursive (itype-normalize expected sub))) [%unknown ~]
5256− ?: (itype-family-related actual expected sub) [%unknown ~]
5257− [%bad ~]
5258− [%ok u.unified next]
5259−::
52604679++ itype-unify-test
52614680 ^- (list tape)
52624681 =/ a=itype [%var 0]
@@ -5281,155 +4700,21 @@
52814700 ["a shared type variable should reject incompatible arguments" problems]
52824701 =? problems ?=(~ (itype-unify same fine ~))
52834702 ["a shared type variable should accept equal arguments" problems]
5284− =/ list-a=itype [%collection %list ~[a]]
5285− =/ list-t=itype [%collection %list ~[txt]]
5286− =/ list-n=itype [%collection %list ~[num]]
5287− =? problems ?=(^ (itype-unify a list-a ~))
5288− ["occurs check should look through collection arguments" problems]
5289− =? problems !=((itype-vars list-a) ~[0])
5290− ["generalization should see collection argument variables" problems]
5291− =? problems !=((itype-rename list-a ~[[0 num]]) list-n)
5292− ["instantiation should rename collection argument variables" problems]
5293− =? problems ?=(^ (itype-unify list-t list-n ~))
5294− ["collection arguments with different auras should conflict" problems]
5295− =? problems ?=(^ (itype-unify list-t [%collection %unit ~[txt]] ~))
5296− ["different collection names should conflict" problems]
5297− =? problems !(itype-family-related list-t [%collection %list ~[[%atom 'tD']]] ~)
5298− ["collection arguments should preserve aura-family uncertainty" problems]
5299− =? problems !(itype-face-asym [%collection %list ~[[%face %x txt]]] list-t ~)
5300− ["collection arguments should preserve face uncertainty" problems]
5301− =/ recursive=itype [%recursive %fixture %chain `'chain.fixture']
5302− =/ same-recursive=itype [%recursive %fixture %chain ~]
5303− =/ other-recursive=itype [%recursive %other %chain `'chain.other']
5304− =? problems ?=(~ (itype-unify recursive same-recursive ~))
5305− ["recursive identity should not depend on its visible name" problems]
5306− =? problems ?=(^ (itype-unify recursive other-recursive ~))
5307− ["recursive identity should include the source module" problems]
5308− =/ recursive-fit=ifit (itype-fit recursive txt ~ 0)
5309− =? problems !?=(%unknown -.recursive-fit)
5310− ["opaque recursive types should not be unfolded by a fit" problems]
5311− =/ nested-fit=ifit
5312− (itype-fit [%collection %list ~[a]] list-t ~[[0 recursive]] 1)
5313− =? problems !?=(%unknown -.nested-fit)
5314− ["recursive types behind substitutions should remain uncertain" problems]
53154703 problems
53164704::
53174705:: The expression inference below is deliberately a fragment: bindings,
5318−:: simple gates, calls, fixed-aura literals, and some interpolated strings. The
4706+:: simple gates, unary calls, fixed-aura literals, and plain strings. The
53194707:: result for unsupported syntax is a diagnostic, never a checked module.
53204708::
53214709+$ ischeme [typ=itype vars=(list @ud)]
53224710+$ ienv (list [name=term scheme=ischeme])
5323−+$ imold-types (list [name=term template=ischeme])
5324−+$ iderived [name=term agent=term mark=term]
5325−+$ iwidth-definition [name=term original=expr typ=itype sub=isub projections=(list iwprojection)]
5326−+$ iwidth-dependency [at=path source=(unit @t) definitions=(list iwidth-definition)]
5327−+$ ifile [values=ienv molds=imold-types at=path derived=(list iderived) elaborations=(list iwidth-definition) dependencies=(list iwidth-dependency) source=(unit @t)]
5328−+$ ijimports (list [face=term interface=ifile])
5329−+$ icap [name=@t id=@ud at=span]
5330−+$ icaps (list icap)
5331−+$ iparams (list [name=@t typ=itype])
4711++$ icaps (list [name=@t id=@ud])
53324712+$ imolds (list [name=term body=shape])
53334713:: A caller supplies the exact noun returned by +read-mold:jibb-import.
53344714:: This core has no Ford dependencies; unrecognized payloads fail closed.
53354715+$ iexternals (list [module=term name=term result=*])
5336−+$ imark-externals (list [mark=term result=*])
5337−:: Hole obligations survive discarded expressions until their owning
5338−:: definition has inferred; their source spans support unresolved reports.
5339−+$ ihole [id=@ud at=span]
5340−:: Recursive-mold unfolding spends fuel in the threaded inference state.
5341−:: Retries can restart from an earlier state, so this bounds an attempt,
5342−:: not all parsing or module-checking work.
5343−:: Experimental: only closed, uniquely faced records have known axes.
5344−+$ iwfield [name=term axis=@ud typ=itype]
5345−+$ iwfields [order=(list iwfield) index=(map term iwfield)]
5346−+$ iwstep [name=term axis=@ud]
5347−+$ iwidth-result [steps=(list iwstep) sub=isub next=@ud]
5348−+$ iwprojection [at=span original=expr source=itype target=itype steps=(list iwstep)]
5349−++ width-scan
5350− |= [typ=itype sub=isub axis=@ud fuel=@ud]
5351− ^- (unit iwfields)
5352− =/ order=(list iwfield) ~
5353− =/ index=(map term iwfield) *(map term iwfield)
5354− |-
5355− ?: =(0 fuel) ~
5356− ?: |(?=(%var -.typ) ?=(%avar -.typ) ?=(%nvar -.typ)) ~
5357− ?: ?=(%face -.typ)
5358− =/ entry=iwfield [name.typ axis body.typ]
5359− ?: ?=(^ (~(get by index) name.entry)) ~
5360− `[(flop [entry order]) (~(put by index) name.entry entry)]
5361− ?. ?=(%cell -.typ) ~
5362− =/ head=itype hed.typ
5363− ?: |(?=(%var -.head) ?=(%avar -.head) ?=(%nvar -.head)) ~
5364− ?. ?=(%face -.head) ~
5365− =/ entry=iwfield [name.head (mul 2 axis) body.head]
5366− ?: ?=(^ (~(get by index) name.entry)) ~
5367− $(typ tal.typ, axis +((mul 2 axis)), fuel (dec fuel), order [entry order], index (~(put by index) name.entry entry))
5368−++ width-in-order
5369− |= [source=(list iwfield) target=(list iwfield)]
5370− ^- ?
5371− ?~ target &
5372− ?~ source |
5373− ?: =(name.i.source name.i.target) $(source t.source, target t.target)
5374− $(source t.source)
5375−++ width-fit-fields
5376− |= [source=(map term iwfield) target=(list iwfield) sub=isub next=@ud]
5377− ^- (unit iwidth-result)
5378− ?~ target `[~ sub next]
5379− =/ found=(unit iwfield) (~(get by source) name.i.target)
5380− ?~ found ~
5381− =/ fit=ifit (itype-fit typ.u.found typ.i.target sub next)
5382− ?. ?=(%ok -.fit) ~
5383− =/ rest=(unit iwidth-result) $(target t.target, sub sub.fit, next next.fit)
5384− ?~ rest ~
5385− `[[[name.i.target axis.u.found] steps.u.rest] sub.u.rest next.u.rest]
5386−++ width-spine-exhausted
5387− |= [t=itype fuel=@ud]
5388− ^- ?
5389− ?: =(0 fuel) &
5390− ?. ?=(%cell -.t) |
5391− ?. ?=(%face -.hed.t) |
5392− $(t tal.t, fuel (dec fuel))
5393−++ width-known-shape
5394− |= [actual=itype expected=itype sub=isub]
5395− ^- (unit [source=iwfields target=iwfields])
5396− ?. &(?=(%cell -.actual) ?=(%cell -.expected)) ~
5397− =/ source=(unit iwfields) (width-scan actual sub 1 1.024)
5398− =/ target=(unit iwfields) (width-scan expected sub 1 1.024)
5399− ?~ source ~
5400− ?~ target ~
5401− `[u.source u.target]
5402−::
5403−++ width-shape
5404− |= [actual=itype expected=itype sub=isub]
5405− ^- (unit [source=iwfields target=iwfields])
5406− ?. &(?=(%cell -.actual) ?=(%cell -.expected)) ~
5407− =/ source=(unit iwfields) (width-scan actual sub 1 4.096)
5408− =/ target=(unit iwfields) (width-scan expected sub 1 4.096)
5409− ?~ source ~
5410− ?~ target ~
5411− ?. (gth (lent order.u.source) (lent order.u.target)) ~
5412− `[u.source u.target]
5413−++ width-proj-shape
5414− |= [actual=itype expected=itype sub=isub]
5415− ^- (unit [source=iwfields target=iwfields])
5416− ?. &(|(?=(%cell -.actual) ?=(%face -.actual)) |(?=(%cell -.expected) ?=(%face -.expected))) ~
5417− =/ source=(unit iwfields) (width-scan actual sub 1 4.096)
5418− =/ target=(unit iwfields) (width-scan expected sub 1 4.096)
5419− ?~ source ~
5420− ?~ target ~
5421− ?: (lth (lent order.u.source) (lent order.u.target)) ~
5422− `[u.source u.target]
5423−::
5424−++ width-project
5425− |= [shape=[source=iwfields target=iwfields] sub=isub next=@ud]
5426− ^- (unit iwidth-result)
5427− ?. (width-in-order order.source.shape order.target.shape) ~
5428− (width-fit-fields index.source.shape order.target.shape sub next)
5429−::
5430−+$ istate [next=@ud sub=isub caps=icaps binders=(list @ud) molds=imolds globals=(list term) externals=iexternals surs=(list term) mark-externals=imark-externals marks=(list term) jimports=ijimports reserved-molds=(list term) params=iparams active=(list term) tags=(list ipending) in-mold=? at=path top-molds=(list term) prelude=(unit ifile) holes=(list ihole) jrec-fuel=@ud projections=(list iwprojection)]
5431−+$ idiag [msg=tape sites=(list [at=span note=tape])]
5432−+$ iresult (each [typ=itype state=istate] idiag)
4716++$ istate [next=@ud sub=isub caps=icaps molds=imolds globals=(list term) externals=iexternals surs=(list term) active=(list term) in-mold=?]
4717++$ iresult (each [typ=itype state=istate] tape)
54334718+$ isample-result (each [typ=itype env=ienv state=istate] tape)
54344719::
54354720++ ienv-lookup
@@ -5447,160 +4732,20 @@
54474732 |= [t=itype sub=isub]
54484733 ^- itype
54494734 =. t (itype-walk t sub)
5450− ?: ?=(%collection -.t) [%collection name.t (turn args.t |=(c=itype (itype-normalize c sub)))]
5451− ?: ?=(%union -.t)
5452− [%union (turn cases.t |=(c=itype (itype-normalize c sub))) origin.t label.t (turn args.t |=(c=itype (itype-normalize c sub)))]
5453− ?: ?=(%face -.t)
5454− [%face name.t $(t body.t)]
54554735 ?: ?=(%fn -.t)
54564736 [%fn $(t sample.t) $(t product.t)]
54574737 ?: ?=(%cell -.t)
54584738 [%cell $(t hed.t) $(t tal.t)]
54594739 t
54604740::
5461−::
5462−:: Default decimal variables only in types with no gates. A gate can
5463−:: generalize an aura from its sample, which requires constraint analysis
5464−:: beyond this fragment; leave those cases unresolved.
5465−::
5466−:: This helper only controls decimal defaulting in visible types. A noun
5467−:: may contain gates and is not proof of a gate-free value.
5468−++ itype-has-gate
5469− |= t=itype
5470− ^- ?
5471− ?- -.t
5472− %fn &
5473− %cell |($(t hed.t) $(t tal.t))
5474− %recursive |
5475− %jrec |
5476− %collection (lien args.t |=(c=itype (itype-has-gate c)))
5477− %face $(t body.t)
5478− %union (lien cases.t |=(c=itype (itype-has-gate c)))
5479− %tag |
5480− %const |
5481− %var |
5482− %avar |
5483− %nvar |
5484− %atom |
5485− %any-atom |
5486− %flag |
5487− %noun |
5488− ==
5489−::
5490−++ default-decimals
5491− |= t=itype
5492− ^- itype
5493− ?: (itype-has-gate t) t
5494− ?- -.t
5495− %nvar [%atom %ud]
5496− %collection [%collection name.t (turn args.t |=(c=itype (default-decimals c)))]
5497− %face [%face name.t $(t body.t)]
5498− %cell [%cell $(t hed.t) $(t tal.t)]
5499− * t
5500− ==
5501−::
5502−:: A hole is solved only by a fully determined type or a written
5503−:: in-scope type variable. Ordinary fresh variables are not evidence.
5504−:: Compare representatives after substitution, since unification can
5505−:: orient a written capital toward the hole rather than the reverse.
5506−++ hole-variable-id
5507− |= t=itype
5508− ^- (unit @ud)
5509− ?- -.t
5510− %var `id.t
5511− %avar `id.t
5512− %nvar `id.t
5513− %tag `id.t
5514− * ~
5515− ==
5516−++ hole-same-variable
5517− |= [a=itype b=itype]
5518− ^- ?
5519− =/ x=(unit @ud) (hole-variable-id a)
5520− ?~ x |
5521− =/ y=(unit @ud) (hole-variable-id b)
5522− ?~ y |
5523− =(u.x u.y)
5524−++ hole-known
5525− |= [t=itype state=istate]
5526− ^- ?
5527− =. t (itype-walk t sub.state)
5528− ?- -.t
5529− ?(%var %avar %nvar)
5530− ?: (lien caps.state |=(c=icap (hole-same-variable t (itype-walk [%var id.c] sub.state)))) &
5531− (lien params.state |=(p=[name=@t typ=itype] (hole-same-variable t (itype-walk typ.p sub.state))))
5532− %tag |
5533− %any-atom &
5534− %union &((levy cases.t |=(c=itype (hole-known c state))) (levy args.t |=(c=itype (hole-known c state))))
5535− %collection (levy args.t |=(c=itype (hole-known c state)))
5536− %face $(t body.t)
5537− %fn &($(t sample.t) $(t product.t))
5538− %cell &($(t hed.t) $(t tal.t))
5539− * &
5540− ==
5541−++ default-hole-numbers
5542− |= [all=(list ihole) prior=(list ihole) state=istate env=ienv permit=?]
5543− ^- istate
5544− :: Do not default a named capital or a variable captured from env.
5545− ?. permit state
5546− ?: =(all prior) state
5547− ?~ all state
5548− =/ t=itype (itype-walk [%var id.i.all] sub.state)
5549− =/ free=(list @ud) (free-env-vars env sub.state)
5550− =? state &(?=(%nvar -.t) !(hole-known t state) !(lien free |=(id=@ud =(id id.t))))
5551− state(sub [[id.t [%atom %ud]] sub.state])
5552− $(all t.all)
5553−::
5554−:: Only obligations created inside this definition belong to it.
5555−++ holes-created
5556− |= [all=(list ihole) prior=(list ihole)]
5557− ^- (list ihole)
5558− ?: =(all prior) ~
5559− ?~ all ~
5560− [i.all $(all t.all)]
5561−++ hole-uncertain
5562− |= [t=itype state=istate]
5563− ^- ?
5564− =. t (itype-walk t sub.state)
5565− ?- -.t
5566− ?(%tag %nvar %avar) !(hole-known t state)
5567− %union |((lien cases.t |=(c=itype (hole-uncertain c state))) (lien args.t |=(c=itype (hole-uncertain c state))))
5568− %collection (lien args.t |=(c=itype (hole-uncertain c state)))
5569− %face $(t body.t)
5570− %fn |($(t sample.t) $(t product.t))
5571− %cell |($(t hed.t) $(t tal.t))
5572− * |
5573− ==
5574−::
5575−++ unresolved-hole
5576− |= [all=(list ihole) prior=(list ihole) state=istate]
5577− ^- (unit idiag)
5578− =/ work=(list ihole) (flop (holes-created all prior))
5579− |-
5580− ?~ work ~
5581− ?: (hole-known [%var id.i.work] state) $(work t.work)
5582− ?: (hole-uncertain [%var id.i.work] state)
5583− `["type hole needs unsupported inference" ~[[at.i.work "type hole"]]]
5584− `["type hole needs a determined type" ~[[at.i.work "unresolved type hole"]]]
5585−::
55864741++ itype-vars
55874742 |= t=itype
55884743 ^- (list @ud)
55894744 ?- -.t
55904745 %var ~[id.t]
55914746 %avar ~[id.t]
5592− %nvar ~[id.t]
55934747 %atom ~
5594− %any-atom ~
55954748 %flag ~
5596− %noun ~
5597− %tag ~
5598− %const ~
5599− %union (zing (turn (weld args.t cases.t) |=(c=itype (itype-vars c))))
5600− %recursive ~
5601− %jrec ~
5602− %collection (zing (turn args.t |=(c=itype (itype-vars c))))
5603− %face $(t body.t)
56044749 %fn (weld $(t sample.t) $(t product.t))
56054750 %cell (weld $(t hed.t) $(t tal.t))
56064751 ==
@@ -5622,54 +4767,13 @@
56224767 =/ found=(unit itype) (itype-lookup id.t ren)
56234768 ?~ found t
56244769 u.found
5625− %avar
5626− =/ found=(unit itype) (itype-lookup id.t ren)
5627− ?~ found t
5628− u.found
5629− %nvar
5630− =/ found=(unit itype) (itype-lookup id.t ren)
5631− ?~ found t
5632− u.found
4770+ %avar t
56334771 %atom t
5634− %any-atom t
56354772 %flag t
5636− %noun t
5637− %tag t
5638− %const t
5639− %union [%union (turn cases.t |=(c=itype (itype-rename c ren))) origin.t label.t (turn args.t |=(c=itype (itype-rename c ren)))]
5640− %recursive t
5641− %jrec t
5642− %collection [%collection name.t (turn args.t |=(c=itype (itype-rename c ren)))]
5643− %face [%face name.t $(t body.t)]
56444773 %fn [%fn $(t sample.t) $(t product.t)]
56454774 %cell [%cell $(t hed.t) $(t tal.t)]
56464775 ==
56474776::
5648−:: Variable IDs are unique across the two kinds. Inspecting the
5649−:: normalized type preserves the atom constraint when renaming.
5650−::
5651−++ itype-var-is-atom
5652− |= [n=@ud t=itype]
5653− ^- ?
5654− ?- -.t
5655− %var |
5656− %avar =(n id.t)
5657− %nvar =(n id.t)
5658− %atom |
5659− %any-atom |
5660− %flag |
5661− %noun |
5662− %tag |
5663− %const |
5664− %union |((lien cases.t |=(c=itype (itype-var-is-atom n c))) (lien args.t |=(c=itype (itype-var-is-atom n c))))
5665− %recursive |
5666− %jrec |
5667− %collection (lien args.t |=(c=itype (itype-var-is-atom n c)))
5668− %face $(t body.t)
5669− %fn |($(t sample.t) $(t product.t))
5670− %cell |($(t hed.t) $(t tal.t))
5671− ==
5672−::
56734777:: Canonical numbering makes printed variables independent of the order
56744778:: the unifier happened to allocate intermediates.
56754779::
@@ -5680,8 +4784,7 @@
56804784 =/ n=@ud 0
56814785 |-
56824786 ?~ vars (itype-rename t ren)
5683− =/ replacement=itype ?:((itype-var-is-atom i.vars t) [%avar n] [%var n])
5684− $(vars t.vars, ren [[i.vars replacement] ren], n +(n))
4787+ $(vars t.vars, ren [[i.vars [%var n]] ren], n +(n))
56854788::
56864789++ instantiate-scheme
56874790 |= [scheme=ischeme state=istate]
@@ -5690,13 +4793,7 @@
56904793 =/ vars=(list @ud) vars.scheme
56914794 |-
56924795 ?~ vars [(itype-rename typ.scheme ren) state]
5693− =/ replacement=itype
5694− ?:((itype-var-is-atom i.vars typ.scheme) [%avar next.state] [%var next.state])
5695− :: A generalized atom variable is a valid origin for re-generalizing
5696− :: an alias, just as a sample binder is.
5697− =/ st=istate state(next +(next.state))
5698− =? binders.st ?=(%avar -.replacement) [next.state binders.state]
5699− $(vars t.vars, ren [[i.vars replacement] ren], state st)
4796+ $(vars t.vars, ren [[i.vars [%var next.state]] ren], state state(next +(next.state)))
57004797::
57014798++ icap-lookup
57024799 |= [n=@t caps=icaps]
@@ -5726,202 +4823,20 @@
57264823 $(ds t.ds)
57274824::
57284825::
5729−:: The caller supplies unchanged results from the source-aware importer.
5730−:: That boundary is trusted for source provenance: a fork alone cannot
5731−:: reveal cases Hoon collapsed before it was constructed. Validate the
5732−:: supplied graph independently, including pairwise disjointness. Fixed
5733−:: atoms, term singletons, cells, faces and proven forks are decoded;
5734−:: unsupported singletons, collections and recursive references fail.
5735−::
5736−++ jibb-face-name
5737− |= name=@
5738− ^- ?
5739− =/ chars=tape (trip (@t name))
5740− ?~ chars |
5741− ?. (is-lower i.chars) |
5742− (levy t.chars |=(c=@tD (in c name-mask)))
5743−::
5744−:: A source-aware reader result is trusted for origin. Validate every
5745−:: supplied branch and keep the recursive mold opaque: unfolding its
5746−:: root while naming only its tail would change its type identity.
5747−+$ irec-pattern [pat=upat has=?]
5748−++ rec-pattern
5749− |= [node=* module=term name=term]
5750− ^- (unit irec-pattern)
5751− ?@ node ~
5752− ?+ -.node ~
5753− %atom
5754− ?: ?=([%atom %n [~ @]] node)
5755− ?. =(0 +>+.node) ~
5756− `[[%atom `0] |]
5757− ?: ?=([%atom %tas [~ @]] node)
5758− =/ value=@ +>+.node
5759− ?. |(=(value 0) (jibb-face-name value)) ~
5760− `[[%atom `value] |]
5761− ?. ?=([%atom @ ~] node) ~
5762− =/ aura=@ta (@ta +<.node)
5763− ?. |(?=(?(%u %ud %ux %uv %t %ta %tas %p %da %dr) aura) =('tD' aura)) ~
5764− `[[%atom ~] |]
5765− %ref
5766− ?. ?=([%ref @ @] node) ~
5767− ?. &(=(module +<.node) =(name +>.node)) ~
5768− `[[%unknown ~] &]
5769− %apply
5770− ?. ?=([%apply %list [* ~]] node) ~
5771− =/ item $(node -.+>.node)
5772− ?~ item ~
5773− `[[%or ~[[%atom `0] [%cell pat.u.item [%unknown ~]]]] has.u.item]
5774− %face
5775− ?. ?=([%face @ *] node) ~
5776− ?. (jibb-face-name +<.node) ~
5777− $(node +>.node)
5778− %cell
5779− ?. ?=([%cell * *] node) ~
5780− =/ left $(node +<.node)
5781− ?~ left ~
5782− =/ right $(node +>.node)
5783− ?~ right ~
5784− `[[%cell pat.u.left pat.u.right] |(has.u.left has.u.right)]
5785− %fork
5786− =/ cases (rec-patterns +.node module name)
5787− ?~ cases ~
5788− ?~ pats.u.cases ~
5789− ?~ t.pats.u.cases ~
5790− ?. (rec-patterns-disjoint pats.u.cases) ~
5791− `[[%or pats.u.cases] has.u.cases]
5792− ==
5793−::
5794−++ rec-patterns
5795− |= [nodes=* module=term name=term]
5796− ^- (unit [pats=(list upat) has=?])
5797− ?@ nodes ?:(=(nodes 0) `[~ |] ~)
5798− =/ first (rec-pattern -.nodes module name)
5799− ?~ first ~
5800− =/ rest $(nodes +.nodes)
5801− ?~ rest ~
5802− `[[pat.u.first pats.u.rest] |(has.u.first has.u.rest)]
5803−::
5804−++ rec-patterns-disjoint
5805− |= pats=(list upat)
5806− ^- ?
5807− ?~ pats &
5808− ?. (levy t.pats |=(p=upat =(%disjoint (union-relate i.pats p)))) |
5809− $(pats t.pats)
5810−::
5811−::
5812−::
5813−:: Repeated faces along an imported record spine fail closed. Hoon's type
5814−:: graph can erase unfaced nested-cell boundaries, so that alone does not
5815−:: prove the original source repeated a name within one record. A faced
5816−:: body and each union alternative have separate scopes. Check recursive
5817−:: roots before making them opaque; unused molds are never inspected.
5818−::
5819−++ imported-faces-valid
5820− |= node=*
5821− ^- ?
5822− ?@ node &
5823− ?+ -.node &
5824− %face ?:(?=([%face @ *] node) $(node +>.node) |)
5825− %cell ?:(?=([%cell * *] node) (imported-record-faces-valid node ~) |)
5826− %fork (imported-faces-valid-list +.node)
5827− %apply ?:(?=([%apply @ *] node) (imported-faces-valid-list +>.node) |)
5828− %named
5829− ?. ?=([%named @ @ *] node) |
5830− =/ n=[%named module=@ name=@ body=*] ;;([%named module=@ name=@ body=*] node)
5831− (imported-faces-valid body.n)
5832− ==
5833−::
5834−++ imported-faces-valid-list
5835− |= nodes=*
5836− ^- ?
5837− ?@ nodes =(nodes 0)
5838− ?. (imported-faces-valid -.nodes) |
5839− $(nodes +.nodes)
5840−::
5841−++ imported-record-faces-valid
5842− |= [node=* names=(list @)]
5843− ^- ?
5844− ?: ?=([%cell * *] node)
5845− =/ head=* +<.node
5846− =/ rest=* +>.node
5847− ?: ?=([%face @ *] head)
5848− ?: (lien names |=(n=@ =(n +<.head))) |
5849− ?. (imported-faces-valid +>.head) |
5850− $(node rest, names [+<.head names])
5851− ?. (imported-faces-valid head) |
5852− $(node rest)
5853− ?: ?=([%face @ *] node)
5854− ?: (lien names |=(n=@ =(n +<.node))) |
5855− (imported-faces-valid +>.node)
5856− (imported-faces-valid node)
4826+:: The importer owns its algebra. Only successful %atom and %cell nouns
4827+:: in the supported subset are decoded here. In particular a singleton,
4828+:: face, union, collection or recursive reference must not be widened.
58574829::
58584830++ import-to-itype
58594831 |= node=*
58604832 ^- (unit itype)
58614833 ?@ node ~
58624834 ?+ -.node ~
5863− %noun ?:(=(node [%noun ~]) `[%noun ~] ~)
58644835 %atom
5865− :: A Hoon loobean singleton is one of the two Jibb loobeans.
5866− ?: ?=([%atom %f [~ @]] node)
5867− =/ value=@ +>+.node
5868− ?. |(=(value 0) =(value 1)) ~
5869− =/ printed=@t ?:(=(value 0) '%.y' '%.n')
5870− `[%const [%loobean %f value printed]]
5871− :: Hoon's null singleton is the same noun as Jibb's `~` mold.
5872− :: Other non-term singleton atoms remain unsupported here.
5873− ?: ?=([%atom %n [~ @]] node)
5874− ?. =(0 +>+.node) ~
5875− `[%const [%null %n 0 '~']]
5876− ?: ?=([%atom %tas [~ @]] node)
5877− =/ value=@ +>+.node
5878− ?. |(=(value 0) (jibb-face-name value)) ~
5879− =/ printed=@t ?:(=(value 0) '%$' (cat 3 '%' value))
5880− `[%const [%term %tas value printed]]
58814836 ?. ?=([%atom @ ~] node) ~
58824837 =/ aura=@ta (@ta +<.node)
5883− ?. |(?=(?(%u %ud %ux %uv %t %ta %tas %p %da %dr) aura) =('tD' aura)) ~
4838+ ?. ?=(?(%ud %ux %uv %t %ta %tas %p %da %dr) aura) ~
58844839 `[%atom aura]
5885− %named
5886− ?. ?=([%named @ @ *] node) ~
5887− =/ n=[%named module=@ name=@ body=*] ;;([%named module=@ name=@ body=*] node)
5888− ?. &((jibb-face-name module.n) (jibb-face-name name.n)) ~
5889− ?. ?=([%fork *] body.n) ~
5890− =/ proof=(unit irec-pattern) (rec-pattern body.n (@tas module.n) (@tas name.n))
5891− ?~ proof ~
5892− ?. has.u.proof ~
5893− `[%recursive (@tas module.n) (@tas name.n) `(crip "{(trip name.n)}.{(trip module.n)}")]
5894− %apply
5895− ?. ?=([%apply @ *] node) ~
5896− =/ name=term (@tas +<.node)
5897− =/ arity=@ud
5898− ?: |(=(%list name) =(%unit name) =(%set name) =(%qeu name)) 1
5899− ?: |(=(%map name) =(%mop name) =(%jar name) =(%jug name)) 2
5900− 0
5901− ?: =(arity 0) ~
5902− =/ args=(unit (list itype)) (import-to-itypes +>.node)
5903− ?~ args ~
5904− ?. =(arity (lent u.args)) ~
5905− `[%collection name u.args]
5906− %fork
5907− :: Hoon's ordinary ? mold is the fork of its two %f singletons.
5908− =/ raw=* +.node
5909− ?: |(=(raw ~[[%atom %f `0] [%atom %f `1]]) =(raw ~[[%atom %f `1] [%atom %f `0]]))
5910− `[%flag ~]
5911− =/ cases=(unit (list itype)) (import-to-itypes raw)
5912− ?~ cases ~
5913− ?~ u.cases ~
5914− ?~ t.u.cases ~
5915− ?: (import-has-loobean-singleton u.cases) ~
5916− ?. (import-cases-disjoint u.cases) ~
5917− `[%union u.cases ~ ~ ~]
5918− %face
5919− ?. ?=([%face @ *] node) ~
5920− =/ name=@ +<.node
5921− ?. (jibb-face-name name) ~
5922− =/ body=(unit itype) $(node +>.node)
5923− ?~ body ~
5924− `[%face (@tas name) u.body]
59254840 %cell
59264841 ?. ?=([%cell * *] node) ~
59274842 =/ left=(unit itype) $(node +<.node)
@@ -5931,52 +4846,6 @@
59314846 `[%cell u.left u.right]
59324847 ==
59334848::
5934−++ import-direct-loobean
5935− |= t=itype
5936− ^- ?
5937− ?: ?=(%face -.t) $(t body.t)
5938− ?: ?=(%union -.t) (import-has-loobean-singleton cases.t)
5939− ?=([%const [%loobean *]] t)
5940−::
5941−++ import-has-loobean-singleton
5942− |= cases=(list itype)
5943− ^- ?
5944− ?~ cases |
5945− ?: (import-direct-loobean i.cases) &
5946− $(cases t.cases)
5947−::
5948−++ import-to-itypes
5949− |= nodes=*
5950− ^- (unit (list itype))
5951− ?@ nodes ?:(=(nodes 0) `~ ~)
5952− =/ first (import-to-itype -.nodes)
5953− ?~ first ~
5954− =/ rest $(nodes +.nodes)
5955− ?~ rest ~
5956− `[u.first u.rest]
5957−::
5958−++ import-type-pattern
5959− |= typ=itype
5960− ^- upat
5961− ?- -.typ
5962− %noun [%all ~]
5963− %atom [%atom ~]
5964− %flag [%or ~[[%atom `0] [%atom `1]]]
5965− %const [%atom `val.literal.typ]
5966− %face $(typ body.typ)
5967− %cell [%cell $(typ hed.typ) $(typ tal.typ)]
5968− %union [%or (turn cases.typ |=(t=itype (import-type-pattern t)))]
5969− * [%unknown ~]
5970− ==
5971−::
5972−++ import-cases-disjoint
5973− |= cases=(list itype)
5974− ^- ?
5975− ?~ cases &
5976− =/ first=upat (import-type-pattern i.cases)
5977− ?. (levy t.cases |=(t=itype =(%disjoint (union-relate first (import-type-pattern t))))) |
5978− $(cases t.cases)
5979−::
59804849++ find-imported-mold
59814850 |= [module=term name=term externals=iexternals surs=(list term)]
59824851 ^- (unit itype)
@@ -5988,15 +4857,7 @@
59884857 =/ result=* result.i.found
59894858 ?@ result ~
59904859 ?. ?=(%& -.result) ~
5991− =/ node=* +.result
5992− ?. (imported-faces-valid node) ~
5993− ?@ node (import-to-itype node)
5994− ?: ?=(%ref -.node) (import-to-itype node)
5995− =/ pattern=(unit irec-pattern) (rec-pattern node module name)
5996− ?~ pattern (import-to-itype node)
5997− ?. has.u.pattern (import-to-itype node)
5998− `[%recursive module name `(crip "{(trip name)}.{(trip module)}")]
5999−
4860+ (import-to-itype +.result)
60004861::
60014862++ collect-sur-imports
60024863 |= imports=(list import)
@@ -6006,354 +4867,14 @@
60064867 [name.i.imports $(imports t.imports)]
60074868 $(imports t.imports)
60084869::
6009−++ collect-mark-imports
6010− |= imports=(list import)
6011− ^- (list term)
6012− ?~ imports ~
6013− ?: ?=(%mark -.i.imports)
6014− [mark.i.imports $(imports t.imports)]
6015− $(imports t.imports)
6016−::
6017−++ find-imported-mark
6018− |= [name=term externals=imark-externals marks=(list term)]
6019− ^- (unit itype)
6020− ?. (unique-value-name name marks) ~
6021− =/ found=imark-externals
6022− (skim externals |=(e=[mark=term result=*] =(name mark.e)))
6023− ?~ found ~
6024− ?^ t.found ~
6025− =/ result=* result.i.found
6026− ?@ result ~
6027− ?. ?=(%& -.result) ~
6028− ?. (imported-faces-valid +.result) ~
6029− (import-to-itype +.result)
6030−::
6031−++ find-jibb-interface
6032− |= [face=term imports=ijimports]
6033− ^- (unit ifile)
6034− ?~ imports ~
6035− ?: =(face face.i.imports) `interface.i.imports
6036− $(imports t.imports)
6037−::
6038−++ find-jibb-mold
6039− |= [name=term iface=ifile]
6040− ^- (unit ischeme)
6041− =/ ms=imold-types molds.iface
6042− |-
6043− ?~ ms ~
6044− ?: =(name name.i.ms) `template.i.ms
6045− $(ms t.ms)
6046−::
6047−:: An exported alias may name a union from another module. Only a
6048−:: nongeneric alias of the same origin is usable through this import face.
6049−::
6050−++ imported-union-alias
6051− |= [origin=[at=path name=term] molds=imold-types]
6052− ^- (unit term)
6053− ?~ molds ~
6054− =/ template=ischeme template.i.molds
6055− ?: &(?=(~ vars.template) ?=(%union -.typ.template))
6056− ?:(=(`origin origin.typ.template) `name.i.molds $(molds t.molds))
6057− $(molds t.molds)
6058−::
6059−:: A public non-generic alias names exactly its origin and arguments.
6060−:: Reusing only an origin could print a different generic instantiation.
6061−++ prelude-union-alias
6062− |= [origin=[at=path name=term] args=(list itype) molds=imold-types]
6063− ^- (unit term)
6064− ?^ args ~
6065− ?~ molds ~
6066− =/ template=ischeme template.i.molds
6067− ?: &(?=(~ vars.template) ?=(%union -.typ.template))
6068− ?:(&(=(`origin origin.typ.template) =(args args.typ.template)) `name.i.molds $(molds t.molds))
6069− $(molds t.molds)
6070−::
6071−:: Names exported by the directly imported module are visible through its
6072−:: face; a matching prelude alias is also visible without a qualifier.
6073−::
6074−++ jrec-alias
6075− |= [origin=path name=term molds=imold-types]
6076− ^- (unit term)
6077− ?~ molds ~
6078− =/ template=ischeme template.i.molds
6079− ?: &(?=(~ vars.template) ?=(%jrec -.typ.template) =(at.typ.template origin) =(name.typ.template name)) `name.i.molds
6080− $(molds t.molds)
6081−::
6082−++ itype-in-import
6083− |= [t=itype iface=ifile face=term prelude=(unit ifile)]
6084− ^- itype
6085− ?- -.t
6086− %union
6087− =/ label=(unit @t)
6088− ?~ origin.t ~
6089− ?: =(at.u.origin.t /lib/jibb/prelude/jibb) `name.u.origin.t
6090− =/ public=(unit term)
6091− ?~ prelude ~
6092− (prelude-union-alias u.origin.t args.t molds.u.prelude)
6093− ?^ public `u.public
6094− =/ alias=(unit term) ~
6095− =? alias &(=(at.u.origin.t at.iface) ?=(^ (find-jibb-mold name.u.origin.t iface))) `name.u.origin.t
6096− =? alias ?=(~ alias) (imported-union-alias u.origin.t molds.iface)
6097− ?~ alias ~
6098− `(crip "{(trip u.alias)}.{(trip face)}")
6099− [%union (turn cases.t |=(c=itype (itype-in-import c iface face prelude))) origin.t label (turn args.t |=(c=itype (itype-in-import c iface face prelude)))]
6100− %recursive [%recursive module.t name.t ~]
6101− %jrec
6102− =/ public=(unit term) ?~(prelude ~ (jrec-alias at.t name.t molds.u.prelude))
6103− ?^ public t(label `u.public)
6104− =/ alias=(unit term) (jrec-alias at.t name.t molds.iface)
6105− ?~ alias t(label ~)
6106− t(label `(crip "{(trip u.alias)}.{(trip face)}"))
6107− %collection [%collection name.t (turn args.t |=(c=itype (itype-in-import c iface face prelude)))]
6108− %face [%face name.t $(t body.t)]
6109− %fn [%fn $(t sample.t) $(t product.t)]
6110− %cell [%cell $(t hed.t) $(t tal.t)]
6111− * t
6112− ==
6113−::
6114−++ label-direct-union
6115− |= [typ=itype body=shape name=term state=istate]
6116− ^- itype
6117− ?. ?=(%union -.typ) typ
6118− =/ direct=? ?=(%union -.body)
6119− =? direct ?=(%generic -.body) ?=(%union -.body.body)
6120− ?. direct typ
6121− ?. (lien top-molds.state |=(n=term =(n name))) typ
6122− [%union cases.typ `[at.state name] `name args.typ]
6123−::
6124−:: Generic mold parameters are lexical and distinct from the enclosing
6125−:: value's capital variables. Arguments are substituted only once, so
6126−:: an argument's variable ID cannot be captured by a template ID.
6127−:: A generic alias of a named union keeps the underlying union's origin
6128−:: and substituted argument order; an originless union stays unsupported.
6129−::
6130−++ iparam-lookup
6131− |= [name=@t params=iparams]
6132− ^- (unit itype)
6133− ?~ params ~
6134− ?: =(name name.i.params) `typ.i.params
6135− $(params t.params)
6136−::
6137−++ distinct-params
6138− |= names=(list @t)
6139− ^- ?
6140− ?~ names &
6141− ?: (lien t.names |=(n=@t =(n i.names))) |
6142− $(names t.names)
6143−::
6144−++ bind-params
6145− |= [names=(list @t) args=(list itype)]
6146− ^- (unit iparams)
6147− ?~ names ?~(args `~ ~)
6148− ?~ args ~
6149− =/ rest=(unit iparams) $(names t.names, args t.args)
6150− ?~ rest ~
6151− `[[i.names i.args] u.rest]
6152−::
6153−++ template-apply
6154− |= [template=ischeme args=(list itype)]
6155− ^- (unit itype)
6156− =/ vars=(list @ud) vars.template
6157− =/ ren=isub ~
6158− |-
6159− ?~ vars ?~(args `(itype-rename typ.template ren) ~)
6160− ?~ args ~
6161− $(vars t.vars, args t.args, ren [[i.vars i.args] ren])
6162−::
6163−++ infer-shape-args
6164− |= [args=(list shape) state=istate]
6165− ^- (unit [types=(list itype) state=istate])
6166− ?~ args `[~ state]
6167− =/ head=(unit [typ=itype state=istate]) (infer-simple-shape i.args state)
6168− ?~ head ~
6169− =/ tail=(unit [types=(list itype) state=istate]) $(args t.args, state state.u.head)
6170− ?~ tail ~
6171− `[[typ.u.head types.u.tail] state.u.tail]
6172−::
6173−++ fresh-mold-params
6174− |= [names=(list @t) next=@ud]
6175− ^- [params=iparams vars=(list @ud) next=@ud]
6176− ?~ names [~ ~ next]
6177− =/ rest=[params=iparams vars=(list @ud) next=@ud] $(names t.names, next +(next))
6178− [[[i.names [%var next]] params.rest] [next vars.rest] next.rest]
6179−::
6180−:: Recognize a unique top-level source mold with exactly a null case and a
6181−:: faced atom-headed cell whose faced tail names that same mold. Its Jibb
6182−:: path and name provide nominal identity. Other recursive shapes fail closed;
6183−:: construction and matching expose the proven shape one layer at a time.
6184−++ simple-source-recursive
6185− |= [name=term sh=shape state=istate]
6186− ^- (unit itype)
6187− ?. (lien top-molds.state |=(n=term =(n name))) ~
6188− =/ original=(unit shape) (find-simple-mold name molds.state)
6189− ?~ original ~
6190− ?. =(u.original sh) ~
6191− ?. ?=(%union -.sh) ~
6192− =/ cs=(list shape) cases.sh
6193− ?~ cs ~
6194− ?~ t.cs ~
6195− ?^ t.t.cs ~
6196− ?. ?=(%const -.i.cs) ~
6197− ?. =(%null form.lit.i.cs) ~
6198− ?. ?=(%cell -.i.t.cs) ~
6199− =/ fs=(list field) fields.i.t.cs
6200− ?~ fs ~
6201− ?~ t.fs ~
6202− ?^ t.t.fs ~
6203− ?. ?=(%face -.i.fs) ~
6204− ?. ?=(%aura -.shape.i.fs) ~
6205− ?. !=(0 aura.shape.i.fs) ~
6206− ?. ?=(%face -.i.t.fs) ~
6207− ?. !=(name.i.fs name.i.t.fs) ~
6208− =/ tail=shape shape.i.t.fs
6209− ?. ?=(%ref -.tail) ~
6210− ?. =(names.tail ~[name]) ~
6211− `[%jrec at.state name `name name.i.fs aura.shape.i.fs name.i.t.fs]
6212−::
6213−++ infer-mold-template
6214− |= [sh=shape state=istate]
6215− ^- (unit [template=ischeme state=istate])
6216− =/ direct=(unit itype)
6217− ?. ?=([@ ~] active.state) ~
6218− (simple-source-recursive i.active.state sh state)
6219− ?^ direct `[[u.direct ~] state]
6220− ?: ?=(%generic -.sh)
6221− ?~ vars.sh ~
6222− ?. (distinct-params vars.sh) ~
6223− =/ fresh=[params=iparams vars=(list @ud) next=@ud] (fresh-mold-params vars.sh next.state)
6224− =/ out=(unit [typ=itype state=istate])
6225− (infer-simple-shape body.sh state(next next.fresh, params params.fresh, in-mold &))
6226− ?~ out ~
6227− ?^ (unresolved-hole holes.state.u.out holes.state state.u.out) ~
6228− ?: &(?=(%union -.typ.u.out) !?=(%union -.body.sh) ?=(~ origin.typ.u.out)) ~
6229− =? typ.u.out &(?=(%union -.typ.u.out) ?=(%union -.body.sh))
6230− typ.u.out(args (turn vars.fresh |=(n=@ud `itype`[%var n])))
6231− =/ used=(list @ud) (itype-vars typ.u.out)
6232− ?. (levy used |=(n=@ud (lien vars.fresh |=(p=@ud =(p n))))) ~
6233− `[[typ.u.out vars.fresh] state.u.out(params params.state, in-mold in-mold.state, holes holes.state)]
6234− =/ out=(unit [typ=itype state=istate])
6235− (infer-simple-shape sh state(params ~, in-mold &))
6236− ?~ out ~
6237− ?^ (unresolved-hole holes.state.u.out holes.state state.u.out) ~
6238− ?: ?=(^ (itype-vars typ.u.out)) ~
6239− `[[typ.u.out ~] state.u.out(params params.state, in-mold in-mold.state, holes holes.state)]
6240−::
6241−:: A direct imported reference may carry definite reader evidence. Only
6242−:: uniquely supplied, declared inputs are used; unsupported data stay generic.
6243−++ direct-import-invalid
6244− |= [sh=shape state=istate]
6245− ^- (unit idiag)
6246− ?. ?=(%ref -.sh) ~
6247− ?~ names.sh ~
6248− =/ n=term i.names.sh
6249− =/ raw=*
6250− ?~ t.names.sh
6251− ?. (unique-value-name n marks.state) ~
6252− ?: (lien surs.state |=(x=term =(x n))) ~
6253− ?: ?=(^ (find-jibb-interface n jimports.state)) ~
6254− ?: (lien globals.state |=(x=term =(x n))) ~
6255− ?: (lien reserved-molds.state |=(x=term =(x n))) ~
6256− ?: (lien molds.state |=(m=[name=term body=shape] =(n name.m))) ~
6257− =/ found=imark-externals (skim mark-externals.state |=(e=[mark=term result=*] =(mark.e n)))
6258− ?~ found ~
6259− ?^ t.found ~
6260− result.i.found
6261− ?^ t.t.names.sh ~
6262− =/ mod=term i.t.names.sh
6263− ?: ?=(^ (find-jibb-interface mod jimports.state)) ~
6264− ?. (unique-value-name mod surs.state) ~
6265− ?: (lien marks.state |=(x=term =(x mod))) ~
6266− ?: (lien globals.state |=(x=term =(x mod))) ~
6267− ?: (lien reserved-molds.state |=(x=term =(x mod))) ~
6268− ?: (lien molds.state |=(m=[name=term body=shape] =(mod name.m))) ~
6269− =/ found=iexternals (skim externals.state |=(e=[module=term name=term result=*] &(=(module.e mod) =(name.e n))))
6270− ?~ found ~
6271− ?^ t.found ~
6272− result.i.found
6273− ?. ?=([%invalid ?(%aura %core) @] raw) ~
6274− `["{(trip +>.raw)}" ~[[at.sh "invalid imported mold"]]]
6275−::
6276−:: Replay only the shape branches whose evaluation order we can prove.
6277−:: Successful prefixes must be checked before descending to a failure.
6278−++ nested-import-invalid
4870+++ infer-simple-shape
62794871 |= [sh=shape state=istate]
6280− ^- (unit idiag)
6281− ?: ?=(^ (infer-simple-shape sh state)) ~
4872+ ^- (unit [typ=itype state=istate])
62824873 ?- -.sh
6283− %ref
6284− =/ direct=(unit idiag) (direct-import-invalid sh state)
6285− ?^ direct direct
6286− ?~ names.sh ~
6287− ?^ t.names.sh ~
6288− =/ n=term i.names.sh
6289− ?: (lien marks.state |=(x=term =(x n))) ~
6290− ?: (lien active.state |=(x=term =(x n))) ~
6291− =/ found=(unit shape) (find-simple-mold n molds.state)
6292− ?~ found ~
6293− $(sh u.found, state state(active [n active.state], in-mold &, params ~))
6294− %fn
6295− =/ first=(unit [typ=itype state=istate]) (infer-simple-shape sample.sh state)
6296− ?~ first $(sh sample.sh)
6297− $(sh product.sh, state state.u.first)
6298− %cell (nested-field-invalid fields.sh state)
6299− * ~
6300− ==
6301−::
6302−++ nested-field-invalid
6303− |= [fields=(list field) state=istate]
6304− ^- (unit idiag)
6305− ?~ fields ~
6306− =/ sh=shape
6307− ?- -.i.fields
6308− %bare shape.i.fields
6309− %face shape.i.fields
6310− %pun [%ref at.i.fields ~[name.i.fields]]
6311− ==
6312− =/ out=(unit [typ=itype state=istate]) (infer-simple-shape sh state)
6313− ?~ out (nested-import-invalid sh state)
6314− $(fields t.fields, state state.u.out)
6315−::
6316−++ sample-import-invalid
6317− |= [s=sample env=ienv state=istate]
6318− ^- (unit idiag)
6319− =/ result=isample-result (infer-sample s env state)
6320− ?: ?=(%& -.result) ~
6321− ?. =(p.result "sample mold is not supported by partial inference") ~
6322− ?- s
6323− [%face *] (nested-import-invalid shape.s state)
6324− [%bare *] (nested-import-invalid shape.s state)
6325− [%pun *] (nested-import-invalid [%ref at.s ~[name.s]] state)
6326− [%cell *] (nested-samples-invalid items.s env state)
6327− * ~
6328− ==
6329−::
6330−++ nested-samples-invalid
6331− |= [items=(list sample) env=ienv state=istate]
6332− ^- (unit idiag)
6333− ?~ items ~
6334− =/ head=isample-result (infer-sample i.items env state)
6335− ?: ?=(%| -.head) (sample-import-invalid i.items env state)
6336− $(items t.items, env env.p.head, state state.p.head)
6337−::
6338−++ infer-simple-shape
6339− |= [sh=shape state=istate]
6340− ^- (unit [typ=itype state=istate])
6341− ?- -.sh
6342− %hole `[[%var next.state] state(next +(next.state), holes [[next.state at.sh] holes.state])]
63434874 %aura
6344− ?: =(0 aura.sh) `[[%any-atom ~] state]
4875+ ?: =(0 aura.sh) ~
63454876 `[[%atom aura.sh] state]
63464877 %flag `[[%flag ~] state]
6347− %noun `[[%noun ~] state]
6348− %const
6349− ?. |(=(%term form.lit.sh) =(%null form.lit.sh)) ~
6350− `[[%const lit.sh] state]
6351− %union
6352− =/ pairs=(list upair) (union-pairs cases.sh molds.state)
6353− ?. (levy pairs |=(p=upair =(%disjoint relation.p))) ~
6354− =/ cs=(unit [types=(list itype) state=istate]) (infer-shape-args cases.sh state)
6355− ?~ cs ~
6356− `[[%union types.u.cs ~ ~ ~] state.u.cs]
63574878 %cell (infer-simple-fields fields.sh state)
63584879 %fn
63594880 =/ arg=(unit [typ=itype state=istate]) $(sh sample.sh)
@@ -6366,83 +4887,22 @@
63664887 =/ n=term i.names.sh
63674888 ?^ t.names.sh
63684889 ?^ t.t.names.sh ~
6369− =/ iface=(unit ifile) (find-jibb-interface i.t.names.sh jimports.state)
6370− ?^ iface
6371− =/ found=(unit ischeme) (find-jibb-mold n u.iface)
6372− ?~ found ~
6373− ?^ vars.u.found ~
6374− `[(itype-in-import typ.u.found u.iface i.t.names.sh prelude.state) state]
63754890 =/ found=(unit itype)
63764891 (find-imported-mold i.t.names.sh n externals.state surs.state)
63774892 ?~ found ~
63784893 `[u.found state]
6379− ?: (lien marks.state |=(x=term =(x n)))
6380− ?^ (find-simple-mold n molds.state) ~
6381− =/ imported=(unit itype) (find-imported-mark n mark-externals.state marks.state)
6382− ?~ imported ~
6383− `[u.imported state]
63844894 ?: (lien active.state |=(x=term =(x n))) ~
63854895 =/ found=(unit shape) (find-simple-mold n molds.state)
6386− ?~ found
6387− ?: (lien molds.state |=(m=[name=term body=shape] =(name.m n))) ~
6388− ?~ prelude.state ~
6389− =/ prelude-entry=(unit ischeme) (find-jibb-mold n u.prelude.state)
6390− ?~ prelude-entry ~
6391− ?^ vars.u.prelude-entry ~
6392− `[typ.u.prelude-entry state]
6393− =/ direct=(unit itype) (simple-source-recursive n u.found state)
6394− ?^ direct `[u.direct state]
6395− =/ out=(unit [typ=itype state=istate])
6396− $(sh u.found, state state(active [n active.state], in-mold &, params ~))
6397− ?~ out ~
6398− ?^ (unresolved-hole holes.state.u.out holes.state state.u.out) ~
6399− `[(label-direct-union typ.u.out u.found n state) state.u.out(active active.state, in-mold in-mold.state, params params.state, holes holes.state)]
6400− %apply
6401− ?~ ref.sh ~
6402− =/ args=(unit [types=(list itype) state=istate]) (infer-shape-args args.sh state)
6403− ?~ args ~
6404− =/ n=term i.ref.sh
6405− ?^ t.ref.sh
6406− ?^ t.t.ref.sh ~
6407− =/ iface=(unit ifile) (find-jibb-interface i.t.ref.sh jimports.state.u.args)
6408− ?~ iface ~
6409− =/ template=(unit ischeme) (find-jibb-mold n u.iface)
6410− ?~ template ~
6411− ?~ vars.u.template ~
6412− =/ applied=(unit itype) (template-apply u.template types.u.args)
6413− ?~ applied ~
6414− `[(itype-in-import u.applied u.iface i.t.ref.sh prelude.state.u.args) state.u.args]
6415− ?: (lien active.state.u.args |=(x=term =(x n))) ~
6416− =/ found=(unit shape) (find-simple-mold n molds.state.u.args)
6417− ?~ found
6418− ?: (lien molds.state.u.args |=(m=[name=term body=shape] =(name.m n))) ~
6419− ?~ prelude.state.u.args ~
6420− =/ prelude-entry=(unit ischeme) (find-jibb-mold n u.prelude.state.u.args)
6421− ?~ prelude-entry ~
6422− ?~ vars.u.prelude-entry ~
6423− =/ applied=(unit itype) (template-apply u.prelude-entry types.u.args)
6424− ?~ applied ~
6425− `[u.applied state.u.args]
6426− ?. ?=(%generic -.u.found) ~
6427− ?. (distinct-params vars.u.found) ~
6428− =/ params=(unit iparams) (bind-params vars.u.found types.u.args)
6429− ?~ params ~
4896+ ?~ found ~
64304897 =/ out=(unit [typ=itype state=istate])
6431− $(sh body.u.found, state state.u.args(active [n active.state.u.args], in-mold &, params u.params))
4898+ $(sh u.found, state state(active [n active.state], in-mold &))
64324899 ?~ out ~
6433− ?^ (unresolved-hole holes.state.u.out holes.state.u.args state.u.out) ~
6434− ?: &(?=(%union -.typ.u.out) !?=(%union -.body.u.found) ?=(~ origin.typ.u.out)) ~
6435− ?: &(?=(%union -.typ.u.out) ?=(%union -.body.u.found) !(lien top-molds.state.u.args |=(x=term =(x n)))) ~
6436− =? typ.u.out &(?=(%union -.typ.u.out) ?=(%union -.body.u.found))
6437− (label-direct-union typ.u.out(args types.u.args) u.found n state.u.args)
6438− `[typ.u.out state.u.out(active active.state.u.args, in-mold in-mold.state.u.args, params params.state.u.args, holes holes.state.u.args)]
4900+ `[typ.u.out state.u.out(active active.state, in-mold in-mold.state)]
64394901 %tvar
6440− =/ param=(unit itype) (iparam-lookup name.sh params.state)
6441− ?^ param `[u.param state]
64424902 ?: in-mold.state ~
64434903 =/ n=(unit @ud) (icap-lookup name.sh caps.state)
64444904 ?^ n `[[%var u.n] state]
6445− `[[%var next.state] state(next +(next.state), caps [[name.sh next.state at.sh] caps.state])]
4905+ `[[%var next.state] state(next +(next.state), caps [[name.sh next.state] caps.state])]
64464906 * ~
64474907 ==
64484908::
@@ -6450,37 +4910,25 @@
64504910 |= [fields=(list field) state=istate]
64514911 ^- (unit [typ=itype state=istate])
64524912 ?~ fields ~
6453− =/ field-shape=shape
6454− ?- -.i.fields
6455− %bare shape.i.fields
6456− %face shape.i.fields
6457− %pun [%ref at.i.fields ~[name.i.fields]]
6458− ==
6459− =/ head=(unit [typ=itype state=istate]) (infer-simple-shape field-shape state)
4913+ ?. ?=(%bare -.i.fields) ~
4914+ =/ head=(unit [typ=itype state=istate]) (infer-simple-shape shape.i.fields state)
64604915 ?~ head ~
6461− =/ t=itype typ.u.head
6462− =. t
6463− ?- -.i.fields
6464− %bare t
6465− %face [%face name.i.fields t]
6466− %pun [%face name.i.fields t]
6467− ==
6468− ?~ t.fields `[t state.u.head]
4916+ ?~ t.fields head
64694917 =/ tail=(unit [typ=itype state=istate]) $(fields t.fields, state state.u.head)
64704918 ?~ tail ~
6471− `[[%cell t typ.u.tail] state.u.tail]
4919+ `[[%cell typ.u.head typ.u.tail] state.u.tail]
64724920::
64734921++ infer-sample
64744922 |= [s=sample env=ienv state=istate]
64754923 ^- isample-result
64764924 ?- -.s
64774925 %bind
6478− ?: |(=(name.s %proj) ?=(^ (ienv-lookup name.s env)) (lien globals.state |=(x=term =(x name.s))))
4926+ ?: |(?=(^ (ienv-lookup name.s env)) (lien globals.state |=(x=term =(x name.s))))
64794927 [%| "sample shadows a name"]
64804928 =/ t=itype [%var next.state]
6481− [%& t [[name.s [t ~]] env] state(next +(next.state), binders [next.state binders.state])]
4929+ [%& t [[name.s [t ~]] env] state(next +(next.state))]
64824930 %face
6483− ?: |(=(name.s %proj) ?=(^ (ienv-lookup name.s env)) (lien globals.state |=(x=term =(x name.s))))
4931+ ?: |(?=(^ (ienv-lookup name.s env)) (lien globals.state |=(x=term =(x name.s))))
64844932 [%| "sample shadows a name"]
64854933 =/ t=(unit [typ=itype state=istate]) (infer-simple-shape shape.s state)
64864934 ?~ t [%| "sample mold is not supported by partial inference"]
@@ -6489,1871 +4937,144 @@
64894937 =/ t=(unit [typ=itype state=istate]) (infer-simple-shape shape.s state)
64904938 ?~ t [%| "sample mold is not supported by partial inference"]
64914939 [%& typ.u.t env state.u.t]
6492− %pun
6493− $(s [%face at.s name.s [%ref at.s ~[name.s]]])
6494− %cell
6495− (infer-sample-items items.s env state)
4940+ * [%| "sample is not supported by partial inference"]
64964941 ==
64974942::
6498−:: Cell-sample binders are faces on their positions; at the top of a
6499−:: sample a binder only supplies a name for the whole sample.
6500−::
6501−++ infer-sample-items
6502− |= [items=(list sample) env=ienv state=istate]
6503− ^- isample-result
6504− ?~ items [%| "empty sample is not supported by partial inference"]
6505− =/ head=isample-result (infer-sample i.items env state)
6506− ?: ?=(%| -.head) head
6507− =/ ht=itype typ.p.head
6508− =. ht
6509− ?- -.i.items
6510− %bind [%face name.i.items ht]
6511− %face [%face name.i.items ht]
6512− %pun [%face name.i.items ht]
6513− * ht
6514− ==
6515− ?~ t.items [%& ht env.p.head state.p.head]
6516− =/ tail=isample-result $(items t.items, env env.p.head, state state.p.head)
6517− ?: ?=(%| -.tail) tail
6518− [%& [%cell ht typ.p.tail] env.p.tail state.p.tail]
6519−::
6520−:: Local definitions generalize only variables outside their enclosing
6521−:: environment and explicit-capital scope. Recursive gate groups use
6522−:: monomorphic placeholders while their bodies are checked.
6523−::
6524−+$ ilocal-result (each [env=ienv state=istate] idiag)
6525−++ free-env-vars
6526− |= [env=ienv sub=isub]
6527− ^- (list @ud)
6528− ?~ env ~
6529− =/ sc=ischeme scheme.i.env
6530− =/ ids=(list @ud) (unique-type-vars (itype-vars typ.sc))
6531− =/ free=(list @ud) ~
6532− |-
6533− ?~ ids (weld free (free-env-vars t.env sub))
6534− ?: (lien vars.sc |=(n=@ud =(n i.ids))) $(ids t.ids)
6535− =/ resolved=itype (itype-normalize [%var i.ids] sub)
6536− $(ids t.ids, free (weld (itype-vars resolved) free))
6537−::
6538−++ free-cap-vars
6539− |= [caps=icaps sub=isub]
6540− ^- (list @ud)
6541− ?~ caps ~
6542− (weld (itype-vars (itype-normalize [%var id.i.caps] sub)) $(caps t.caps))
6543−::
6544−++ local-names-valid
6545− |= [ds=(list def) env=ienv state=istate]
6546− ^- ?
6547− =/ names=(list term) (global-value-names ds)
6548− |-
6549− ?~ ds &
6550− ?: ?=(%mold -.i.ds) $(ds t.ds)
6551− ?: =(name.i.ds %proj) |
6552− ?. (unique-value-name name.i.ds names) |
6553− ?: ?=(^ (ienv-lookup name.i.ds env)) |
6554− ?: (lien globals.state |=(n=term =(n name.i.ds))) |
6555− $(ds t.ds)
6556−::
6557−:: The supported local molds are nonrecursive simple aliases. Validate
6558−:: all of them, including unused ones, before checking any local values.
6559−:: The enclosing gate sample was checked before this scope was entered.
6560−::
6561−++ local-value-defs
6562− |= ds=(list def)
6563− ^- (list def)
6564− ?~ ds ~
6565− ?: ?=(%mold -.i.ds) $(ds t.ds)
6566− [i.ds $(ds t.ds)]
6567−::
6568−++ local-mold-names-valid
6569− |= [locals=imolds state=istate]
6570− ^- ?
6571− =/ names=(list term) (turn locals |=(m=[name=term body=shape] name.m))
6572− |-
6573− ?~ locals &
6574− =/ n=term name.i.locals
6575− ?: =(n %proj) |
6576− ?. (unique-value-name n names) |
6577− ?: (lien molds.state |=(m=[name=term body=shape] =(n name.m))) |
6578− ?: (lien marks.state |=(m=term =(n m))) |
6579− ?: (lien reserved-molds.state |=(m=term =(n m))) |
6580− ?: (lien surs.state |=(m=term =(n m))) |
6581− $(locals t.locals)
6582−::
6583−++ local-molds-supported
6584− |= [locals=imolds state=istate]
6585− ^- ?
6586− ?~ locals &
6587− =/ m=[name=term body=shape] i.locals
6588− =/ inferred=(unit [template=ischeme state=istate])
6589− (infer-mold-template body.m state(active [name.m active.state], in-mold &))
6590− ?~ inferred |
6591− $(locals t.locals)
6592−::
6593−:: Gather written capitals belonging to one ++. Nested local definitions
6594−:: establish their own scopes; inline gates remain in the enclosing scope.
6595−+$ icap-site [name=@t at=span]
6596−++ scope-shape
6597− |= s=shape
6598− ^- (list icap-site)
6599− ?- -.s
6600− %tvar ~[[name.s at.s]]
6601− %apply (zing (turn args.s scope-shape))
6602− %cell (zing (turn fields.s scope-field))
6603− %union (zing (turn cases.s scope-shape))
6604− %fn (weld (scope-shape sample.s) (scope-shape product.s))
6605− %generic
6606− =/ inside=(list icap-site) (scope-shape body.s)
6607− (skim inside |=(site=icap-site !(lien vars.s |=(v=@t =(v name.site)))))
6608− * ~
6609− ==
6610−::
6611−++ scope-field
6612− |= f=field
6613− ^- (list icap-site)
6614− ?- -.f
6615− %face (scope-shape shape.f)
6616− %bare (scope-shape shape.f)
6617− %pun ~
6618− ==
6619−::
6620−++ scope-sample
6621− |= s=sample
6622− ^- (list icap-site)
6623− ?- -.s
6624− %face (scope-shape shape.s)
6625− %bare (scope-shape shape.s)
6626− %cell (zing (turn items.s scope-sample))
6627− * ~
6628− ==
6629−::
6630−++ scope-pieces
6631− |= ps=(list piece)
6632− ^- (list icap-site)
6633− ?~ ps ~
6634− =/ first=(list icap-site)
6635− ?- -.i.ps
6636− %expr (scope-expr p.i.ps)
6637− %text ~
6638− ==
6639− (weld first $(ps t.ps))
6640−::
6641−++ scope-qsegs
6642− |= ps=(list qseg)
6643− ^- (list icap-site)
6644− ?~ ps ~
6645− =/ first=(list icap-site)
6646− ?- -.i.ps
6647− %expr (scope-expr p.i.ps)
6648− %knot ~
6649− ==
6650− (weld first $(ps t.ps))
6651−::
6652−++ scope-edits
6653− |= xs=(list edit)
6654− ^- (list icap-site)
6655− ?~ xs ~
6656− =/ first=(list icap-site) (scope-expr val.i.xs)
6657− (weld first $(xs t.xs))
6658−::
6659−++ scope-items
6660− |= xs=(list item)
6661− ^- (list icap-site)
6662− ?~ xs ~
6663− =/ first=(list icap-site) (scope-expr val.i.xs)
6664− (weld first $(xs t.xs))
6665−::
6666−++ scope-arms
6667− |= xs=(list arm)
6668− ^- (list icap-site)
6669− ?~ xs ~
6670− =/ first=(list icap-site) (scope-expr val.i.xs)
6671− (weld first $(xs t.xs))
6672−::
6673−++ scope-exprs
6674− |= xs=(list expr)
6675− ^- (list icap-site)
6676− ?~ xs ~
6677− =/ first=(list icap-site) (scope-expr i.xs)
6678− (weld first $(xs t.xs))
6679−::
6680−++ scope-expr
6681− |= e=expr
6682− ^- (list icap-site)
6683− ?- -.e
6684− %str (scope-pieces pieces.e)
6685− %qath (scope-qsegs segs.e)
6686− %change (scope-edits edits.e)
6687− %pair (scope-expr val.e)
6688− %unit (scope-expr val.e)
6689− %group (scope-expr inner.e)
6690− %list (scope-exprs items.e)
6691− %tuple (scope-items items.e)
6692− %gate
6693− =/ first=(list icap-site) (scope-sample sample.e)
6694− =/ last=(list icap-site) (scope-expr body.e)
6695− (weld first last)
6696− %gate-wide
6697− =/ first=(list icap-site) (scope-sample sample.e)
6698− =/ last=(list icap-site) (scope-expr body.e)
6699− (weld first last)
6700− %call
6701− =/ first=(list icap-site) (scope-expr head.e)
6702− =/ last=(list icap-site) (scope-exprs args.e)
6703− (weld first last)
6704− %cast
6705− =/ first=(list icap-site) (scope-shape shape.e)
6706− =/ last=(list icap-site) (scope-expr val.e)
6707− (weld first last)
6708− %trace
6709− =/ first=(list icap-site) (scope-expr val.e)
6710− =/ last=(list icap-site) (scope-expr then.e)
6711− (weld first last)
6712− %branch
6713− =/ first=(list icap-site) (scope-expr subject.e)
6714− =/ last=(list icap-site) (scope-arms arms.e)
6715− (weld first last)
6716− %body (scope-expr final.e)
6717− * ~
6718− ==
6719−::
6720−++ reserve-cap-sites
6721− |= [sites=(list icap-site) state=istate]
6722− ^- istate
6723− ?~ sites state
6724− ?: ?=(^ (icap-lookup name.i.sites caps.state)) $(sites t.sites)
6725− $(sites t.sites, state state(next +(next.state), caps [[name.i.sites next.state at.i.sites] caps.state]))
6726−::
6727−++ reserve-def-caps
6728− |= [e=expr state=istate]
6729− ^- istate
6730− (reserve-cap-sites (scope-expr e) state)
6731−::
6732−++ infer-local-defs
6733− |= [ds=(list def) env=ienv state=istate]
6734− ^- ilocal-result
6735− =/ remaining=(list def) ~
6736− =/ progressed=? |
6737− |-
6738− ?~ ds
6739− ?~ remaining [%& env state]
6740− ?. progressed
6741− =/ pending=(list def) (flop remaining)
6742− =/ groups=icomponents (graph-components pending (global-value-names pending))
6743− =/ grouped=(unit [rest=(list def) env=ienv state=istate])
6744− (try-local-group pending groups env state)
6745− ?~ grouped [%| ["local definitions need unsupported inference" ~]]
6746− $(ds rest.u.grouped, remaining ~, env env.u.grouped, state state.u.grouped, progressed |)
6747− $(ds (flop remaining), remaining ~, progressed |)
6748− =/ d=def i.ds
6749− ?> ?=(%value -.d)
6750− =/ local-state=istate (reserve-def-caps val.d state)
6751− =/ inferred=iresult (infer-fragment val.d env local-state)
6752− =/ retried=? ?=(%| -.inferred)
6753− =? inferred retried (infer-recursive-gate d env local-state)
6754− ?: ?=(%| -.inferred) $(ds t.ds, remaining [d remaining])
6755− =. state.p.inferred (default-hole-numbers holes.state.p.inferred holes.state state.p.inferred env !(itype-has-gate (itype-normalize typ.p.inferred sub.state.p.inferred)))
6756− =/ hole=(unit idiag) (unresolved-hole holes.state.p.inferred holes.state state.p.inferred)
6757− ?^ hole [%| u.hole]
6758− =/ merged=(unit [first=icap second=icap])
6759− (merged-capitals caps.state.p.inferred sub.state.p.inferred)
6760− ?^ merged
6761− [%| ["distinct type variables `{(trip name.first.u.merged)}` and `{(trip name.second.u.merged)}` must not be forced equal; use the same capital for a shared type" ~[[at.first.u.merged "first type variable"] [at.second.u.merged "second type variable"]]]]
6762− ?: (constrained-capitals caps.state.p.inferred sub.state.p.inferred)
6763− [%| ["explicit capital constraints are not supported by partial inference" ~]]
6764− =/ typ=itype (itype-normalize typ.p.inferred sub.state.p.inferred)
6765− ?: |((pending-tags tags.state.p.inferred sub.state.p.inferred) (itype-has-tag typ))
6766− $(ds t.ds, remaining [d remaining])
6767− ?: (unsupported-atom-vars typ caps.state.p.inferred binders.state.p.inferred sub.state.p.inferred)
6768− $(ds t.ds, remaining [d remaining])
6769− =/ free=(list @ud)
6770− (weld (free-env-vars env sub.state.p.inferred) (free-cap-vars caps.state sub.state.p.inferred))
6771− =/ vars=(list @ud) (unique-type-vars (itype-vars typ))
6772− =. vars (skim vars |=(n=@ud !(lien free |=(f=@ud =(f n)))))
6773− $(ds t.ds, env [[name.d [typ vars]] env], state state.p.inferred(caps caps.state, holes holes.state), progressed &)
6774−::
6775−:: Try complete cyclic local groups after individual definitions stall.
6776−:: Components with non-gates or unresolved constraints stay unavailable.
6777−::
6778−++ try-local-group
6779− |= [ds=(list def) groups=icomponents env=ienv state=istate]
6780− ^- (unit [rest=(list def) env=ienv state=istate])
6781− ?~ groups ~
6782− =/ names=(list term) i.groups
6783− ?. (gth (lent names) 1) $(groups t.groups)
6784− =/ members=(list def)
6785− (skim ds |=(d=def &(?=(%value -.d) (lien names |=(n=term =(n name.d))))))
6786− ?. =((lent members) (lent names)) $(groups t.groups)
6787− =/ result=ilocal-result (infer-gate-group members env state)
6788− ?: ?=(%| -.result) $(groups t.groups)
6789− =/ rest=(list def)
6790− (skim ds |=(d=def !(lien names |=(n=term =(n name.d)))))
6791− =/ more=(unit [rest=(list def) env=ienv state=istate])
6792− $(ds rest, groups t.groups, env env.p.result, state state.p.result)
6793− ?^ more more
6794− `[rest env.p.result state.p.result]
6795−::
6796−:: Read only fields of a known record. Unresolved field constraints and
6797−:: ambiguous repeated faces are outside this fragment. Imported record
6798−:: spines with repeated names are unavailable when used.
6799−::
6800−++ record-fields-named
6801− |= [name=term t=itype sub=isub]
6802− ^- (list itype)
6803− =. t (itype-walk t sub)
6804− ?: ?=(%face -.t)
6805− ?:(=(name name.t) ~[body.t] ~)
6806− ?. ?=(%cell -.t) ~
6807− =/ first=(list itype) ~
6808− =/ head=itype (itype-walk hed.t sub)
6809− =? first ?=(%face -.head) ?:(=(name name.head) ~[body.head] ~)
6810− (weld first $(t tal.t))
6811−::
6812−++ infer-field-wing
6813− |= [names=(list term) env=ienv state=istate]
6814− ^- iresult
6815− =/ reverse=(list term) (flop names)
6816− ?~ reverse [%| ["empty wing" ~]]
6817− =/ iface=(unit ifile) (find-jibb-interface i.reverse jimports.state)
6818− =/ fields=(list term) t.reverse
6819− ?~ fields [%| ["field access is not supported by partial inference" ~]]
6820− =/ scheme=(unit ischeme)
6821− ?~ iface
6822− (ienv-lookup i.reverse env)
6823− (ienv-lookup i.fields values.u.iface)
6824− ?~ scheme
6825− ?^ iface [%| ["module member is not available to partial inference" ~]]
6826− [%| ["field access is not supported by partial inference" ~]]
6827− =/ inst=[typ=itype state=istate]
6828− ?~ iface (instantiate-scheme u.scheme state)
6829− =/ imported=ischeme u.scheme
6830− =. typ.imported (itype-in-import typ.imported u.iface i.reverse prelude.state)
6831− (instantiate-scheme imported state)
6832− =/ remaining=(list term) ?~(iface fields t.fields)
6833− =/ typ=itype typ.inst
6834− |-
6835− ?~ remaining [%& typ state.inst]
6836− =/ found=(list itype) (record-fields-named i.remaining typ sub.state.inst)
6837− ?~ found [%| ["field is not available to partial inference" ~]]
6838− ?^ t.found [%| ["field name is ambiguous in partial inference" ~]]
6839− $(remaining t.remaining, typ i.found)
6840−::
6841−:: Propagate a known union or list through supported loobean, unit and list
6842−:: branches. Empty bodies and groups are transparent; bodies with definitions
6843−:: keep their normal scoping and wait for general bidirectional inference.
6844−::
6845−++ context-union-branch
6846− |= e=expr
6847− ^- ?
6848− ?- -.e
6849− %branch &
6850− %group $(e inner.e)
6851− %body ?~(defs.e $(e final.e) |)
6852− * |
6853− ==
6854−::
6855−++ infer-union-context
6856− |= [e=expr expected=itype env=ienv state=istate context=span]
6857− ^- iresult
6858− ?: ?=(%group -.e) $(e inner.e)
6859− ?: &(?=(%body -.e) ?=(~ defs.e)) $(e final.e)
6860− ?: &(?=(%collection -.expected) =(%list name.expected) (context-list-expression e))
6861− (infer-list-context e expected env state context)
6862− ?: ?=(%branch -.e)
6863− ?~ arms.e [%| ["branch is not supported by partial inference" ~]]
6864− ?~ t.arms.e [%| ["branch pattern is not supported by partial inference" ~]]
6865− ?^ t.t.arms.e [%| ["branch is not supported by partial inference" ~]]
6866− =/ x=arm i.arms.e
6867− =/ y=arm i.t.arms.e
6868− ?: |((unit-empty-pattern pat.x) (unit-empty-pattern pat.y))
6869− (infer-unit-branch e env state `[expected context])
6870− ?. &(?=(%lit -.pat.x) ?=(%lit -.pat.y))
6871− [%| ["branch pattern is not supported by partial inference" ~]]
6872− ?. &(=(%loobean form.lit.pat.x) =(%loobean form.lit.pat.y))
6873− [%| ["branch pattern is not supported by partial inference" ~]]
6874− ?: =(val.lit.pat.x val.lit.pat.y)
6875− [%| ["branch does not cover both loobeans" ~]]
6876− =/ subject=iresult (infer-fragment subject.e env state)
6877− ?: ?=(%| -.subject) subject
6878− =/ subject-type=itype (itype-normalize typ.p.subject sub.state.p.subject)
6879− ?: ?=(%union -.subject-type)
6880− [%| ["contextual union-pattern branch is not supported by partial inference" ~]]
6881− =/ su=(unit isub) (itype-unify typ.p.subject [%flag ~] sub.state.p.subject)
6882− ?~ su [%| ["loobean branch subject does not unify with ?" ~]]
6883− =/ left=iresult $(e val.x, state state.p.subject(sub u.su))
6884− ?: ?=(%| -.left) left
6885− =/ right=iresult $(e val.y, state state.p.left)
6886− ?: ?=(%| -.right) right
6887− [%& expected state.p.right]
6888− =/ value=iresult (infer-fragment e env state)
6889− ?: ?=(%| -.value) value
6890− =/ fit=ifit (itype-fit typ.p.value expected sub.state.p.value next.state.p.value)
6891− ?: ?=(%unknown -.fit)
6892− ?: &(?=(%collection -.expected) =(%list name.expected))
6893− [%| ["branch list constraint is not supported by partial inference" ~]]
6894− ?: ?=(%flag -.expected) [%| ["branch loobean constraint is not supported by partial inference" ~]]
6895− [%| ["branch union constraint is not supported by partial inference" ~]]
6896− ?: ?=(%bad -.fit)
6897− =/ missing=(unit idiag) (missing-union-tag e expected sub.state.p.value context)
6898− ?^ missing [%| u.missing]
6899− =/ nested=(unit idiag) (nested-missing-tag e typ.p.value expected sub.state.p.value next.state.p.value context)
6900− ?^ nested [%| u.nested]
6901− ?: &(?=(%collection -.expected) =(%list name.expected))
6902− [%| ["branch arm does not fit its expected list" ~[[context "expected list"] [(span-of e) "branch arm"]]]]
6903− ?: ?=(%flag -.expected)
6904− [%| ["branch arm does not fit its expected loobean" ~[[context "expected loobean"] [(span-of e) "branch arm"]]]]
6905− [%| ["branch arm does not fit its expected union" ~[[context "expected union"] [(span-of e) "branch arm"]]]]
6906− [%& expected state.p.value(sub sub.fit, next next.fit)]
6907−::
6908−:: A list expression needs a known list target and the validated prelude list.
6909−:: Literal items and unfaced two-item cons cells receive that target one by
6910−:: one; pending constraints elsewhere stay in the threaded state.
6911−::
6912−++ context-list-expression
6913− |= e=expr
6914− ^- ?
6915− ?- -.e
6916− %list &
6917− %tuple &
6918− %lit |(=(%null form.lit.e) &(=(%term form.lit.e) =(0 val.lit.e)))
6919− %group $(e inner.e)
6920− %body ?~(defs.e $(e final.e) |)
6921− * |
6922− ==
6923−::
6924−++ infer-list-context
6925− |= [e=expr expected=itype env=ienv state=istate context=span]
6926− ^- iresult
6927− ?: ?=(%group -.e) $(e inner.e)
6928− ?: &(?=(%body -.e) ?=(~ defs.e)) $(e final.e)
6929− ?~ prelude.state [%| ["list literal needs the standard prelude in partial inference" ~]]
6930− ?. =(at.u.prelude.state /lib/jibb/prelude/jibb)
6931− [%| ["list literal needs the standard prelude in partial inference" ~]]
6932− =/ standard=(unit ischeme) (find-jibb-mold %list u.prelude.state)
6933− ?~ standard [%| ["list literal needs the standard prelude in partial inference" ~]]
6934− ?. =(u.standard [[%collection %list ~[[%var 0]]] ~[0]])
6935− [%| ["list literal needs the standard prelude in partial inference" ~]]
6936− =/ target=itype (itype-walk expected sub.state)
6937− ?. ?=(%collection -.target) [%| ["list context is not supported by partial inference" ~]]
6938− ?. =(%list name.target) [%| ["list context is not supported by partial inference" ~]]
6939− ?~ args.target [%| ["list context is not supported by partial inference" ~]]
6940− ?^ t.args.target [%| ["list context is not supported by partial inference" ~]]
6941− ?: ?=(%lit -.e)
6942− ?. |(=(%null form.lit.e) &(=(%term form.lit.e) =(0 val.lit.e)))
6943− [%| ["list expression is not supported by partial inference" ~]]
6944− [%& target state]
6945− ?: ?=(%list -.e)
6946− =/ result=iresult (infer-list-items items.e i.args.target env state context)
6947− ?: ?=(%| -.result) result
6948− [%& target state.p.result]
6949− ?. ?=(%tuple -.e) [%| ["list expression is not supported by partial inference" ~]]
6950− ?~ items.e [%| ["cons shape is not supported by partial inference" ~]]
6951− ?~ t.items.e [%| ["cons shape is not supported by partial inference" ~]]
6952− ?^ t.t.items.e [%| ["cons shape is not supported by partial inference" ~]]
6953− ?^ face.i.items.e [%| ["faced cons is not supported by partial inference" ~]]
6954− ?^ face.i.t.items.e [%| ["faced cons is not supported by partial inference" ~]]
6955− =/ head=iresult (infer-list-items ~[val.i.items.e] i.args.target env state context)
6956− ?: ?=(%| -.head) head
6957− =/ target=itype (itype-walk target sub.state.p.head)
6958− =/ tail=iresult
6959− ?: (context-list-expression val.i.t.items.e)
6960− (infer-list-context val.i.t.items.e target env state.p.head context)
6961− (infer-fragment val.i.t.items.e env state.p.head)
6962− ?: ?=(%| -.tail) tail
6963− =/ fit=ifit (itype-fit typ.p.tail target sub.state.p.tail next.state.p.tail)
6964− ?: ?=(%unknown -.fit) [%| ["list tail constraint is not supported by partial inference" ~]]
6965− ?: ?=(%bad -.fit)
6966− [%| ["list tail does not fit its expected type" ~[[context (site-type-note "expected list" target sub.state.p.tail)] [(span-of val.i.t.items.e) (site-type-note "list tail" typ.p.tail sub.state.p.tail)]]]]
6967− [%& target state.p.tail(sub sub.fit, next next.fit)]
6968−::
6969−++ infer-open-list-items
6970− |= [items=(list expr) expected=itype env=ienv state=istate context=span]
6971− ^- iresult
6972− ?~ items [%& expected state]
6973− =/ target=itype (itype-walk expected sub.state)
6974− =/ value=iresult (infer-call-context-arg i.items target env state context)
6975− ?: ?=(%| -.value) value
6976− =/ fit=ifit (itype-fit typ.p.value target sub.state.p.value next.state.p.value)
6977− ?: ?=(%unknown -.fit) [%| ["list item constraint is not supported by partial inference" ~]]
6978− ?: ?=(%bad -.fit)
6979− ?: |((itype-family-related typ.p.value target sub.state.p.value) (itype-has-any-atom typ.p.value sub.state.p.value) (itype-has-any-atom target sub.state.p.value))
6980− [%| ["list item widening is not supported by partial inference" ~]]
6981− [%| ["list items do not have compatible types" ~[[context (site-type-note "expected item" target sub.state.p.value)] [(span-of i.items) (site-type-note "list item" typ.p.value sub.state.p.value)]]]]
6982− ?: (itype-has-tag (itype-normalize expected sub.fit))
6983− [%| ["list item needs context in partial inference" ~]]
6984− $(items t.items, state state.p.value(sub sub.fit, next next.fit))
6985−::
6986−++ infer-list-items
6987− |= [items=(list expr) expected=itype env=ienv state=istate context=span]
6988− ^- iresult
6989− ?~ items [%& expected state]
6990− =/ target=itype (itype-walk expected sub.state)
6991− =/ value=iresult (infer-call-context-arg i.items target env state context)
6992− ?: ?=(%| -.value) value
6993− =/ fit=ifit (itype-fit typ.p.value target sub.state.p.value next.state.p.value)
6994− ?: ?=(%unknown -.fit) [%| ["list item constraint is not supported by partial inference" ~]]
6995− ?: ?=(%bad -.fit)
6996− =/ missing=(unit idiag) (missing-union-tag i.items target sub.state.p.value context)
6997− ?^ missing [%| u.missing]
6998− =/ nested=(unit idiag) (nested-missing-tag i.items typ.p.value target sub.state.p.value next.state.p.value context)
6999− ?^ nested [%| u.nested]
7000− [%| ["list item does not fit its expected type" ~[[context (site-type-note "expected item" target sub.state.p.value)] [(span-of i.items) (site-type-note "list item" typ.p.value sub.state.p.value)]]]]
7001− $(items t.items, state state.p.value(sub sub.fit, next next.fit))
7002−::
7003−:: The supported unit pattern covers exactly an atom zero and a cell
7004−:: headed by zero, with a single binder for its payload. Unresolved
7005−:: subjects and all other pattern matrices stay outside this fragment.
7006−::
7007−++ unit-empty-pattern
7008− |= p=pattern
7009− ^- ?
7010− ?. ?=(%lit -.p) |
7011− =(%null form.lit.p)
7012−::
7013−++ unit-payload-pattern
7014− |= p=pattern
7015− ^- (unit term)
7016− ?. ?=(%cell -.p) ~
7017− ?~ items.p ~
7018− ?~ t.items.p ~
7019− ?^ t.t.items.p ~
7020− ?. (unit-empty-pattern i.items.p) ~
7021− ?. ?=(%bind -.i.t.items.p) ~
7022− `name.i.t.items.p
7023−::
7024−++ unit-empty-case
7025− |= t=itype
7026− ^- ?
7027− ?. ?=(%const -.t) |
7028− =(0 val.literal.t)
7029−::
7030−++ unit-payload-case
7031− |= t=itype
7032− ^- (unit itype)
7033− ?. ?=(%cell -.t) ~
7034− ?. (unit-empty-case hed.t) ~
7035− =/ payload=itype tal.t
7036− =? payload ?=(%face -.payload) body.payload
7037− `payload
7038−::
7039−++ unit-union-payload
7040− |= t=itype
7041− ^- (unit itype)
7042− ?. ?=(%union -.t) ~
7043− ?~ cases.t ~
7044− ?~ t.cases.t ~
7045− ?^ t.t.cases.t ~
7046− ?: (unit-empty-case i.cases.t) (unit-payload-case i.t.cases.t)
7047− ?: (unit-empty-case i.t.cases.t) (unit-payload-case i.cases.t)
7048− ~
7049−::
7050−:: List matching currently covers exactly null and a cell of two binders.
7051−:: The head has the element type and the tail has the whole list type.
7052−:: Other patterns and lists whose element mold is empty remain unsupported.
7053−::
7054−++ list-payload-pattern
7055− |= p=pattern
7056− ^- (unit [head=term tail=term])
7057− ?. ?=(%cell -.p) ~
7058− ?~ items.p ~
7059− ?~ t.items.p ~
7060− ?^ t.t.items.p ~
7061− ?. ?=(%bind -.i.items.p) ~
7062− ?. ?=(%bind -.i.t.items.p) ~
7063− `[name.i.items.p name.i.t.items.p]
7064−::
7065−++ infer-list-branch
7066− |= [e=expr env=ienv state=istate expected=(unit [typ=itype context=span]) typ=itype]
7067− ^- iresult
7068− ?> ?=(%branch -.e)
7069− ?> ?=(%collection -.typ)
7070− ?. =(%list name.typ) [%| ["list pattern is not supported by partial inference" ~]]
7071− ?~ prelude.state [%| ["list pattern needs the standard prelude in partial inference" ~]]
7072− ?. =(at.u.prelude.state /lib/jibb/prelude/jibb)
7073− [%| ["list pattern needs the standard prelude in partial inference" ~]]
7074− =/ standard=(unit ischeme) (find-jibb-mold %list u.prelude.state)
7075− ?~ standard [%| ["list pattern needs the standard prelude in partial inference" ~]]
7076− ?. =(u.standard [[%collection %list ~[[%var 0]]] ~[0]])
7077− [%| ["list pattern needs the standard prelude in partial inference" ~]]
7078− ?~ args.typ [%| ["list pattern is not supported by partial inference" ~]]
7079− ?^ t.args.typ [%| ["list pattern is not supported by partial inference" ~]]
7080− ?~ arms.e [%| ["list branch is not supported by partial inference" ~]]
7081− ?~ t.arms.e [%| ["list branch is not supported by partial inference" ~]]
7082− ?^ t.t.arms.e [%| ["list branch is not supported by partial inference" ~]]
7083− =/ x=arm i.arms.e
7084− =/ y=arm i.t.arms.e
7085− =/ first-empty=? (unit-empty-pattern pat.x)
7086− =/ first-name=(unit [head=term tail=term]) (list-payload-pattern pat.x)
7087− =/ second-name=(unit [head=term tail=term]) (list-payload-pattern pat.y)
7088− ?. |(&(first-empty ?=(^ second-name)) &((unit-empty-pattern pat.y) ?=(^ first-name)))
7089− [%| ["list branch pattern is not supported by partial inference" ~]]
7090− =/ binder=(unit [head=term tail=term]) ?:(first-empty second-name first-name)
7091− ?~ binder [%| ["list branch pattern is not supported by partial inference" ~]]
7092− ?: |(=(head.u.binder %proj) =(tail.u.binder %proj) =(head.u.binder tail.u.binder) ?=(^ (ienv-lookup head.u.binder env)) ?=(^ (ienv-lookup tail.u.binder env)) (lien globals.state |=(n=term |(=(n head.u.binder) =(n tail.u.binder)))))
7093− [%| ["pattern binder shadows a name" ~]]
7094− =/ extended=ienv [[head.u.binder [i.args.typ ~]] [tail.u.binder [typ ~]] env]
7095− =/ left=iresult
7096− ?~ expected (infer-fragment val.x ?:(first-empty env extended) state)
7097− (infer-union-context val.x typ.u.expected ?:(first-empty env extended) state context.u.expected)
7098− ?: ?=(%| -.left) left
7099− =/ right=iresult
7100− ?~ expected (infer-fragment val.y ?:(first-empty extended env) state.p.left)
7101− (infer-union-context val.y typ.u.expected ?:(first-empty extended env) state.p.left context.u.expected)
7102− ?: ?=(%| -.right) right
7103− ?^ expected [%& typ.u.expected state.p.right]
7104− =/ joined=(unit isub) (itype-unify typ.p.left typ.p.right sub.state.p.right)
7105− ?~ joined [%| ["list branch results need unsupported inference" ~]]
7106− [%& typ.p.left state.p.right(sub u.joined)]
7107−::
7108−++ infer-unit-branch
7109− |= [e=expr env=ienv state=istate expected=(unit [typ=itype context=span])]
7110− ^- iresult
7111− ?> ?=(%branch -.e)
7112− ?~ arms.e [%| ["unit branch is not supported by partial inference" ~]]
7113− ?~ t.arms.e [%| ["unit branch is not supported by partial inference" ~]]
7114− ?^ t.t.arms.e [%| ["unit branch is not supported by partial inference" ~]]
7115− =/ subject=iresult (infer-fragment subject.e env state)
7116− ?: ?=(%| -.subject) subject
7117− =/ typ=itype (itype-normalize typ.p.subject sub.state.p.subject)
7118− ?: &(?=(%collection -.typ) =(%list name.typ))
7119− (infer-list-branch e env state.p.subject expected typ)
7120− =/ x=arm i.arms.e
7121− =/ y=arm i.t.arms.e
7122− =/ first-empty=? (unit-empty-pattern pat.x)
7123− =/ first-name=(unit term) (unit-payload-pattern pat.x)
7124− =/ second-name=(unit term) (unit-payload-pattern pat.y)
7125− ?. |(&(first-empty ?=(^ second-name)) &((unit-empty-pattern pat.y) ?=(^ first-name)))
7126− [%| ["unit branch pattern is not supported by partial inference" ~]]
7127− =/ binder=(unit term) ?:(first-empty second-name first-name)
7128− ?~ binder [%| ["unit branch pattern is not supported by partial inference" ~]]
7129− ?: |(=(u.binder %proj) ?=(^ (ienv-lookup u.binder env)) (lien globals.state |=(n=term =(n u.binder))))
7130− [%| ["pattern binder shadows a name" ~]]
7131− =/ payload=(unit itype) (unit-union-payload typ)
7132− ?~ payload [%| ["unit branch subject is not supported by partial inference" ~]]
7133− =/ extended=ienv [[u.binder [u.payload ~]] env]
7134− =/ left=iresult
7135− ?~ expected (infer-fragment val.x ?:(first-empty env extended) state.p.subject)
7136− (infer-union-context val.x typ.u.expected ?:(first-empty env extended) state.p.subject context.u.expected)
7137− ?: ?=(%| -.left) left
7138− =/ right=iresult
7139− ?~ expected (infer-fragment val.y ?:(first-empty extended env) state.p.left)
7140− (infer-union-context val.y typ.u.expected ?:(first-empty extended env) state.p.left context.u.expected)
7141− ?: ?=(%| -.right) right
7142− ?^ expected [%& typ.u.expected state.p.right]
7143− =/ joined=(unit isub) (itype-unify typ.p.left typ.p.right sub.state.p.right)
7144− ?~ joined [%| ["unit branch results need unsupported inference" ~]]
7145− [%& typ.p.left state.p.right(sub u.joined)]
7146−::
7147−:: Infer pieces in order, retaining their substitutions and pending tags.
7148−:: A bare decimal literal has no outside type constraint, so it takes its
7149−:: normal @ud default here. Other open numeric and aura variables wait for
7150−:: deferred constraints, which this fragment does not implement yet.
7151−++ infer-string-pieces
7152− |= [ps=(list piece) env=ienv state=istate]
7153− ^- iresult
7154− ?~ ps [%& [%atom %t] state]
7155− ?: ?=(%text -.i.ps) $(ps t.ps)
7156− =/ item=iresult (infer-fragment p.i.ps env state)
7157− ?: ?=(%| -.item) item
7158− =/ t=itype (itype-normalize typ.p.item sub.state.p.item)
7159− ?: |(?=(%atom -.t) ?=(%any-atom -.t))
7160− $(ps t.ps, state state.p.item)
7161− ?: &(?=(%nvar -.t) ?=(%lit -.p.i.ps) =(%number form.lit.p.i.ps))
7162− $(ps t.ps, state state.p.item)
7163− ?: &(?=(%collection -.t) =(%list name.t) =(~[[%atom 'tD']] args.t))
7164− $(ps t.ps, state state.p.item)
7165− ?: &(?=(%avar -.t) (atom-var-from-cap id.t caps.state.p.item sub.state.p.item))
7166− [%| ["a generic atom in interpolation needs an aura" ~[[(span-of p.i.ps) "atom with a generic aura"]]]]
7167− ?: ?=(%cell -.t)
7168− [%| ["a cell in interpolation needs a printer" ~[[(span-of p.i.ps) "cell without a printer"]]]]
7169− [%| ["interpolation type needs unsupported inference" ~]]
7170−::
7171−:: Whole-case coverage for a known union. When a pattern may cover only
7172−:: part of a case, finite loobean refinements are tried below; other
7173−:: partial coverage stays unsupported until the general pattern matrix.
7174−+$ imatch ?(%full %none %unknown)
7175−++ union-pattern-items
7176− |= [ps=(list pattern) t=itype]
7177− ^- imatch
7178− ?~ ps %unknown
7179− ?~ t.ps (union-pattern i.ps t)
7180− =. t ?:(?=(%face -.t) body.t t)
7181− ?. ?=(%cell -.t)
7182− ?: |(?=(%atom -.t) ?=(%any-atom -.t) ?=(%flag -.t) ?=(%const -.t)) %none
7183− %unknown
7184− =/ a=imatch (union-pattern i.ps hed.t)
7185− =/ b=imatch $(ps t.ps, t tal.t)
7186− ?: |(=(%none a) =(%none b)) %none
7187− ?:(&(=(%full a) =(%full b)) %full %unknown)
7188−::
7189−++ union-pattern
7190− |= [p=pattern t=itype]
7191− ^- imatch
7192− =. t ?:(?=(%face -.t) body.t t)
7193− ?- -.p
7194− %any %full
7195− %bind %full
7196− %lit
7197− ?: ?=(%const -.t) ?:(=(val.literal.t val.lit.p) %full %none)
7198− ?: ?=(%cell -.t) %none
7199− ?: ?=(%flag -.t)
7200− ?:(|(=(0 val.lit.p) =(1 val.lit.p)) %unknown %none)
7201− %unknown
7202− %str ?:(?=(%cell -.t) %none %unknown)
7203− %cell (union-pattern-items items.p t)
7204− ==
7205−::
7206−++ union-pattern-has-bind
7207− |= p=pattern
7208− ^- ?
7209− ?: ?=(%bind -.p) &
7210− ?. ?=(%cell -.p) |
7211− (lien items.p union-pattern-has-bind)
7212−::
7213−++ union-pattern-bind-items
7214− |= [ps=(list pattern) t=itype env=ienv globals=(list term)]
7215− ^- (unit ienv)
7216− ?~ ps ~
7217− ?~ t.ps (union-pattern-bind i.ps t env globals)
7218− =. t ?:(?=(%face -.t) body.t t)
7219− ?. ?=(%cell -.t) ~
7220− =/ first=(unit ienv) (union-pattern-bind i.ps hed.t env globals)
7221− ?~ first ~
7222− $(ps t.ps, t tal.t, env u.first)
7223−::
7224−++ union-pattern-bind
7225− |= [p=pattern t=itype env=ienv globals=(list term)]
7226− ^- (unit ienv)
7227− =. t ?:(?=(%face -.t) body.t t)
7228− ?: ?=(%bind -.p)
7229− ?: |(=(name.p %proj) ?=(^ (ienv-lookup name.p env)) (lien globals |=(n=term =(n name.p)))) ~
7230− `[[name.p [t ~]] env]
7231− ?: ?=(%cell -.p) (union-pattern-bind-items items.p t env globals)
7232− `env
7233−::
7234−:: Split loobean fields into finite refinements for partial patterns.
7235−:: Keep original cases for binder types and preserve whole-case matching
7236−:: before trying refinements. Cap products at 64; unknown, empty or opaque
7237−:: shapes stay unsupported rather than implying complete pattern checking.
7238−+$ ifinite [origin=@ud base=itype part=itype]
7239−++ finite-product
7240− |= [hs=(list itype) ts=(list itype) out=(list itype)]
7241− ^- (list itype)
7242− ?~ hs out
7243− =/ rows=(list itype) (turn ts |=(t=itype [%cell i.hs t]))
7244− $(hs t.hs, out (weld rows out))
7245−::
7246−++ finite-type
7247− |= t=itype
7248− ^- (unit (list itype))
7249− ?- -.t
7250− %flag
7251− `~[[%const [%loobean %f 0 '%.y']] [%const [%loobean %f 1 '%.n']]]
7252− %face
7253− =/ body=(unit (list itype)) $(t body.t)
7254− ?~ body ~
7255− `(turn u.body |=(x=itype [%face name.t x]))
7256− %cell
7257− =/ hed=(unit (list itype)) $(t hed.t)
7258− ?~ hed ~
7259− =/ tal=(unit (list itype)) $(t tal.t)
7260− ?~ tal ~
7261− ?: (gth (mul (lent u.hed) (lent u.tal)) 64) ~
7262− `(finite-product u.hed u.tal ~)
7263− * `~[t]
7264− ==
7265−::
7266−++ finite-cases
7267− |= [xs=(list itype) out=(list ifinite) origin=@ud]
7268− ^- (unit (list ifinite))
7269− ?~ xs `out
7270− =/ parts=(unit (list itype)) (finite-type i.xs)
7271− ?~ parts ~
7272− ?: (gth (add (lent out) (lent u.parts)) 64) ~
7273− =/ rows=(list ifinite) (turn u.parts |=(t=itype [origin i.xs t]))
7274− $(xs t.xs, out (weld out rows), origin +(origin))
7275−::
7276−++ infer-known-union-whole
7277− |= [e=expr env=ienv subject=iresult]
7278− ^- (unit iresult)
7279− ?> ?=(%branch -.e)
7280− ?: ?=(%| -.subject) `subject
7281− =/ typ=itype (itype-normalize typ.p.subject sub.state.p.subject)
7282− ?. ?=(%union -.typ) `[%| ["branch is not supported by partial inference" ~]]
7283− =/ cases=(list itype) cases.typ
7284− =/ remaining=(list itype) cases
7285− =/ arms=(list arm) arms.e
7286− =/ st=istate state.p.subject
7287− =/ answer=(unit itype) ~
7288− |-
7289− ?~ arms
7290− ?^ remaining
7291− `[%| ["missing union case {(show-itype i.remaining sub.st)}" ~]]
7292− ?~ answer `[%| ["empty union branch is not supported by partial inference" ~]]
7293− `[%& u.answer st]
7294− =/ a=arm i.arms
7295− ?: (lien remaining |=(c=itype =(%unknown (union-pattern pat.a c))))
7296− ~
7297− =/ matching=(list itype) (skim remaining |=(c=itype =(%full (union-pattern pat.a c))))
7298− ?~ matching
7299− ?: (lien cases |=(c=itype =(%full (union-pattern pat.a c))))
7300− `[%| ["branch arm is covered by earlier arms" ~[[at.pat.a "covered arm"]]]]
7301− `[%| ["union pattern is not supported by partial inference" ~]]
7302− ?: &(?=(^ t.matching) (union-pattern-has-bind pat.a))
7303− `[%| ["a union pattern binding several cases is not supported by partial inference" ~]]
7304− =/ bound=(unit ienv) (union-pattern-bind pat.a i.matching env globals.st)
7305− ?~ bound `[%| ["pattern binder shadows a name" ~]]
7306− =/ body=iresult (infer-fragment val.a u.bound st)
7307− ?: ?=(%| -.body) `body
7308− =/ result=itype (itype-normalize typ.p.body sub.state.p.body)
7309− =/ mismatch=? ?~(answer | !=((itype-normalize u.answer sub.state.p.body) result))
7310− ?: mismatch `[%| ["union branch result matching needs unsupported inference" ~]]
7311− $(arms t.arms, remaining (skim remaining |=(c=itype !=(%full (union-pattern pat.a c)))), st state.p.body, answer `result)
7312−::
7313−++ infer-known-union-context-whole
7314− |= [e=expr expected=itype env=ienv subject=iresult context=span]
7315− ^- (unit iresult)
7316− ?> ?=(%branch -.e)
7317− ?: ?=(%| -.subject) `subject
7318− =/ typ=itype (itype-normalize typ.p.subject sub.state.p.subject)
7319− ?. ?=(%union -.typ) `[%| ["branch is not supported by partial inference" ~]]
7320− =/ cases=(list itype) cases.typ
7321− =/ remaining=(list itype) cases
7322− =/ arms=(list arm) arms.e
7323− =/ st=istate state.p.subject
7324− =/ answer=(unit itype) ~
7325− |-
7326− ?~ arms
7327− ?^ remaining
7328− `[%| ["missing union case {(show-itype i.remaining sub.st)}" ~]]
7329− ?~ answer `[%| ["empty union branch is not supported by partial inference" ~]]
7330− `[%& expected st]
7331− =/ a=arm i.arms
7332− ?: (lien remaining |=(c=itype =(%unknown (union-pattern pat.a c))))
7333− ~
7334− =/ matching=(list itype) (skim remaining |=(c=itype =(%full (union-pattern pat.a c))))
7335− ?~ matching
7336− ?: (lien cases |=(c=itype =(%full (union-pattern pat.a c))))
7337− `[%| ["branch arm is covered by earlier arms" ~[[at.pat.a "covered arm"]]]]
7338− `[%| ["union pattern is not supported by partial inference" ~]]
7339− ?: &(?=(^ t.matching) (union-pattern-has-bind pat.a))
7340− `[%| ["a union pattern binding several cases is not supported by partial inference" ~]]
7341− =/ bound=(unit ienv) (union-pattern-bind pat.a i.matching env globals.st)
7342− ?~ bound `[%| ["pattern binder shadows a name" ~]]
7343− =/ body=iresult (infer-call-context-arg val.a expected u.bound st context)
7344− ?: ?=(%| -.body) `body
7345− =/ fit=ifit (itype-fit typ.p.body expected sub.state.p.body next.state.p.body)
7346− ?: ?=(%unknown -.fit) `[%| ["union branch result constraint is not supported by partial inference" ~]]
7347− ?: ?=(%bad -.fit)
7348− =/ missing=(unit idiag) (missing-union-tag val.a expected sub.state.p.body context)
7349− ?^ missing `[%| u.missing]
7350− =/ nested=(unit idiag) (nested-missing-tag val.a typ.p.body expected sub.state.p.body next.state.p.body context)
7351− ?^ nested `[%| u.nested]
7352− `[%| ["union branch arm does not fit its expected type" ~[[context "expected type"] [(span-of val.a) "branch arm"]]]]
7353− ?: (itype-has-tag (itype-normalize expected sub.fit))
7354− `[%| ["union branch result needs context in partial inference" ~]]
7355− $(arms t.arms, remaining (skim remaining |=(c=itype !=(%full (union-pattern pat.a c)))), st state.p.body(sub sub.fit, next next.fit), answer `expected)
7356−::
7357−++ infer-known-union-finite
7358− |= [e=expr env=ienv subject=iresult expected=(unit [typ=itype context=span])]
7359− ^- iresult
7360− ?> ?=(%branch -.e)
7361− ?: ?=(%| -.subject) subject
7362− =/ typ=itype (itype-normalize typ.p.subject sub.state.p.subject)
7363− ?. ?=(%union -.typ) [%| ["branch is not supported by partial inference" ~]]
7364− =/ expanded=(unit (list ifinite)) (finite-cases cases.typ ~ 0)
7365− ?~ expanded [%| ["union pattern expansion needs unsupported inference" ~]]
7366− =/ cases=(list ifinite) u.expanded
7367− =/ remaining=(list ifinite) cases
7368− =/ arms=(list arm) arms.e
7369− =/ st=istate state.p.subject
7370− =/ answer=(unit itype) ~
7371− |-
7372− ?~ arms
7373− ?^ remaining
7374− [%| ["missing union case {(show-itype part.i.remaining sub.st)}" ~]]
7375− ?~ answer [%| ["empty union branch is not supported by partial inference" ~]]
7376− ?~ expected [%& u.answer st]
7377− [%& typ.u.expected st]
7378− =/ a=arm i.arms
7379− ?: (lien remaining |=(c=ifinite =(%unknown (union-pattern pat.a part.c))))
7380− [%| ["partial union pattern is not supported by partial inference" ~]]
7381− =/ matching=(list ifinite) (skim remaining |=(c=ifinite =(%full (union-pattern pat.a part.c))))
7382− ?~ matching
7383− ?: (lien cases |=(c=ifinite =(%full (union-pattern pat.a part.c))))
7384− [%| ["branch arm is covered by earlier arms" ~[[at.pat.a "covered arm"]]]]
7385− [%| ["union pattern is not supported by partial inference" ~]]
7386− ?: &((union-pattern-has-bind pat.a) (lien t.matching |=(c=ifinite !=(origin.c origin.i.matching))))
7387− [%| ["a union pattern binding several cases is not supported by partial inference" ~]]
7388− =/ bound=(unit ienv) (union-pattern-bind pat.a base.i.matching env globals.st)
7389− ?~ bound [%| ["pattern binder shadows a name" ~]]
7390− =/ body=iresult
7391− ?~ expected (infer-fragment val.a u.bound st)
7392− (infer-call-context-arg val.a typ.u.expected u.bound st context.u.expected)
7393− ?: ?=(%| -.body) body
7394− ?^ expected
7395− =/ fit=ifit (itype-fit typ.p.body typ.u.expected sub.state.p.body next.state.p.body)
7396− ?: ?=(%unknown -.fit) [%| ["union branch result constraint is not supported by partial inference" ~]]
7397− ?: ?=(%bad -.fit)
7398− =/ missing=(unit idiag) (missing-union-tag val.a typ.u.expected sub.state.p.body context.u.expected)
7399− ?^ missing [%| u.missing]
7400− =/ nested=(unit idiag) (nested-missing-tag val.a typ.p.body typ.u.expected sub.state.p.body next.state.p.body context.u.expected)
7401− ?^ nested [%| u.nested]
7402− [%| ["union branch arm does not fit its expected type" ~[[context.u.expected "expected type"] [(span-of val.a) "branch arm"]]]]
7403− ?: (itype-has-tag (itype-normalize typ.u.expected sub.fit))
7404− [%| ["union branch result needs context in partial inference" ~]]
7405− $(arms t.arms, remaining (skim remaining |=(c=ifinite !=(%full (union-pattern pat.a part.c)))), st state.p.body(sub sub.fit, next next.fit), answer `typ.u.expected)
7406− =/ result=itype (itype-normalize typ.p.body sub.state.p.body)
7407− =/ mismatch=? ?~(answer | !=((itype-normalize u.answer sub.state.p.body) result))
7408− ?: mismatch [%| ["union branch result matching needs unsupported inference" ~]]
7409− $(arms t.arms, remaining (skim remaining |=(c=ifinite !=(%full (union-pattern pat.a part.c)))), st state.p.body, answer `result)
7410−::
7411−:: Prove a one-arm record pattern covers a known, non-union subject.
7412−:: Variable or partial matches stay unsupported; binding uses the same
7413−:: scope and original payload types as the existing union matcher.
7414−++ single-structured-pattern
7415− |= e=expr
7416− ^- ?
7417− ?. ?=(%branch -.e) |
7418− ?~ arms.e |
7419− ?^ t.arms.e |
7420− =/ p=pattern pat.i.arms.e
7421− ?. ?=(%cell -.p) |
7422− !(levy items.p |=(x=pattern ?=(%bind -.x)))
7423−::
7424−++ infer-single-case-branch
7425− |= [e=expr env=ienv state=istate expected=(unit [typ=itype context=span])]
7426− ^- iresult
7427− ?> (single-structured-pattern e)
7428− ?> ?=(%branch -.e)
7429− ?> ?=(^ arms.e)
7430− =/ a=arm i.arms.e
7431− =/ subject=iresult (infer-fragment subject.e env state)
7432− ?: ?=(%| -.subject) subject
7433− =/ st=istate state.p.subject
7434− =/ typ=itype (itype-normalize typ.p.subject sub.st)
7435− ?: ?=(%union -.typ) [%| ["single-case pattern needs unsupported inference" ~]]
7436− ?. =(%full (union-pattern pat.a typ))
7437− [%| ["single-case pattern needs unsupported inference" ~]]
7438− =/ bound=(unit ienv) (union-pattern-bind pat.a typ env globals.st)
7439− ?~ bound [%| ["pattern binder shadows a name" ~]]
7440− ?~ expected (infer-fragment val.a u.bound st)
7441− =/ body=iresult (infer-call-context-arg val.a typ.u.expected u.bound st context.u.expected)
7442− ?: ?=(%| -.body) body
7443− =/ fit=ifit (itype-fit typ.p.body typ.u.expected sub.state.p.body next.state.p.body)
7444− ?: ?=(%unknown -.fit) [%| ["single-case branch result constraint is not supported by partial inference" ~]]
7445− ?: ?=(%bad -.fit)
7446− =/ missing=(unit idiag) (missing-union-tag val.a typ.u.expected sub.state.p.body context.u.expected)
7447− ?^ missing [%| u.missing]
7448− =/ nested=(unit idiag) (nested-missing-tag val.a typ.p.body typ.u.expected sub.state.p.body next.state.p.body context.u.expected)
7449− ?^ nested [%| u.nested]
7450− [%| ["single-case branch arm does not fit its expected type" ~[[context.u.expected "expected type"] [(span-of val.a) "branch arm"]]]]
7451− ?: (itype-has-tag (itype-normalize typ.u.expected sub.fit))
7452− [%| ["single-case branch result needs context in partial inference" ~]]
7453− [%& typ.u.expected state.p.body(sub sub.fit, next next.fit)]
7454−::
7455−:: This view is used only by pattern analysis, never exported or bound as
7456−:: the subject. Only null plus a two-binder/wildcard cell is supported; its
7457−:: tail keeps the original recursive type. Other patterns fail closed.
7458−++ jrec-match-view
7459− |= [e=expr subject=iresult]
7460− ^- iresult
7461− ?: ?=(%| -.subject) subject
7462− ?. ?=(%branch -.e) subject
7463− =/ typ=itype (itype-normalize typ.p.subject sub.state.p.subject)
7464− ?. ?=(%jrec -.typ) subject
7465− ?~ arms.e subject
7466− ?~ t.arms.e subject
7467− ?^ t.t.arms.e subject
7468− =/ x=pattern pat.i.arms.e
7469− =/ y=pattern pat.i.t.arms.e
7470− =/ empty=? &(?=(%lit -.x) =(%null form.lit.x))
7471− =/ full=pattern ?:(empty y x)
7472− ?. |(empty &(?=(%lit -.y) =(%null form.lit.y))) subject
7473− ?. ?=(%cell -.full) subject
7474− ?~ items.full subject
7475− ?~ t.items.full subject
7476− ?^ t.t.items.full subject
7477− ?. |(?=(%bind -.i.items.full) ?=(%any -.i.items.full)) subject
7478− ?. |(?=(%bind -.i.t.items.full) ?=(%any -.i.t.items.full)) subject
7479− ?: =(0 jrec-fuel.state.p.subject)
7480− [%| ["recursive mold unfolding needs unsupported inference" ~]]
7481− =/ nil=itype [%const [%null %n 0 '~']]
7482− =/ cell=itype [%cell [%face head.typ [%atom aura.typ]] [%face tail.typ typ]]
7483− [%& [%union ~[nil cell] ~ ~ ~] state.p.subject(jrec-fuel (dec jrec-fuel.state.p.subject))]
7484−::
7485−++ infer-known-union-branch-subject
7486− |= [e=expr env=ienv subject=iresult]
7487− ^- iresult
7488− =. subject (jrec-match-view e subject)
7489− =/ whole=(unit iresult) (infer-known-union-whole e env subject)
7490− ?~ whole (infer-known-union-finite e env subject ~)
7491− u.whole
7492−::
7493−++ infer-known-union-branch
7494− |= [e=expr env=ienv state=istate]
7495− ^- iresult
7496− ?> ?=(%branch -.e)
7497− (infer-known-union-branch-subject e env (infer-fragment subject.e env state))
7498−::
7499−++ infer-known-union-context-subject
7500− |= [e=expr expected=itype env=ienv subject=iresult context=span]
7501− ^- iresult
7502− =. subject (jrec-match-view e subject)
7503− =/ whole=(unit iresult) (infer-known-union-context-whole e expected env subject context)
7504− ?~ whole (infer-known-union-finite e env subject `[expected context])
7505− u.whole
7506−::
7507−:: Limit speculative subject inference to wings and shallow calls;
7508−:: grouping is peeled linearly and cannot introduce a nested branch.
7509−++ simple-union-subject-arg
7510− |= e=expr
7511− ^- ?
7512− ?- -.e
7513− %wing &
7514− %lit &
7515− %str !(lien pieces.e |=(p=piece ?=(%expr -.p)))
7516− * |
7517− ==
7518−::
7519−++ safe-union-subject
7520− |= e=expr
7521− ^- ?
7522− ?: ?=(%group -.e) $(e inner.e)
7523− ?: ?=(%wing -.e) &
7524− ?. ?=(%call -.e) |
7525− ?. ?=(%wing -.head.e) |
7526− (levy args.e simple-union-subject-arg)
7527−::
7528−++ duplicate-loobean-arms
7529− |= e=expr
7530− ^- ?
7531− ?. ?=(%branch -.e) |
7532− ?~ arms.e |
7533− ?~ t.arms.e |
7534− ?^ t.t.arms.e |
7535− =/ x=pattern pat.i.arms.e
7536− =/ y=pattern pat.i.t.arms.e
7537− ?. &(?=(%lit -.x) ?=(%lit -.y)) |
7538− ?. &(=(%loobean form.lit.x) =(%loobean form.lit.y)) |
7539− =(val.lit.x val.lit.y)
7540−::
7541−++ union-subject-call
7542− |= e=expr
7543− ^- ?
7544− ?: ?=(%group -.e) $(e inner.e)
7545− ?=(%call -.e)
7546−::
7547−++ known-union-subject
7548− |= [e=expr env=ienv state=istate]
7549− ^- (unit iresult)
7550− ?. (safe-union-subject e) ~
7551− =/ subject=iresult (infer-fragment e env state)
7552− ?: ?=(%| -.subject) ?:((union-subject-call e) `subject ~)
7553− =/ typ=itype (itype-normalize typ.p.subject sub.state.p.subject)
7554− ?. |(?=(%union -.typ) ?=(%jrec -.typ)) ~
7555− `subject
7556−::
7557−::
7558−:: Infer changes only against a fully known record spine. Retain the
7559−:: target type; unknown spines and repeated edits remain unsupported.
7560−++ change-spine-known
7561− |= [t=itype sub=isub]
7562− ^- ?
7563− =. t (itype-walk t sub)
7564− ?: ?=(%face -.t) &
7565− ?. ?=(%cell -.t) |
7566− =/ first=itype (itype-walk hed.t sub)
7567− ?. ?=(%face -.first) |
7568− $(t tal.t)
7569−::
7570−++ infer-change-edits
7571− |= [edits=(list edit) target=itype env=ienv state=istate seen=(list term)]
7572− ^- iresult
7573− ?~ edits [%& target state]
7574− =/ entry=edit i.edits
7575− ?: (lien seen |=(name=term =(name name.entry)))
7576− [%| ["repeated change fields are not supported by partial inference" ~]]
7577− ?. (change-spine-known target sub.state)
7578− [%| ["change target needs a known record in partial inference" ~]]
7579− =/ found=(list itype) (record-fields-named name.entry target sub.state)
7580− ?~ found
7581− [%| ["record has no field `{(trip name.entry)}`" ~[[at.entry "unknown field"]]]]
7582− ?^ t.found [%| ["change field is ambiguous in partial inference" ~]]
7583− =/ expected=itype i.found
7584− =/ value=iresult (infer-call-context-arg val.entry expected env state at.entry)
7585− ?: ?=(%| -.value) value
7586− =/ fit=ifit (itype-fit typ.p.value expected sub.state.p.value next.state.p.value)
7587− ?: ?=(%unknown -.fit) [%| ["change field constraint is not supported by partial inference" ~]]
7588− ?: ?=(%bad -.fit)
7589− [%| ["change field and replacement do not unify" ~[[at.entry (site-type-note "expected replacement" expected sub.state.p.value)] [(span-of val.entry) (site-type-note "replacement" typ.p.value sub.state.p.value)]]]]
7590− $(edits t.edits, state state.p.value(sub sub.fit, next next.fit), seen [name.entry seen])
7591−::
7592−:: Backtick constructs the canonical prelude unit, after checking its
7593−:: prepared template has the standard null and [~ u=A] cases.
7594−++ standard-unit-template
7595− |= [template=ischeme at=path]
7596− ^- ?
7597− ?. =(at /lib/jibb/prelude/jibb) |
7598− ?~ vars.template |
7599− ?^ t.vars.template |
7600− =/ v=@ud i.vars.template
7601− =/ nil=itype [%const [%null %n 0 '~']]
7602− =/ expected=itype
7603− [%union ~[nil [%cell nil [%face %u [%var v]]]] `[at %unit] `%unit ~[[%var v]]]
7604− =(typ.template expected)
7605−::
7606−:: A named missing-case diagnostic needs more than a failed fit: a case
7607−:: with that tag but the wrong payload is not a missing case. Unknown
7608−:: shapes and atom types that accept terms keep the proof conservative.
7609−+$ itag-presence ?(%yes %no %maybe)
7610−++ tag-presence-cases
7611− |= [cases=(list itype) value=@ sub=isub]
7612− ^- itag-presence
7613− ?~ cases %no
7614− =/ first=itag-presence (tag-presence i.cases value sub)
7615− ?: =(%yes first) %yes
7616− =/ rest=itag-presence $(cases t.cases)
7617− ?: =(%yes rest) %yes
7618− ?: |(=(%maybe first) =(%maybe rest)) %maybe
7619− %no
7620−::
7621−++ tag-presence
7622− |= [t=itype value=@ sub=isub]
7623− ^- itag-presence
7624− =. t (itype-walk t sub)
7625− ?- -.t
7626− %const ?:(=(value val.literal.t) %yes %no)
7627− %flag ?:(|(=(value 0) =(value 1)) %yes %no)
7628− %atom ?:(|(=(%tas aura.t) =(%ta aura.t)) %maybe %no)
7629− %face $(t body.t)
7630− %cell
7631− =/ first=itag-presence $(t hed.t)
7632− ?: =(%yes first) %yes
7633− =/ rest=itag-presence $(t tal.t)
7634− ?: =(%yes rest) %yes
7635− ?: |(=(%maybe first) =(%maybe rest)) %maybe
7636− %no
7637− %union (tag-presence-cases cases.t value sub)
7638− * %maybe
7639− ==
7640−::
7641−++ missing-union-tag
7642− |= [e=expr expected=itype sub=isub context=span]
7643− ^- (unit idiag)
7644− ?. ?=(%lit -.e) ~
7645− ?. =(%term form.lit.e) ~
7646− =. expected (itype-walk expected sub)
7647− |-
7648− ?: ?=(%face -.expected) $(expected (itype-walk body.expected sub))
7649− ?. ?=(%union -.expected) ~
7650− ?. =(%no (tag-presence-cases cases.expected val.lit.e sub)) ~
7651− =/ label=tape
7652− ?~ label.expected "union {(show-itype expected sub)}"
7653− (show-itype expected sub)
7654− `["{label} has no case `{(trip txt.lit.e)}`" ~[[context "expected union"] [(span-of e) "tag"]]]
7655−::
7656−:: Locate a missing tag inside a syntactic tuple only by replaying the
7657−:: directional fit in source order. Uncertain or earlier failures stop
7658−:: the walk, preserving the generic diagnostic rather than guessing.
7659−++ nested-missing-tag
7660− |= [e=expr actual=itype expected=itype sub=isub next=@ud context=span]
7661− ^- (unit idiag)
7662− =/ original=[left=itype right=itype] [actual expected]
7663− ?: |(?=(%var -.left.original) ?=(%avar -.left.original) ?=(%nvar -.left.original) ?=(%var -.right.original) ?=(%avar -.right.original) ?=(%nvar -.right.original)) ~
7664− =/ fit=ifit (itype-fit actual expected sub next)
7665− ?. ?=(%bad -.fit) ~
7666− =. actual (itype-walk actual sub)
7667− =. expected (itype-walk expected sub)
7668− ?: &(?=(%face -.actual) ?=(%face -.expected))
7669− ?. =(name.actual name.expected) ~
7670− $(actual body.actual, expected body.expected)
7671− ?: ?=(%face -.actual) $(actual body.actual)
7672− ?: ?=(%face -.expected) $(expected body.expected)
7673− =/ direct=(unit idiag) (missing-union-tag e expected sub context)
7674− ?^ direct direct
7675− ?. ?=(%tuple -.e) ~
7676− (nested-missing-items items.e actual expected sub next context)
7677−::
7678−++ nested-missing-items
7679− |= [items=(list item) actual=itype expected=itype sub=isub next=@ud context=span]
7680− ^- (unit idiag)
7681− ?~ items ~
7682− ?~ t.items (nested-missing-tag val.i.items actual expected sub next context)
7683− =/ original=[left=itype right=itype] [actual expected]
7684− ?: |(?=(%var -.left.original) ?=(%avar -.left.original) ?=(%nvar -.left.original) ?=(%var -.right.original) ?=(%avar -.right.original) ?=(%nvar -.right.original)) ~
7685− =. actual (itype-walk actual sub)
7686− =. expected (itype-walk expected sub)
7687− ?. &(?=(%cell -.actual) ?=(%cell -.expected)) ~
7688− =/ first=ifit (itype-fit hed.actual hed.expected sub next)
7689− ?: ?=(%bad -.first)
7690− (nested-missing-tag val.i.items hed.actual hed.expected sub next context)
7691− ?. ?=(%ok -.first) ~
7692− $(items t.items, actual tal.actual, expected tal.expected, sub sub.first, next next.first)
7693−::
7694−:: A term-headed pair is the same noun as a two-item cell. Preserve the
7695−:: whole pair span for the synthetic head and the value's own span for
7696−:: the payload; unresolved term constraints follow ordinary cell inference.
7697−++ pair-as-cell
7698− |= e=expr
7699− ^- expr
7700− ?> ?=(%pair -.e)
7701− =/ head=expr [%lit at.e [%term %tas tag.e (crip ['%' (trip tag.e)])]]
7702− [%tuple at.e ~[[at.e ~ head] [(span-of val.e) ~ val.e]]]
7703−::
7704−:: A segment costs one shared step; dynamic segments are not handled yet.
7705−++ qath-static-fuel
7706− |= [segs=(list qseg) fuel=@ud]
7707− ^- (unit @ud)
7708− ?~ segs `fuel
7709− ?: =(0 fuel) ~
7710− ?. ?=(%knot -.i.segs) ~
7711− $(segs t.segs, fuel (dec fuel))
7712−::
77134943++ infer-fragment
77144944 |= [e=expr env=ienv state=istate]
77154945 ^- iresult
77164946 ?- -.e
7717− %pair $(e (pair-as-cell e))
77184947 %lit
77194948 ?- form.lit.e
77204949 %number ?: =(%ud aura.lit.e)
7721− [%& [%nvar next.state] state(next +(next.state))]
4950+ [%& [%avar next.state] state(next +(next.state))]
77224951 [%& [%atom aura.lit.e] state]
77234952 %ship [%& [%atom %p] state]
77244953 %date [%& [%atom %da] state]
77254954 %duration [%& [%atom %dr] state]
77264955 %knot [%& [%atom %ta] state]
77274956 %loobean [%& [%flag ~] state]
7728− %term [%& [%tag next.state lit.e |] state(next +(next.state), tags [[next.state lit.e] tags.state])]
7729− %null [%& [%tag next.state lit.e |] state(next +(next.state), tags [[next.state lit.e] tags.state])]
4957+ * [%| "literal needs contextual inference"]
77304958 ==
7731− %unit
7732− ?~ prelude.state [%| ["unit construction needs the standard prelude in partial inference" ~]]
7733− =/ standard=(unit ischeme) (find-jibb-mold %unit u.prelude.state)
7734− ?~ standard [%| ["unit construction needs the standard prelude in partial inference" ~]]
7735− ?. (standard-unit-template u.standard at.u.prelude.state)
7736− [%| ["unit construction needs the standard prelude in partial inference" ~]]
7737− =/ value=iresult $(e val.e)
7738− ?: ?=(%| -.value) value
7739− =/ result=(unit itype) (template-apply u.standard ~[typ.p.value])
7740− ?~ result [%| ["unit construction is not supported by partial inference" ~]]
7741− [%& u.result state.p.value]
7742− %list
7743− ?~ prelude.state [%| ["list literal needs the standard prelude in partial inference" ~]]
7744− ?. =(at.u.prelude.state /lib/jibb/prelude/jibb)
7745− [%| ["list literal needs the standard prelude in partial inference" ~]]
7746− =/ standard=(unit ischeme) (find-jibb-mold %list u.prelude.state)
7747− ?~ standard [%| ["list literal needs the standard prelude in partial inference" ~]]
7748− ?. =(u.standard [[%collection %list ~[[%var 0]]] ~[0]])
7749− [%| ["list literal needs the standard prelude in partial inference" ~]]
7750− =/ element=itype [%var next.state]
7751− =/ result=iresult (infer-open-list-items items.e element env state(next +(next.state)) at.e)
7752− ?: ?=(%| -.result) result
7753− [%& [%collection %list ~[element]] state.p.result]
7754− %str (infer-string-pieces pieces.e env state)
7755− %qath
7756− ?~ prelude.state [%| ["application path needs the standard prelude in partial inference" ~]]
7757− ?. =(at.u.prelude.state /lib/jibb/prelude/jibb)
7758− [%| ["application path needs the standard prelude in partial inference" ~]]
7759− =/ standard=(unit ischeme) (find-jibb-mold %qath u.prelude.state)
7760− ?~ standard [%| ["application path needs the standard prelude in partial inference" ~]]
7761− ?. ?=(~ vars.u.standard) [%| ["application path mold needs unsupported inference" ~]]
7762− =/ typ=itype typ.u.standard
7763− ?. ?=(%jrec -.typ) [%| ["application path mold needs unsupported inference" ~]]
7764− ?. &(=(at.typ /lib/jibb/internal/jibb) =(%qath name.typ) =(%i head.typ) =(%ta aura.typ) =(%t tail.typ))
7765− [%| ["application path mold needs unsupported inference" ~]]
7766− ?: =(0 jrec-fuel.state) [%| ["recursive mold unfolding needs unsupported inference" ~]]
7767− =/ remain=(unit @ud) (qath-static-fuel segs.e (dec jrec-fuel.state))
7768− ?~ remain [%| ["application path segments need unsupported inference" ~]]
7769− [%& typ state(jrec-fuel u.remain)]
4959+ %str
4960+ =/ interpolated=? (lien pieces.e |=(p=piece ?=(%expr -.p)))
4961+ ?: interpolated [%| "interpolation is not supported by partial inference"]
4962+ [%& [%atom %t] state]
77704963 %wing
7771− ?~ names.e [%| ["empty wing" ~]]
7772− ?^ t.names.e
7773− ?^ t.t.names.e (infer-field-wing names.e env state)
7774− =/ iface=(unit ifile) (find-jibb-interface i.t.names.e jimports.state)
7775− ?~ iface (infer-field-wing names.e env state)
7776− =/ member=(unit ischeme) (ienv-lookup i.names.e values.u.iface)
7777− ?~ member [%| ["module member is not available to partial inference" ~]]
7778− =. typ.u.member (itype-in-import typ.u.member u.iface i.t.names.e prelude.state)
7779− =/ instance=[typ=itype state=istate] (instantiate-scheme u.member state)
7780− [%& typ.instance state.instance]
4964+ ?~ names.e [%| "empty wing"]
4965+ ?^ t.names.e [%| "field access is not supported by partial inference"]
77814966 =/ scheme=(unit ischeme) (ienv-lookup i.names.e env)
7782− ?~ scheme
7783− ?~ prelude.state [%| ["name is not available to partial inference" ~]]
7784− =/ prelude-entry=(unit ischeme) (ienv-lookup i.names.e values.u.prelude.state)
7785− ?~ prelude-entry [%| ["name is not available to partial inference" ~]]
7786− =/ inst=[typ=itype state=istate] (instantiate-scheme u.prelude-entry state)
7787− [%& typ.inst state.inst]
4967+ ?~ scheme [%| "name is not available to partial inference"]
77884968 =/ instance=[typ=itype state=istate] (instantiate-scheme u.scheme state)
77894969 [%& typ.instance state.instance]
77904970 %group $(e inner.e)
7791− %change
7792− ?~ edits.e [%| ["a change takes at least one field" ~[[at.e "empty change"]]]]
7793− =/ target=iresult $(e [%wing at.e target.e])
7794− ?: ?=(%| -.target) target
7795− (infer-change-edits edits.e typ.p.target env state.p.target ~)
7796− %ctor [%& [%tag next.state tag.e &] state(next +(next.state), tags [[next.state tag.e] tags.state])]
7797− %trace
7798− =/ traced=iresult $(e val.e)
7799− ?: ?=(%| -.traced) traced
7800− $(e then.e, state state.p.traced)
78014971 %tuple (infer-simple-items items.e env state)
78024972 %body
7803− ?~ defs.e $(e final.e)
7804− =/ local-names=(list term) (global-value-names defs.e)
7805− ?. (local-names-valid defs.e env state)
7806− [%| ["local definitions shadow a name" ~]]
7807− =/ local-molds=imolds (collect-simple-molds defs.e)
7808− ?. (local-mold-names-valid local-molds state)
7809− [%| ["local molds shadow a name" ~]]
7810− =/ local-state=istate
7811− state(globals (weld local-names globals.state), molds (weld local-molds molds.state))
7812− =/ mold-hole=(unit span) (simple-local-mold-hole defs.e)
7813− ?^ mold-hole
7814− [%| ["type hole needs a determined type" ~[[u.mold-hole "unresolved type hole"]]]]
7815− ?. (local-molds-supported local-molds local-state)
7816− [%| ["local molds need unsupported inference" ~]]
7817− =/ values=(list def) (local-value-defs defs.e)
7818− =/ locals=ilocal-result (infer-local-defs values env local-state)
7819− ?: ?=(%| -.locals) locals
7820− =/ result=iresult $(e final.e, env env.p.locals, state state.p.locals)
7821− ?: ?=(%| -.result) result
7822− [%& typ.p.result state.p.result(globals globals.state, molds molds.state)]
4973+ ?^ defs.e [%| "local definitions are not supported by partial inference"]
4974+ $(e final.e)
78234975 %branch
7824− ?~ arms.e [%| ["branch is not supported by partial inference" ~]]
7825− ?~ t.arms.e
7826− ?: (single-structured-pattern e) (infer-single-case-branch e env state ~)
7827− (infer-cell-branch e env state ~)
7828− ?^ t.t.arms.e (infer-known-union-branch e env state)
7829− =/ known=(unit iresult) (known-union-subject subject.e env state)
7830− ?: &(?=(^ known) ?=(%| -.u.known) !(duplicate-loobean-arms e)) u.known
7831− ?: &(?=(^ known) ?=(%& -.u.known) ?=(~ (unit-union-payload (itype-normalize typ.p.u.known sub.state.p.u.known))))
7832− (infer-known-union-branch-subject e env u.known)
4976+ ?~ arms.e [%| "branch is not supported by partial inference"]
4977+ ?~ t.arms.e (infer-cell-branch e env state)
4978+ ?^ t.t.arms.e [%| "branch is not supported by partial inference"]
78334979 =/ x=arm i.arms.e
78344980 =/ y=arm i.t.arms.e
7835− ?: |((unit-empty-pattern pat.x) (unit-empty-pattern pat.y))
7836− (infer-unit-branch e env state ~)
7837− ?. ?=(%lit -.pat.x) (infer-known-union-branch e env state)
7838− ?. ?=(%lit -.pat.y) (infer-known-union-branch e env state)
4981+ ?. ?=(%lit -.pat.x) [%| "branch pattern is not supported by partial inference"]
4982+ ?. ?=(%lit -.pat.y) [%| "branch pattern is not supported by partial inference"]
78394983 ?. &(=(%loobean form.lit.pat.x) =(%loobean form.lit.pat.y))
7840− (infer-known-union-branch e env state)
7841− ?: &(?=(^ known) ?=(%& -.u.known)) (infer-known-union-branch-subject e env u.known)
4984+ [%| "branch pattern is not supported by partial inference"]
78424985 ?: =(val.lit.pat.x val.lit.pat.y)
7843− [%| ["branch does not cover both loobeans" ~]]
4986+ [%| "branch does not cover both loobeans"]
78444987 =/ subject=iresult $(e subject.e)
78454988 ?: ?=(%| -.subject) subject
7846− =/ subject-type=itype (itype-normalize typ.p.subject sub.state.p.subject)
7847− ?: ?=(%union -.subject-type)
7848− [%| ["union-pattern branch subject is not supported by partial inference" ~]]
78494989 =/ su=(unit isub) (itype-unify typ.p.subject [%flag ~] sub.state.p.subject)
7850− ?~ su [%| ["loobean branch subject does not unify with ?" ~]]
4990+ ?~ su [%| "loobean branch subject does not unify with ?"]
78514991 =/ left=iresult $(e val.x, state state.p.subject(sub u.su))
78524992 ?: ?=(%| -.left) left
78534993 =/ right=iresult $(e val.y, state state.p.left)
78544994 ?: ?=(%| -.right) right
7855− =/ ltype=itype (itype-normalize typ.p.left sub.state.p.right)
7856− =/ rtype=itype (itype-normalize typ.p.right sub.state.p.right)
7857− ?: &(!=(ltype rtype) |(?=(^ (itype-vars ltype)) ?=(^ (itype-vars rtype))) |((itype-has-fixed-atom ltype) (itype-has-fixed-atom rtype)))
7858− [%| ["branch widening is not supported by partial inference" ~]]
78594995 =/ joined=(unit isub) (itype-unify typ.p.left typ.p.right sub.state.p.right)
7860− ?~ joined
7861− ?: |((itype-has-recursive ltype) (itype-has-recursive rtype))
7862− [%| ["recursive branch matching is not supported by partial inference" ~]]
7863− ?: |((itype-has-tag ltype) (itype-has-tag rtype) (itype-has-union ltype) (itype-has-union rtype))
7864− [%| ["branch tag or union context is not supported by partial inference" ~]]
7865− =/ common=(unit itype) (itype-concrete-join typ.p.left typ.p.right sub.state.p.right)
7866− ?^ common [%& u.common state.p.right]
7867− ?: |((itype-has-face typ.p.left sub.state.p.right) (itype-has-face typ.p.right sub.state.p.right))
7868− [%| ["record branch matching is not supported by partial inference" ~]]
7869− ?: |((itype-has-any-atom typ.p.left sub.state.p.right) (itype-has-any-atom typ.p.right sub.state.p.right) (itype-family-related typ.p.left typ.p.right sub.state.p.right))
7870− [%| ["branch widening is not supported by partial inference" ~]]
7871− [%| ["branch arms have incompatible types" ~[[(span-of val.x) (site-type-note "first arm" typ.p.left sub.state.p.right)] [(span-of val.y) (site-type-note "second arm" typ.p.right sub.state.p.right)]]]]
4996+ ?~ joined [%| "branch arms have incompatible types"]
78724997 [%& typ.p.left state.p.right(sub u.joined)]
78734998 %cast
78744999 =/ target=(unit [typ=itype state=istate]) (infer-simple-shape shape.e state)
7875− ?~ target
7876− =/ diag=(unit idiag) (nested-import-invalid shape.e state)
7877− ?^ diag [%| u.diag]
7878− [%| ["cast mold is not supported by partial inference" ~]]
7879− =/ value=iresult
7880− (infer-call-context-arg val.e typ.u.target env state.u.target at.shape.e)
5000+ ?~ target [%| "cast mold is not supported by partial inference"]
5001+ =/ value=iresult $(e val.e, state state.u.target)
78815002 ?: ?=(%| -.value) value
7882− =/ shape=(unit [source=iwfields target=iwfields])
7883− (width-shape typ.p.value typ.u.target sub.state.p.value)
7884− ?^ shape [%| ["record width constraint needs unsupported inference" ~]]
7885− =/ fit=ifit (itype-fit typ.p.value typ.u.target sub.state.p.value next.state.p.value)
7886− ?: ?=(%unknown -.fit) [%| ["cast constraint is not supported by partial inference" ~]]
7887− ?: ?=(%bad -.fit)
7888− =/ missing=(unit idiag) (missing-union-tag val.e typ.u.target sub.state.p.value at.shape.e)
7889− ?^ missing [%| u.missing]
7890− =/ nested=(unit idiag) (nested-missing-tag val.e typ.p.value typ.u.target sub.state.p.value next.state.p.value at.shape.e)
7891− ?^ nested [%| u.nested]
7892− [%| ["cast mold and expression type do not unify" ~[[at.shape.e (site-type-note "cast mold" typ.u.target sub.state.p.value)] [(span-of val.e) (site-type-note "expression" typ.p.value sub.state.p.value)]]]]
7893− =/ merged=itype (itype-merge-faces typ.p.value typ.u.target sub.fit)
7894− [%& merged state.p.value(sub sub.fit, next next.fit)]
5003+ =/ uni=(unit isub) (itype-unify typ.u.target typ.p.value sub.state.p.value)
5004+ ?~ uni [%| "cast mold and expression type do not unify"]
5005+ [%& typ.u.target state.p.value(sub u.uni)]
78955006 %crash [%& [%var next.state] state(next +(next.state))]
78965007 %gate
78975008 =/ sam=isample-result (infer-sample sample.e env state)
7898− ?: ?=(%| -.sam)
7899− =/ diag=(unit idiag) (sample-import-invalid sample.e env state)
7900− ?: &(=(p.sam "sample mold is not supported by partial inference") ?=(^ diag)) [%| u.diag]
7901− [%| [p.sam ~]]
5009+ ?: ?=(%| -.sam) [%| p.sam]
79025010 =/ body=iresult $(e body.e, env env.p.sam, state state.p.sam)
79035011 ?: ?=(%| -.body) body
79045012 [%& [%fn typ.p.sam typ.p.body] state.p.body]
79055013 %gate-wide
79065014 =/ sam=isample-result (infer-sample sample.e env state)
7907− ?: ?=(%| -.sam)
7908− =/ diag=(unit idiag) (sample-import-invalid sample.e env state)
7909− ?: &(=(p.sam "sample mold is not supported by partial inference") ?=(^ diag)) [%| u.diag]
7910− [%| [p.sam ~]]
5015+ ?: ?=(%| -.sam) [%| p.sam]
79115016 =/ body=iresult $(e body.e, env env.p.sam, state state.p.sam)
79125017 ?: ?=(%| -.body) body
79135018 [%& [%fn typ.p.sam typ.p.body] state.p.body]
79145019 %call
7915− ?~ args.e [%| ["call has no argument" ~]]
7916− ?: (explicit-proj-call e env state)
7917− [%| ["proj needs an expected record type" ~]]
7918− (infer-call-with-head e env state (infer-fragment head.e env state))
7919− * [%| ["expression is not supported by partial inference" ~]]
5020+ ?~ args.e [%| "call has no argument"]
5021+ ?^ t.args.e [%| "multiple arguments are not supported by partial inference"]
5022+ =/ head=iresult $(e head.e)
5023+ ?: ?=(%| -.head) head
5024+ =/ arg=iresult $(e i.args.e, state state.p.head)
5025+ ?: ?=(%| -.arg) arg
5026+ =/ st=istate state.p.arg
5027+ =/ result=itype [%var next.st]
5028+ =/ uni=(unit isub)
5029+ (itype-unify typ.p.head [%fn typ.p.arg result] sub.st)
5030+ ?~ uni [%| "call's sample and argument types do not unify"]
5031+ [%& result st(next +(next.st), sub u.uni)]
5032+ * [%| "expression is not supported by partial inference"]
79205033 ==
79215034::
7922−:: Locate a definite failing argument after the complete sample fit has
7923−:: failed. If an intermediate fit is uncertain, retain the whole argument
7924−:: span rather than assigning blame to a particular argument.
7925−::
7926−:: Check a call using the head already inferred in this state. Keeping
7927−:: this shared avoids evaluating or instantiating a contextual head twice.
7928−++ width-has-projections
7929− |= ps=(list iwprojection)
7930− ^- ?
7931− ?~ ps |
7932− &
7933−::
7934−+$ iwidth-elaboration [original=expr typ=itype sub=isub projections=(list iwprojection)]
7935−++ infer-width-elaboration
7936− |= [e=expr env=ienv state=istate]
7937− ^- (each iwidth-elaboration idiag)
7938− =/ out=iresult (infer-fragment e env state)
7939− ?: ?=(%| -.out) [%| p.out]
7940− [%& [e typ.p.out sub.state.p.out (flop projections.state.p.out)]]
7941−::
7942−++ infer-call-with-head
7943− |= [e=expr env=ienv state=istate head=iresult]
7944− ^- iresult
7945− ?> ?=(%call -.e)
7946− ?~ args.e [%| ["call has no argument" ~]]
7947− ?: ?=(%| -.head) head
7948− =/ head-type=itype (itype-walk typ.p.head sub.state.p.head)
7949− =/ arg=iresult
7950− ?^ t.args.e
7951− ?: ?=(%fn -.head-type)
7952− (infer-call-context-args args.e sample.head-type env state.p.head (span-of head.e))
7953− (infer-simple-items (turn args.e |=(a=expr [(span-of a) ~ a])) env state.p.head)
7954− ?: ?=(%fn -.head-type)
7955− (infer-call-context-arg i.args.e sample.head-type env state.p.head (span-of head.e))
7956− (infer-fragment i.args.e env state.p.head)
7957− ?: ?=(%| -.arg) arg
7958− =/ st=istate state.p.arg
7959− =/ ht=itype (itype-walk typ.p.head sub.st)
7960− ?: ?=(%fn -.ht)
7961− =/ shape=(unit [source=iwfields target=iwfields])
7962− ?^ t.args.e ~
7963− (width-shape typ.p.arg sample.ht sub.st)
7964− ?^ shape [%| ["record width constraint needs unsupported inference" ~]]
7965− =/ fit=ifit
7966− ?^ t.args.e (itype-fit-inner typ.p.arg sample.ht sub.st next.st & |)
7967− (itype-fit typ.p.arg sample.ht sub.st next.st)
7968− ?: ?=(%unknown -.fit) [%| ["call constraint is not supported by partial inference" ~]]
7969− ?: ?=(%bad -.fit)
7970− ?~ t.args.e
7971− =/ missing=(unit idiag) (missing-union-tag i.args.e sample.ht sub.st (span-of head.e))
7972− ?^ missing [%| u.missing]
7973− =/ nested=(unit idiag) (nested-missing-tag i.args.e typ.p.arg sample.ht sub.st next.st (span-of head.e))
7974− ?^ nested [%| u.nested]
7975− [%| ["call's sample and argument types do not unify" ~[[(span-of head.e) (site-type-note "called gate" ht sub.st)] [(span-of i.args.e) (site-type-note "argument" typ.p.arg sub.st)]]]]
7976− =/ bad=(unit [at=span typ=itype])
7977− (call-error-site args.e typ.p.arg sample.ht sub.st next.st)
7978− =/ whole-args=span
7979− [beg:(span-of i.args.e) end:(span-of (rear args.e))]
7980− =/ arg-at=span ?~(bad whole-args at.u.bad)
7981− =/ arg-type=itype ?~(bad typ.p.arg typ.u.bad)
7982− [%| ["call's sample and argument types do not unify" ~[[(span-of head.e) (site-type-note "called gate" ht sub.st)] [arg-at (site-type-note "argument" arg-type sub.st)]]]]
7983− ?: &((itype-has-face typ.p.arg sub.fit) (itype-face-asym typ.p.arg sample.ht sub.fit) (itype-output-may-be-cell product.ht sub.fit))
7984− [%| ["call result face propagation is not supported by partial inference" ~]]
7985− [%& product.ht st(sub sub.fit, next next.fit)]
7986− =/ result=itype [%var next.st]
7987− =/ uni=(unit isub) (itype-unify ht [%fn typ.p.arg result] sub.st)
7988− ?~ uni
7989− [%| ["call's sample and argument types do not unify" ~[[(span-of head.e) (site-type-note "called gate" ht sub.st)] [(span-of i.args.e) (site-type-note "argument" typ.p.arg sub.st)]]]]
7990− [%& result st(next +(next.st), sub u.uni)]
7991−::
7992−++ call-error-site
7993− |= [args=(list expr) actual=itype expected=itype sub=isub next=@ud]
7994− ^- (unit [at=span typ=itype])
7995− ?~ args ~
7996− =/ original=[left=itype right=itype] [actual expected]
7997− ?: |(?=(%var -.left.original) ?=(%avar -.left.original) ?=(%nvar -.left.original) ?=(%var -.right.original) ?=(%avar -.right.original) ?=(%nvar -.right.original)) ~
7998− =. actual (itype-walk actual sub)
7999− =. expected (itype-walk expected sub)
8000− ?: &(?=(%face -.expected) !?=(%face -.actual))
8001− $(expected body.expected)
8002− ?~ t.args
8003− =/ fit=ifit (itype-fit actual expected sub next)
8004− ?. ?=(%bad -.fit) ~
8005− `[(span-of i.args) (itype-normalize actual sub)]
8006− ?. &(?=(%cell -.actual) ?=(%cell -.expected)) ~
8007− =/ first=ifit (itype-fit hed.actual hed.expected sub next)
8008− ?: ?=(%bad -.first) `[(span-of i.args) (itype-normalize hed.actual sub)]
8009− ?: ?=(%unknown -.first) ~
8010− $(args t.args, actual tal.actual, expected tal.expected, sub sub.first, next next.first)
8011−::
8012−:: Context can help a call argument or cast value while the final fit
8013−:: checks the complete right-nested type, including any written faces.
8014−::
8015−:: Context can resolve the payload of a canonical prelude unit, but an
8016−:: unrelated union with a similar noun shape is not the same mold.
8017−++ infer-unit-context
8018− |= [e=expr expected=itype env=ienv state=istate context=span]
8019− ^- iresult
8020− ?> ?=(%unit -.e)
8021− ?> ?=(%union -.expected)
8022− ?~ prelude.state (infer-fragment e env state)
8023− =/ standard=(unit ischeme) (find-jibb-mold %unit u.prelude.state)
8024− ?~ standard (infer-fragment e env state)
8025− ?. (standard-unit-template u.standard at.u.prelude.state) (infer-fragment e env state)
8026− ?. =(origin.expected `[at.u.prelude.state %unit]) (infer-fragment e env state)
8027− ?~ args.expected (infer-fragment e env state)
8028− ?^ t.args.expected (infer-fragment e env state)
8029− =/ payload=itype i.args.expected
8030− =/ canonical=(unit itype) (template-apply u.standard ~[payload])
8031− ?~ canonical (infer-fragment e env state)
8032− ?> ?=(%union -.u.canonical)
8033− ?. =((itype-normalize expected(label ~) sub.state) (itype-normalize u.canonical(label ~) sub.state))
8034− (infer-fragment e env state)
8035− =/ value=iresult (infer-call-context-arg val.e payload env state context)
8036− ?: ?=(%| -.value) value
8037− =/ fit=ifit (itype-fit typ.p.value payload sub.state.p.value next.state.p.value)
8038− ?: ?=(%unknown -.fit) [%| ["unit payload constraint is not supported by partial inference" ~]]
8039− ?: ?=(%bad -.fit)
8040− =/ missing=(unit idiag) (missing-union-tag val.e payload sub.state.p.value context)
8041− ?^ missing [%| u.missing]
8042− =/ nested=(unit idiag) (nested-missing-tag val.e typ.p.value payload sub.state.p.value next.state.p.value context)
8043− ?^ nested [%| u.nested]
8044− [%| ["unit payload does not fit its expected type" ~[[context (site-type-note "expected unit payload" payload sub.state.p.value)] [(span-of val.e) (site-type-note "payload" typ.p.value sub.state.p.value)]]]]
8045− [%& expected state.p.value(sub sub.fit, next next.fit)]
8046−::
8047−:: A known gate whose result is still an inference variable can receive
8048−:: an enclosing target before its argument is inferred. Other products
8049−:: and unresolved calls use the existing directional path unchanged.
8050−++ infer-contextual-call
8051− |= [e=expr expected=itype env=ienv state=istate]
8052− ^- iresult
8053− ?> ?=(%call -.e)
8054− ?~ args.e [%| ["call has no argument" ~]]
8055− =/ head=iresult (infer-fragment head.e env state)
8056− ?: ?=(%| -.head) head
8057− =/ ht=itype (itype-walk typ.p.head sub.state.p.head)
8058− ?. ?=(%fn -.ht) (infer-call-with-head e env state head)
8059− =/ result=itype (itype-walk product.ht sub.state.p.head)
8060− ?. ?=(%var -.result) (infer-call-with-head e env state head)
8061− ?: |(?=(%var -.expected) ?=(%avar -.expected) ?=(%nvar -.expected) (itype-has-tag (itype-normalize expected sub.state.p.head)))
8062− (infer-call-with-head e env state head)
8063− =/ sub=(unit isub) (itype-unify result expected sub.state.p.head)
8064− ?~ sub (infer-call-with-head e env state head)
8065− (infer-call-with-head e env state [%& typ.p.head state.p.head(sub u.sub)])
8066−::
8067−:: An eligible fully faced literal receives context by name, in source order.
8068−++ width-literal-fields
8069− |= [items=(list item) axis=@ud fuel=@ud]
8070− ^- (unit iwfields)
8071− =/ order=(list iwfield) ~
8072− =/ index=(map term iwfield) *(map term iwfield)
8073− |-
8074− ?~ items ~
8075− ?: =(0 fuel) ~
8076− ?~ face.i.items ~
8077− =/ at-axis=@ud ?~(t.items axis (mul 2 axis))
8078− =/ entry=iwfield [u.face.i.items at-axis [%noun ~]]
8079− ?: ?=(^ (~(get by index) name.entry)) ~
8080− =. index (~(put by index) name.entry entry)
8081− =. order [entry order]
8082− ?~ t.items `[(flop order) index]
8083− $(items t.items, axis +((mul 2 axis)), fuel (dec fuel))
8084−++ width-infer-items
8085− |= [items=(list item) expected=(map term iwfield) env=ienv state=istate context=span]
8086− ^- iresult
8087− ?~ items [%| ["empty record is not supported" ~]]
8088− ?~ face.i.items [%| ["record face needs unsupported inference" ~]]
8089− =/ field=(unit iwfield) (~(get by expected) u.face.i.items)
8090− =/ head=iresult
8091− ?~ field (infer-fragment val.i.items env state)
8092− (infer-call-context-arg val.i.items typ.u.field env state context)
8093− ?: ?=(%| -.head) head
8094− =/ typ=itype [%face u.face.i.items typ.p.head]
8095− ?~ t.items [%& typ state.p.head]
8096− =/ tail=iresult $(items t.items, state state.p.head)
8097− ?: ?=(%| -.tail) tail
8098− [%& [%cell typ typ.p.tail] state.p.tail]
8099−++ width-infer-literal
8100− |= [e=expr expected=itype env=ienv state=istate context=span]
8101− ^- (unit iresult)
8102− ?. ?=(%tuple -.e) ~
8103− ?. |(?=(%cell -.expected) ?=(%face -.expected)) ~
8104− =/ source=(unit iwfields) (width-literal-fields items.e 1 4.096)
8105− =/ target=(unit iwfields) (width-scan expected sub.state 1 4.096)
8106− ?~ source ~
8107− ?~ target ~
8108− ?: (lth (lent order.u.source) (lent order.u.target)) ~
8109− ?. (width-in-order order.u.source order.u.target)
8110− `(infer-simple-items items.e env state)
8111− `(width-infer-items items.e index.u.target env state context)
8112−::
8113−:: Recognize only the reserved unqualified, one-argument operation.
8114−++ explicit-proj-call
8115− |= [e=expr env=ienv state=istate]
8116− ^- ?
8117− ?. ?=(%call -.e) |
8118− ?. ?=([* ~] args.e) |
8119− ?. ?=(%wing -.head.e) |
8120− ?. =(names.head.e ~[%proj]) |
8121− ?: ?=(^ (ienv-lookup %proj env)) |
8122− ?: (lien globals.state |=(n=term =(n %proj))) |
8123− ?~ prelude.state &
8124− ?:(?=(^ (ienv-lookup %proj values.u.prelude.state)) | &)
8125−++ infer-proj-source
8126− |= [e=expr expected=itype env=ienv state=istate context=span]
8127− ^- iresult
8128− ?: ?=(%group -.e) $(e inner.e)
8129− =/ literal=(unit iresult) (width-infer-literal e expected env state context)
8130− ?^ literal u.literal
8131− (infer-fragment e env state)
8132−++ infer-proj-context
8133− |= [e=expr expected=itype env=ienv state=istate context=span]
8134− ^- iresult
8135− ?> ?=(%call -.e)
8136− ?~ args.e [%| ["proj needs one record" ~]]
8137− ?. |(?=(%cell -.expected) ?=(%face -.expected)) [%| ["proj needs an expected record type" ~]]
8138− =/ value=iresult (infer-proj-source i.args.e expected env state context)
8139− ?: ?=(%| -.value) value
8140− =/ shape=(unit [source=iwfields target=iwfields])
8141− (width-proj-shape typ.p.value expected sub.state.p.value)
8142− ?~ shape [%| ["proj needs a known record containing its expected fields" ~]]
8143− =/ project=(unit iwidth-result) (width-project u.shape sub.state.p.value next.state.p.value)
8144− ?~ project [%| ["proj constraint needs unsupported inference" ~]]
8145− =/ st=istate state.p.value(sub sub.u.project, next next.u.project)
8146− [%& expected st(projections [[at.e e typ.p.value expected steps.u.project] projections.st])]
8147−::
8148−++ infer-call-context-arg
8149− |= [e=expr expected=itype env=ienv state=istate context=span]
8150− ^- iresult
8151− ?: ?=(%pair -.e) $(e (pair-as-cell e))
8152− ?: ?=(%group -.e) $(e inner.e)
8153− ?: &(?=(%body -.e) ?=(~ defs.e)) $(e final.e)
8154− ?: ?=(%trace -.e)
8155− =/ traced=iresult (infer-fragment val.e env state)
8156− ?: ?=(%| -.traced) traced
8157− $(e then.e, state state.p.traced)
8158− =/ target=itype (itype-walk expected sub.state)
8159− |-
8160− ?: ?=(%face -.target) $(target (itype-walk body.target sub.state))
8161− ?: (explicit-proj-call e env state)
8162− (infer-proj-context e expected env state context)
8163− :: Only the source-proven one-layer cell is exposed. Each recursive
8164− :: descent consumes one written tuple; named values use ordinary fit.
8165− ?: &(?=(%jrec -.target) ?=(%lit -.e) =(%null form.lit.e))
8166− ?: =(0 jrec-fuel.state) [%| ["recursive mold unfolding needs unsupported inference" ~]]
8167− [%& target state(jrec-fuel (dec jrec-fuel.state))]
8168− ?: &(?=(%jrec -.target) ?=(%tuple -.e))
8169− ?: =(0 jrec-fuel.state) [%| ["recursive mold unfolding needs unsupported inference" ~]]
8170− =. state state(jrec-fuel (dec jrec-fuel.state))
8171− =/ shape=itype
8172− [%cell [%face head.target [%atom aura.target]] [%face tail.target target]]
8173− =/ value=iresult (infer-call-context-items items.e shape env state context)
8174− ?: ?=(%| -.value) value
8175− =/ fit=ifit (itype-fit typ.p.value shape sub.state.p.value next.state.p.value)
8176− ?: ?=(%unknown -.fit) [%| ["recursive mold cell constraint needs unsupported inference" ~]]
8177− ?: ?=(%bad -.fit) [%| ["recursive mold cell does not fit its source shape" ~]]
8178− [%& target state.p.value(sub sub.fit, next next.fit)]
8179− ?: ?=(%call -.e) (infer-contextual-call e target env state)
8180− ?: (single-structured-pattern e)
8181− (infer-single-case-branch e env state `[target context])
8182− ?: (cell-binder-pattern e)
8183− (infer-cell-branch e env state `[target context])
8184− :: In a loobean-singleton context retain the written loobean noun;
8185− :: the usual final fit decides whether that value is permitted.
8186− =/ singleton=(unit itype)
8187− ?. ?=(%lit -.e) ~
8188− ?. =(%loobean form.lit.e) ~
8189− ?. ?=(%const -.target) ~
8190− ?. =(%loobean form.literal.target) ~
8191− `[%const lit.e]
8192− ?^ singleton [%& u.singleton state]
8193− =/ known=(unit iresult)
8194− ?: ?=(%branch -.e) (known-union-subject subject.e env state)
8195− ~
8196− ?: &(?=(^ known) ?=(%| -.u.known) !(duplicate-loobean-arms e)) u.known
8197− ?: &(?=(^ known) ?=(%& -.u.known) ?=(~ (unit-union-payload (itype-normalize typ.p.u.known sub.state.p.u.known))))
8198− (infer-known-union-context-subject e target env u.known context)
8199− ?: &(?=(%union -.target) ?=(%unit -.e))
8200− (infer-unit-context e target env state context)
8201− ?: &(?=(%flag -.target) (context-union-branch e))
8202− (infer-union-context e target env state context)
8203− ?: &(?=(%union -.target) (context-union-branch e))
8204− (infer-union-context e target env state context)
8205− ?: &(?=(%collection -.target) =(%list name.target) (context-union-branch e))
8206− (infer-union-context e target env state context)
8207− ?: &(?=(%collection -.target) =(%list name.target) (context-list-expression e))
8208− (infer-list-context e target env state context)
8209− ?: &(?=(%cell -.target) ?=(%tuple -.e))
8210− (infer-call-context-items items.e target env state context)
8211− (infer-fragment e env state)
8212−::
8213−:: Preserve each written face; the final complete sample fit checks faces.
8214−:: A tuple or positional field face belongs to the enclosing sample,
8215−:: not to the expression at that position. A second face, if present,
8216−:: is part of the value's own expected type.
8217−++ projection-field-target
8218− |= expected=itype
8219− ^- itype
8220− ?:(?=(%face -.expected) body.expected expected)
8221−::
8222−++ infer-call-context-items
8223− |= [items=(list item) expected=itype env=ienv state=istate context=span]
8224− ^- iresult
8225− ?~ items [%| ["empty cell is not supported by partial inference" ~]]
8226− ?~ t.items
8227− =/ last=iresult (infer-call-context-arg val.i.items (projection-field-target expected) env state context)
8228− ?: ?=(%| -.last) last
8229− =/ typ=itype typ.p.last
8230− =. typ ?~(face.i.items typ [%face u.face.i.items typ])
8231− [%& typ state.p.last]
8232− =/ target=itype (itype-walk expected sub.state)
8233− |-
8234− ?: ?=(%face -.target) $(target (itype-walk body.target sub.state))
8235− ?. ?=(%cell -.target) (infer-simple-items items env state)
8236− =/ head=iresult (infer-call-context-arg val.i.items (projection-field-target hed.target) env state context)
8237− ?: ?=(%| -.head) head
8238− =/ typ=itype typ.p.head
8239− =. typ ?~(face.i.items typ [%face u.face.i.items typ])
8240− =/ tail=iresult (infer-call-context-items t.items tal.target env state.p.head context)
8241− ?: ?=(%| -.tail) tail
8242− [%& [%cell typ typ.p.tail] state.p.tail]
8243−::
8244−++ infer-call-context-args
8245− |= [args=(list expr) expected=itype env=ienv state=istate context=span]
8246− ^- iresult
8247− ?~ args [%| ["call has no argument" ~]]
8248− ?~ t.args (infer-call-context-arg i.args (projection-field-target expected) env state context)
8249− =/ target=itype (itype-walk expected sub.state)
8250− |-
8251− ?: ?=(%face -.target) $(target (itype-walk body.target sub.state))
8252− ?. ?=(%cell -.target)
8253− (infer-simple-items (turn args |=(a=expr [(span-of a) ~ a])) env state)
8254− =/ head=iresult (infer-call-context-arg i.args (projection-field-target hed.target) env state context)
8255− ?: ?=(%| -.head) head
8256− =/ tail=iresult (infer-call-context-args t.args tal.target env state.p.head context)
8257− ?: ?=(%| -.tail) tail
8258− [%& [%cell typ.p.head typ.p.tail] state.p.tail]
8259−::
8260−:: Tuple and record expressions preserve their explicitly written faces.
5035+:: Unfaced tuple expressions are the one supported cell construction.
5036+:: Faced cells wait for the representation to preserve record faces.
82615037::
82625038++ infer-simple-items
82635039 |= [items=(list item) env=ienv state=istate]
82645040 ^- iresult
8265− ?~ items [%| ["empty cell is not supported by partial inference" ~]]
5041+ ?~ items [%| "empty cell is not supported by partial inference"]
5042+ ?^ face.i.items [%| "record faces are not supported by partial inference"]
82665043 =/ head=iresult (infer-fragment val.i.items env state)
82675044 ?: ?=(%| -.head) head
8268− =/ ht=itype typ.p.head
8269− =. ht ?~(face.i.items ht [%face u.face.i.items ht])
8270− ?~ t.items [%& ht state.p.head]
5045+ ?~ t.items head
82715046 =/ tail=iresult $(items t.items, state state.p.head)
82725047 ?: ?=(%| -.tail) tail
8273− [%& [%cell ht typ.p.tail] state.p.tail]
8274−::
8275−:: A single all-binder cell pattern covers a known cell spine; the final
8276−:: binder captures the remaining noun. Other pattern matrices stay partial.
8277−::
8278−:: Validate binders before reading the subject, preserving shadow-error
8279−:: precedence. The last binder receives the entire remaining tail.
8280−++ cell-pattern-names
8281− |= [pats=(list pattern) env=ienv globals=(list term) seen=(list term)]
8282− ^- (each (list term) @t)
8283− ?~ pats [%& ~]
8284− ?. ?=(%bind -.i.pats) [%| 'branch pattern is not supported by partial inference']
8285− =/ name=term name.i.pats
8286− ?: |(=(name %proj) ?=(^ (ienv-lookup name env)) (lien globals |=(n=term =(n name))) (lien seen |=(n=term =(n name))))
8287− [%| 'pattern shadows a name']
8288− =/ rest=(each (list term) @t) $(pats t.pats, seen [name seen])
8289− ?: ?=(%| -.rest) rest
8290− [%& [name p.rest]]
8291−::
8292−++ cell-pattern-types
8293− |= [names=(list term) env=ienv next=@ud]
8294− ^- [typ=itype env=ienv next=@ud]
8295− ?~ names !!
8296− =/ head=itype [%var next]
8297− =/ scope=ienv [[i.names [head ~]] env]
8298− ?~ t.names [head scope +(next)]
8299− =/ tail=[typ=itype env=ienv next=@ud] $(names t.names, env scope, next +(next))
8300− [[%cell head typ.tail] env.tail next.tail]
8301−::
8302−:: At every position that must be a cell, opaque or sum types may still
8303−:: contain cells. Do not report a definite mismatch without unfolding them.
8304−++ cell-pattern-spine-unknown
8305− |= [typ=itype names=(list term) sub=isub]
8306− ^- ?
8307− ?~ names |
8308− ?~ t.names |
8309− =. typ (itype-walk typ sub)
8310− ?: ?=(%cell -.typ) $(typ tal.typ, names t.names)
8311− |(?=(%union -.typ) ?=(%collection -.typ) ?=(%recursive -.typ) ?=(%jrec -.typ) ?=(%noun -.typ) ?=(%fn -.typ) ?=(%tag -.typ))
5048+ [%& [%cell typ.p.head typ.p.tail] state.p.tail]
83125049::
8313−++ cell-binder-pattern
8314− |= e=expr
8315− ^- ?
8316− ?. ?=(%branch -.e) |
8317− ?~ arms.e |
8318− ?^ t.arms.e |
8319− ?. ?=(%cell -.pat.i.arms.e) |
8320− !(single-structured-pattern e)
5050+:: A single two-binder cell pattern covers every value of a cell type.
5051+:: No other pattern matrix is implemented here.
83215052::
83225053++ infer-cell-branch
8323− |= [e=expr env=ienv state=istate expected=(unit [typ=itype context=span])]
5054+ |= [e=expr env=ienv state=istate]
83245055 ^- iresult
83255056 ?> ?=(%branch -.e)
8326− ?~ arms.e [%| ["branch is not supported by partial inference" ~]]
5057+ ?~ arms.e [%| "branch is not supported by partial inference"]
83275058 =/ arm=arm i.arms.e
8328− ?. ?=(%cell -.pat.arm) [%| ["branch pattern is not supported by partial inference" ~]]
5059+ ?. ?=(%cell -.pat.arm) [%| "branch pattern is not supported by partial inference"]
83295060 =/ pats=(list pattern) items.pat.arm
8330− ?~ pats [%| ["branch pattern is not supported by partial inference" ~]]
8331− ?~ t.pats [%| ["branch pattern is not supported by partial inference" ~]]
8332− =/ names=(each (list term) @t) (cell-pattern-names pats env globals.state ~)
8333− ?: ?=(%| -.names) [%| [(trip p.names) ~]]
5061+ ?~ pats [%| "branch pattern is not supported by partial inference"]
5062+ ?~ t.pats [%| "branch pattern is not supported by partial inference"]
5063+ ?^ t.t.pats [%| "branch pattern is not supported by partial inference"]
5064+ ?. ?=(%bind -.i.pats) [%| "branch pattern is not supported by partial inference"]
5065+ ?. ?=(%bind -.i.t.pats) [%| "branch pattern is not supported by partial inference"]
5066+ =/ one=term name.i.pats
5067+ =/ two=term name.i.t.pats
5068+ ?: |(=(one two) ?=(^ (ienv-lookup one env)) ?=(^ (ienv-lookup two env)) (lien globals.state |=(x=term |(=(x one) =(x two)))))
5069+ [%| "pattern shadows a name"]
83345070 =/ subject=iresult (infer-fragment subject.e env state)
83355071 ?: ?=(%| -.subject) subject
83365072 =/ st=istate state.p.subject
8337− =/ subject-type=itype (itype-normalize typ.p.subject sub.st)
8338− ?: (itype-has-recursive subject-type)
8339− [%| ["recursive pattern is not supported by partial inference" ~]]
8340− ?: (itype-has-face typ.p.subject sub.st)
8341− [%| ["record patterns are not supported by partial inference" ~]]
8342− ?: (cell-pattern-spine-unknown subject-type p.names sub.st)
8343− [%| ["cell pattern subject is not supported by partial inference" ~]]
8344− =/ binders=[typ=itype env=ienv next=@ud] (cell-pattern-types p.names env next.st)
8345− =/ sub=(unit isub) (itype-unify typ.p.subject typ.binders sub.st)
8346− ?~ sub [%| ["cell pattern does not match the subject type" ~]]
8347− =. st st(next next.binders, sub u.sub)
8348− ?~ expected (infer-fragment val.arm env.binders st)
8349− =/ body=iresult (infer-call-context-arg val.arm typ.u.expected env.binders st context.u.expected)
8350− ?: ?=(%| -.body) body
8351− =/ fit=ifit (itype-fit typ.p.body typ.u.expected sub.state.p.body next.state.p.body)
8352− ?: ?=(%unknown -.fit) [%| ["cell branch result constraint is not supported by partial inference" ~]]
8353− ?: ?=(%bad -.fit) [%| ["cell branch arm does not fit its expected type" ~[[context.u.expected "expected type"] [(span-of val.arm) "branch arm"]]]]
8354− ?: (itype-has-tag (itype-normalize typ.u.expected sub.fit))
8355− [%| ["cell branch result needs context in partial inference" ~]]
8356− [%& typ.u.expected state.p.body(sub sub.fit, next next.fit)]
5073+ =/ head=itype [%var next.st]
5074+ =/ tail=itype [%var +(next.st)]
5075+ =/ sub=(unit isub) (itype-unify typ.p.subject [%cell head tail] sub.st)
5076+ ?~ sub [%| "cell pattern does not match the subject type"]
5077+ (infer-fragment val.arm [[one [head ~]] [two [tail ~]] env] st(next (add 2 next.st), sub u.sub))
83575078::
83585079++ show-itype
83595080 |= [t=itype sub=isub]
@@ -8363,230 +5084,45 @@
83635084 %var
83645085 ?: (lth id.t 26) [(add 65 id.t) ~]
83655086 "T{<id.t>}"
8366− %avar
8367− ?: (lth id.t 26) [(add 65 id.t) ~]
8368− "T{<id.t>}"
8369− %nvar
8370− ?: (lth id.t 26) [(add 65 id.t) ~]
8371− "T{<id.t>}"
5087+ %avar "@"
83725088 %atom "@{(trip aura.t)}"
8373− %any-atom "@"
83745089 %flag "?"
8375− %noun "*"
8376− %tag (trip txt.literal.t)
8377− %const (trip txt.literal.t)
8378− %union
8379− ?~ label.t (show-itype-cases cases.t sub)
8380− ?~ args.t (trip u.label.t)
8381− "({(trip u.label.t)} {(show-itype-cases args.t sub)})"
8382− %recursive ?~(label.t "recursive mold" (trip u.label.t))
8383− %jrec ?~(label.t "recursive mold" (trip u.label.t))
8384− %collection "({(trip name.t)} {(show-itype-cases args.t sub)})"
8385− %face "[{(trip name.t)}={(show-itype-context body.t sub)}]"
8386− %fn "$-({(show-itype-context sample.t sub)} {(show-itype-context product.t sub)})"
8387− %cell "[{(show-itype-item hed.t sub)} {(show-itype-item tal.t sub)}]"
5090+ %fn "$-({$(t sample.t)} {$(t product.t)})"
5091+ %cell "[{$(t hed.t)} {$(t tal.t)}]"
83885092 ==
83895093::
8390−++ show-itype-item
8391− |= [t=itype sub=isub]
8392− ^- tape
8393− =. t (itype-walk t sub)
8394− ?: ?=(%face -.t) "{(trip name.t)}={(show-itype-context body.t sub)}"
8395− (show-itype-context t sub)
8396−::
8397−++ show-itype-context
8398− |= [t=itype sub=isub]
8399− ^- tape
8400− =. t (itype-walk t sub)
8401− ?: &(?=(%union -.t) ?=(~ label.t)) "({(show-itype t sub)})"
8402− (show-itype t sub)
8403−::
8404−++ show-itype-cases
8405− |= [cases=(list itype) sub=isub]
8406− ^- tape
8407− ?~ cases ""
8408− ?~ t.cases (show-itype-context i.cases sub)
8409− "{(show-itype-context i.cases sub)} {$(cases t.cases)}"
8410−::
8411−:: Include the type at a conflicting site where it can be printed.
8412−:: A lone unresolved variable or decimal variable keeps the neutral label.
5094+:: Unfixed aura variables are withheld from the output until inference
5095+:: can generalize them and the printer represents their constraints.
84135096::
8414−++ itype-has-nvar
8415− |= typ=itype
5097+++ itype-has-avar
5098+ |= t=itype
84165099 ^- ?
8417− ?- -.typ
8418− %nvar &
8419− %var |
8420− %avar |
8421− %atom |
8422− %any-atom |
8423− %flag |
8424− %noun |
8425− %tag |
8426− %const |
8427− %union |((lien cases.typ |=(c=itype (itype-has-nvar c))) (lien args.typ |=(c=itype (itype-has-nvar c))))
8428− %recursive |
8429− %jrec |
8430− %collection (lien args.typ |=(c=itype (itype-has-nvar c)))
8431− %face $(typ body.typ)
8432− %fn |($(typ sample.typ) $(typ product.typ))
8433− %cell |($(typ hed.typ) $(typ tal.typ))
5100+ ?- -.t
5101+ %avar &
5102+ %var |
5103+ %atom |
5104+ %flag |
5105+ %fn |($(t sample.t) $(t product.t))
5106+ %cell |($(t hed.t) $(t tal.t))
84345107 ==
84355108::
8436−++ site-type-note
8437− |= [label=tape typ=itype sub=isub]
8438− ^- tape
8439− =/ normalized=itype (itype-normalize typ sub)
8440− ?: |(?=(%var -.normalized) ?=(%avar -.normalized) (itype-has-nvar normalized) (itype-has-tag normalized) (itype-has-union normalized)) label
8441− ?: (itype-has-hidden-recursive normalized) label
8442− =/ vars=(list @ud) (unique-type-vars (itype-vars normalized))
8443− ?: (gth (lent vars) 26) label
8444− =/ printable=itype (canonical-itype normalized vars)
8445− "{label} has type {(show-itype printable ~)}{(show-atom-constraint printable)}"
8446−::
84475109:: A capital in a written mold is generalized with its enclosing ++.
8448−:: Atom constraints may remain generic; until full rigidity checking
8449−:: is implemented, do not report a type if one became more specific.
8450−:: Distinct written capitals cannot be forced equal; use the same
8451−:: capital where a type must be shared (Decisions 2026-10-30).
8452−::
8453−++ cap-id-in
8454− |= [n=@ud caps=icaps sub=isub]
8455− ^- ?
8456− ?~ caps |
8457− =/ resolved=itype (itype-walk [%var id.i.caps] sub)
8458− =/ ident=(unit @ud)
8459− ?+ -.resolved ~
8460− %var `id.resolved
8461− %avar `id.resolved
8462− ==
8463− ?~ ident $(caps t.caps)
8464− ?: =(n u.ident) &
8465− $(caps t.caps)
8466−::
8467−++ cap-with-id
8468− |= [n=@ud caps=icaps sub=isub]
8469− ^- (unit icap)
8470− ?~ caps ~
8471− =/ resolved=itype (itype-walk [%var id.i.caps] sub)
8472− =/ ident=(unit @ud)
8473− ?+ -.resolved ~
8474− %var `id.resolved
8475− %avar `id.resolved
8476− ==
8477− ?~ ident $(caps t.caps)
8478− ?: =(n u.ident) `i.caps
8479− $(caps t.caps)
8480−::
8481−++ merged-capitals
8482− |= [caps=icaps sub=isub]
8483− ^- (unit [first=icap second=icap])
8484− ?~ caps ~
8485− =/ resolved=itype (itype-walk [%var id.i.caps] sub)
8486− =/ ident=(unit @ud)
8487− ?+ -.resolved ~
8488− %var `id.resolved
8489− %avar `id.resolved
8490− ==
8491− ?~ ident $(caps t.caps)
8492− =/ found=(unit icap) (cap-with-id u.ident t.caps sub)
8493− ?^ found `[u.found i.caps]
8494− $(caps t.caps)
5110+:: Until its rigidity and aura constraints are represented, do not
5111+:: report a type when unification made one more specific.
84955112::
84965113++ constrained-capitals
84975114 |= [caps=icaps sub=isub]
84985115 ^- ?
84995116 ?~ caps |
85005117 =/ resolved=itype (itype-walk [%var id.i.caps] sub)
8501− =/ ident=(unit @ud)
8502− ?+ -.resolved ~
8503− %var `id.resolved
8504− %avar `id.resolved
8505− ==
8506− ?~ ident &
8507− ?: (cap-id-in u.ident t.caps sub) &
5118+ ?. ?=(%var -.resolved) &
85085119 $(caps t.caps)
85095120::
8510−:: An atom variable may be generalized when an explicit capital, sample
8511−:: binder or instantiated constraint resolves to it. Decimal variables need
8512−:: defaulting and must not be generalized as arbitrary atom types.
8513−::
8514−++ atom-var-from-cap
8515− |= [n=@ud caps=icaps sub=isub]
8516− ^- ?
8517− ?~ caps |
8518− =/ resolved=itype (itype-walk [%var id.i.caps] sub)
8519− ?: ?=(%avar -.resolved)
8520− ?: =(n id.resolved) &
8521− $(caps t.caps)
8522− $(caps t.caps)
8523−::
8524−++ has-atom-var
8525− |= [n=@ud t=itype]
8526− ^- ?
8527− ?- -.t
8528− %var |
8529− %avar =(n id.t)
8530− %nvar |
8531− %atom |
8532− %any-atom |
8533− %flag |
8534− %noun |
8535− %tag |
8536− %const |
8537− %union |((lien cases.t |=(c=itype (has-atom-var n c))) (lien args.t |=(c=itype (has-atom-var n c))))
8538− %recursive |
8539− %jrec |
8540− %collection (lien args.t |=(c=itype (has-atom-var n c)))
8541− %face $(t body.t)
8542− %fn |($(t sample.t) $(t product.t))
8543− %cell |($(t hed.t) $(t tal.t))
8544− ==
8545−::
8546−++ atom-var-from-binder
8547− |= [n=@ud binders=(list @ud) sub=isub]
8548− ^- ?
8549− ?~ binders |
8550− =/ resolved=itype (itype-normalize [%var i.binders] sub)
8551− :: An instantiated atom variable is not itself a substitution, so
8552− :: its origin still walks as an unbound variable of the same ID.
8553− ?: ?=(%var -.resolved)
8554− ?: =(n id.resolved) &
8555− $(binders t.binders)
8556− ?: (has-atom-var n resolved) &
8557− $(binders t.binders)
8558−::
8559−++ unsupported-atom-vars
8560− |= [t=itype caps=icaps binders=(list @ud) sub=isub]
8561− ^- ?
8562− =/ vars=(list @ud) (unique-type-vars (itype-vars t))
8563− |-
8564− ?~ vars |
8565− ?: (itype-var-is-atom i.vars t)
8566− ?. (has-atom-var i.vars t) &
8567− ?. |((atom-var-from-cap i.vars caps sub) (atom-var-from-binder i.vars binders sub)) &
8568− $(vars t.vars)
8569− $(vars t.vars)
8570−::
8571−++ show-atom-constraint
8572− |= t=itype
8573− ^- tape
8574− =/ vars=(list @ud) (unique-type-vars (itype-vars t))
8575− =/ printed=? |
8576− =/ out=tape ""
8577− |-
8578− ?~ vars out
8579− ?: (itype-var-is-atom i.vars t)
8580− =/ sep=tape ?:(printed ", " " where ")
8581− =/ clause=tape "{sep}{(show-itype [%avar i.vars] ~)} is an atom"
8582− $(vars t.vars, printed &, out (weld out clause))
8583− $(vars t.vars)
8584−::
85855121:: Build the supported part of the value environment in dependency order.
85865122:: Each pass adds successful definitions. Forward references become
8587−:: available on a later pass; unsupported syntax does not enter the
8588−:: environment. Generalized definitions are closed, so a use instantiates
8589−:: its variables afresh.
5123+:: available on a later pass; recursive groups and unsupported syntax do
5124+:: not enter the environment. Generalized definitions are closed, so a
5125+:: use instantiates its variables afresh.
85905126::
85915127++ global-value-names
85925128 |= ds=(list def)
@@ -8604,617 +5140,31 @@
86045140 ?~ t.hits &
86055141 |
86065142::
8607−:: A top-level gate may refer to itself through one monomorphic placeholder.
8608−:: Its declared sample is inferred first and preserves its field faces.
8609−:: Unify the completed body with that placeholder before generalization;
8610−:: reporting repeats the same check instead of instantiating the gate's
8611−:: generalized interface inside its own body. Mutual groups stay unsupported.
8612−::
8613−++ direct-self-call
8614− |= [e=expr name=term]
8615− ^- ?
8616− ?: ?=(%group -.e) $(e inner.e)
8617− ?: &(?=(%body -.e) ?=(~ defs.e)) $(e final.e)
8618− ?. ?=(%call -.e) |
8619− ?. ?=(%wing -.head.e) |
8620− =(names.head.e ~[name])
8621−::
8622−++ branch-base-arm
8623− |= [e=expr name=term]
8624− ^- (unit expr)
8625− ?: ?=(%group -.e) $(e inner.e)
8626− ?: &(?=(%body -.e) ?=(~ defs.e)) $(e final.e)
8627− ?. ?=(%branch -.e) ~
8628− ?~ arms.e ~
8629− ?~ t.arms.e ~
8630− ?^ t.t.arms.e ~
8631− =/ x=arm i.arms.e
8632− =/ y=arm i.t.arms.e
8633− ?. &(?=(%lit -.pat.x) ?=(%lit -.pat.y)) ~
8634− ?. &(=(%loobean form.lit.pat.x) =(%loobean form.lit.pat.y)) ~
8635− ?: =(val.lit.pat.x val.lit.pat.y) ~
8636− =/ first=? (direct-self-call val.x name)
8637− =/ second=? (direct-self-call val.y name)
8638− ?: =(first second) ~
8639− `?:(first val.y val.x)
8640−::
8641−:: Infer the base arm independently, with the self binding removed. Only
8642−:: a closed type whose constraints resolved can seed the recursive result.
8643−:: The regular body inference then checks both arms with shared state.
8644−::
8645−++ recursive-branch-seed
8646− |= [d=def env=ienv state=istate]
8647− ^- (unit itype)
8648− ?. ?=(%value -.d) ~
8649− ?. |(?=(%gate -.val.d) ?=(%gate-wide -.val.d)) ~
8650− =/ gate=expr val.d
8651− =/ body=expr
8652− ?- -.gate
8653− %gate body.gate
8654− %gate-wide body.gate
8655− * !!
8656− ==
8657− =/ base=(unit expr) (branch-base-arm body name.d)
8658− ?~ base ~
8659− =/ outer=ienv (skim env |=(entry=[name=term scheme=ischeme] !=(name.entry name.d)))
8660− =/ sam=isample-result
8661− ?- -.gate
8662− %gate (infer-sample sample.gate outer state)
8663− %gate-wide (infer-sample sample.gate outer state)
8664− * !!
8665− ==
8666− ?: ?=(%| -.sam) ~
8667− =/ inferred=iresult (infer-fragment u.base env.p.sam state.p.sam)
8668− ?: ?=(%| -.inferred) ~
8669− ?: (pending-tags tags.state.p.inferred sub.state.p.inferred) ~
8670− ?: (constrained-capitals caps.state.p.inferred sub.state.p.inferred) ~
8671− =/ typ=itype (itype-normalize typ.p.inferred sub.state.p.inferred)
8672− ?: ?=(^ (itype-vars typ)) ~
8673− ?: (itype-has-tag typ) ~
8674− `typ
8675−::
8676−++ infer-recursive-gate
8677− |= [d=def env=ienv state=istate]
8678− ^- iresult
8679− ?. ?=(%value -.d) [%| ["recursive definition is not a gate" ~]]
8680− ?. |(?=(%gate -.val.d) ?=(%gate-wide -.val.d))
8681− [%| ["recursive definition is not a gate" ~]]
8682− =/ result=(unit itype) (recursive-branch-seed d env state)
8683− =/ gate=expr val.d
8684− =/ sam=isample-result
8685− ?- -.gate
8686− %gate (infer-sample sample.gate env state)
8687− %gate-wide (infer-sample sample.gate env state)
8688− * !!
8689− ==
8690− ?: ?=(%| -.sam)
8691− =/ diag=(unit idiag)
8692− ?- -.gate
8693− %gate (sample-import-invalid sample.gate env state)
8694− %gate-wide (sample-import-invalid sample.gate env state)
8695− * ~
8696− ==
8697− ?: &(=(p.sam "sample mold is not supported by partial inference") ?=(^ diag)) [%| u.diag]
8698− [%| [p.sam ~]]
8699− =/ id=@ud next.state.p.sam
8700− =/ product=itype ?~(result [%var id] u.result)
8701− =/ st=istate state.p.sam(next +(id))
8702− =/ seed=itype [%fn typ.p.sam product]
8703− =/ seeded=ienv [[name.d [seed ~]] env.p.sam]
8704− =/ body=expr
8705− ?- -.gate
8706− %gate body.gate
8707− %gate-wide body.gate
8708− * !!
8709− ==
8710− =/ out=iresult (infer-fragment body seeded st)
8711− ?: ?=(%| -.out) out
8712− =/ uni=(unit isub) (itype-unify product typ.p.out sub.state.p.out)
8713− ?~ uni [%| ["recursive gate constraint is not supported by partial inference" ~]]
8714− [%& [%fn typ.p.sam typ.p.out] state.p.out(sub u.uni)]
8715−::
8716−++ dependency-root
8717− |= names=(list term)
8718− ^- (list term)
8719− ?~ names ~
8720− ~[(rear names)]
8721−::
8722−++ dependency-exprs
8723− |= xs=(list expr)
8724− ^- (list term)
8725− ?~ xs ~
8726− =/ first=(list term) (dependency-expr i.xs)
8727− (weld first $(xs t.xs))
8728−::
8729−++ dependency-pieces
8730− |= xs=(list piece)
8731− ^- (list term)
8732− ?~ xs ~
8733− =/ first=(list term)
8734− ?- -.i.xs
8735− %expr (dependency-expr p.i.xs)
8736− %text ~
8737− ==
8738− (weld first $(xs t.xs))
8739−::
8740−++ dependency-qsegs
8741− |= xs=(list qseg)
8742− ^- (list term)
8743− ?~ xs ~
8744− =/ first=(list term)
8745− ?- -.i.xs
8746− %expr (dependency-expr p.i.xs)
8747− %knot ~
8748− ==
8749− (weld first $(xs t.xs))
8750−::
8751−++ dependency-items
8752− |= xs=(list item)
8753− ^- (list term)
8754− ?~ xs ~
8755− =/ first=(list term) (dependency-expr val.i.xs)
8756− (weld first $(xs t.xs))
8757−::
8758−++ dependency-edits
8759− |= xs=(list edit)
8760− ^- (list term)
8761− ?~ xs ~
8762− =/ first=(list term) (dependency-expr val.i.xs)
8763− (weld first $(xs t.xs))
8764−::
8765−++ dependency-arms
8766− |= xs=(list arm)
8767− ^- (list term)
8768− ?~ xs ~
8769− =/ first=(list term) (dependency-expr val.i.xs)
8770− (weld first $(xs t.xs))
8771−::
8772−++ dependency-defs
8773− |= xs=(list def)
8774− ^- (list term)
8775− ?~ xs ~
8776− =/ first=(list term)
8777− ?: ?=(%value -.i.xs) (dependency-expr val.i.xs)
8778− ~
8779− (weld first $(xs t.xs))
8780−::
8781−++ dependency-expr
8782− |= e=expr
8783− ^- (list term)
8784− ?- -.e
8785− %str (dependency-pieces pieces.e)
8786− %qath (dependency-qsegs segs.e)
8787− %wing (dependency-root names.e)
8788− %change
8789− =/ first=(list term) (dependency-root target.e)
8790− =/ last=(list term) (dependency-edits edits.e)
8791− (weld first last)
8792− %pair (dependency-expr val.e)
8793− %unit (dependency-expr val.e)
8794− %group (dependency-expr inner.e)
8795− %list (dependency-exprs items.e)
8796− %tuple (dependency-items items.e)
8797− %gate (dependency-expr body.e)
8798− %gate-wide (dependency-expr body.e)
8799− %call
8800− =/ first=(list term) (dependency-expr head.e)
8801− =/ last=(list term) (dependency-exprs args.e)
8802− (weld first last)
8803− %cast (dependency-expr val.e)
8804− %trace
8805− =/ first=(list term) (dependency-expr val.e)
8806− =/ last=(list term) (dependency-expr then.e)
8807− (weld first last)
8808− %branch
8809− =/ first=(list term) (dependency-expr subject.e)
8810− =/ last=(list term) (dependency-arms arms.e)
8811− (weld first last)
8812− %body
8813− =/ first=(list term) (dependency-defs defs.e)
8814− =/ last=(list term) (dependency-expr final.e)
8815− (weld first last)
8816− * ~
8817− ==
8818−::
8819−:: Infer a cyclic component with one monomorphic seed per gate. All members
8820−:: must succeed before any scheme is available; pending constraints and
8821−:: unresolved branch joins remain partial.
8822−+$ igate-entry [name=term typ=itype body=expr env=ienv caps=icaps]
8823−+$ igate-seeds (each [entries=(list igate-entry) state=istate] idiag)
8824−++ seed-gate-group
8825− |= [ds=(list def) env=ienv state=istate]
8826− ^- igate-seeds
8827− ?~ ds [%& [~ state]]
8828− =/ d=def i.ds
8829− ?. ?=(%value -.d) [%| ["recursive group contains a non-gate" ~]]
8830− =/ gate=expr val.d
8831− ?. |(?=(%gate -.gate) ?=(%gate-wide -.gate))
8832− [%| ["recursive group contains a non-gate" ~]]
8833− =/ initial=istate (reserve-def-caps gate state)
8834− =/ sam=isample-result
8835− ?- -.gate
8836− %gate (infer-sample sample.gate env initial)
8837− %gate-wide (infer-sample sample.gate env initial)
8838− * !!
8839− ==
8840− ?: ?=(%| -.sam) [%| [p.sam ~]]
8841− =/ body=expr
8842− ?- -.gate
8843− %gate body.gate
8844− %gate-wide body.gate
8845− * !!
8846− ==
8847− =/ seed=itype [%fn typ.p.sam [%var next.state.p.sam]]
8848− =/ entry=igate-entry [name.d seed body env.p.sam caps.state.p.sam]
8849− =/ after=istate state.p.sam(next +(next.state.p.sam), caps caps.state)
8850− =/ rest=igate-seeds $(ds t.ds, state after)
8851− ?: ?=(%| -.rest) rest
8852− [%& [[entry entries.p.rest] state.p.rest]]
8853−::
8854−++ group-seed-env
8855− |= [entries=(list igate-entry) env=ienv]
8856− ^- ienv
8857− ?~ entries env
8858− [[name.i.entries [typ.i.entries ~]] $(entries t.entries)]
8859−::
8860−++ infer-gate-group-bodies
8861− |= [entries=(list igate-entry) seeds=ienv state=istate]
8862− ^- igate-seeds
8863− ?~ entries [%& [~ state]]
8864− =/ entry=igate-entry i.entries
8865− ?> ?=(%fn -.typ.entry)
8866− =/ scope=ienv (weld seeds env.entry)
8867− =/ out=iresult (infer-fragment body.entry scope state(caps caps.entry))
8868− ?: ?=(%| -.out) out
8869− =/ uni=(unit isub) (itype-unify product.typ.entry typ.p.out sub.state.p.out)
8870− ?~ uni [%| ["recursive group constraint is not supported by partial inference" ~]]
8871− =. caps.entry caps.state.p.out
8872− =/ after=istate state.p.out(sub u.uni, caps caps.state)
8873− =/ rest=igate-seeds $(entries t.entries, state after)
8874− ?: ?=(%| -.rest) rest
8875− [%& [[entry entries.p.rest] state.p.rest]]
8876−::
8877−++ group-schemes
8878− |= [entries=(list igate-entry) env=ienv outer=istate state=istate]
8879− ^- (each ienv idiag)
8880− ?~ entries [%& ~]
8881− =/ entry=igate-entry i.entries
8882− =/ merged=(unit [first=icap second=icap]) (merged-capitals caps.entry sub.state)
8883− ?^ merged
8884− [%| ["distinct type variables must not be forced equal" ~[[at.first.u.merged "first type variable"] [at.second.u.merged "second type variable"]]]]
8885− ?: (constrained-capitals caps.entry sub.state)
8886− [%| ["explicit capital constraints are not supported by partial inference" ~]]
8887− =/ typ=itype (itype-normalize typ.entry sub.state)
8888− ?: |((itype-has-tag typ) (itype-has-hidden-generic typ) (itype-has-hidden-recursive typ) (unsupported-atom-vars typ caps.entry binders.state sub.state))
8889− [%| ["recursive group needs unsupported inference" ~]]
8890− =/ free=(list @ud) (weld (free-env-vars env sub.state) (free-cap-vars caps.outer sub.state))
8891− =/ vars=(list @ud) (unique-type-vars (itype-vars typ))
8892− =. vars (skim vars |=(n=@ud !(lien free |=(f=@ud =(f n)))))
8893− ?: (gth (lent vars) 26) [%| ["recursive group needs too many type variables" ~]]
8894− =/ rest=(each ienv idiag) $(entries t.entries)
8895− ?: ?=(%| -.rest) rest
8896− [%& [[name.entry [typ vars]] p.rest]]
8897−::
8898−++ infer-gate-group
8899− |= [ds=(list def) env=ienv state=istate]
8900− ^- ilocal-result
8901− =/ names=(list term) (global-value-names ds)
8902− ?. (levy names |=(n=term (unique-value-name n names)))
8903− [%| ["recursive group contains duplicate names" ~]]
8904− ?: (lien names |=(n=term ?=(^ (ienv-lookup n env))))
8905− [%| ["recursive group shadows a name" ~]]
8906− =/ scoped=istate state(globals (weld names globals.state))
8907− =/ seeded=igate-seeds (seed-gate-group ds env scoped)
8908− ?: ?=(%| -.seeded) seeded
8909− =/ seeds=ienv (group-seed-env entries.p.seeded ~)
8910− =/ body=igate-seeds (infer-gate-group-bodies entries.p.seeded seeds state.p.seeded)
8911− ?: ?=(%| -.body) body
8912− :: Per-member ownership through mutual recursion is not implemented.
8913− ?: !=(projections.state.p.body projections.state)
8914− [%| ["record projection in recursive groups needs unsupported inference" ~]]
8915− ?: !=(holes.state.p.body holes.state)
8916− [%| ["holes in recursive groups need unsupported inference" ~]]
8917− ?: (pending-tags tags.state.p.body sub.state.p.body)
8918− [%| ["recursive group has unresolved literal constraints" ~]]
8919− =/ schemes=(each ienv idiag) (group-schemes entries.p.body env state state.p.body)
8920− ?: ?=(%| -.schemes) schemes
8921− [%& [(weld p.schemes env) state.p.body(globals globals.state)]]
8922−::
8923−++ width-finalize
8924− |= [ps=(list iwprojection) sub=isub visible=(list @ud)]
8925− ^- (unit (list iwprojection))
8926− ?~ ps `~
8927− ?: (lien t.ps |=(p=iwprojection =(at.p at.i.ps))) ~
8928− =/ src=itype (default-decimals (itype-normalize source.i.ps sub))
8929− =/ dst=itype (default-decimals (itype-normalize target.i.ps sub))
8930− ?: |((itype-has-nvar src) (itype-has-nvar dst) (itype-has-tag src) (itype-has-tag dst)) ~
8931− =/ vars=(list @ud) (weld (itype-vars src) (itype-vars dst))
8932− ?. (levy vars |=(n=@ud (lien visible |=(v=@ud =(n v))))) ~
8933− =/ rest=(unit (list iwprojection)) $(ps t.ps)
8934− ?~ rest ~
8935− =/ entry=iwprojection i.ps
8936− =. entry entry(source src, target dst)
8937− `[entry u.rest]
8938−::
89395143++ add-supported-defs
8940− |= [ds=(list def) env=ienv molds=imolds globals=(list term) externals=iexternals surs=(list term) mark-externals=imark-externals marks=(list term) jimports=ijimports reserved-molds=(list term) at=path prelude=(unit ifile) artifacts=(list iwidth-definition)]
8941− ^- [env=ienv artifacts=(list iwidth-definition)]
8942− ?~ ds [env artifacts]
5144+ |= [ds=(list def) env=ienv molds=imolds globals=(list term) externals=iexternals surs=(list term)]
5145+ ^- ienv
5146+ ?~ ds env
89435147 =/ d=def i.ds
89445148 ?: ?=(%mold -.d) $(ds t.ds)
89455149 ?. (unique-value-name name.d globals) $(ds t.ds)
89465150 ?^ (ienv-lookup name.d env) $(ds t.ds)
8947− =/ top=(list term) (turn molds |=(m=[name=term body=shape] name.m))
8948− =/ initial=istate [0 ~ ~ ~ molds globals externals surs mark-externals marks jimports reserved-molds ~ ~ ~ | at top prelude ~ 256 ~]
8949− =. initial (reserve-def-caps val.d initial)
8950− =/ result=iresult (infer-fragment val.d env initial)
8951− =? result ?=(%| -.result) (infer-recursive-gate d env initial)
5151+ =/ result=iresult (infer-fragment val.d env [0 ~ ~ molds globals externals surs ~ |])
89525152 ?: ?=(%| -.result) $(ds t.ds)
8953− =. state.p.result (default-hole-numbers holes.state.p.result holes.initial state.p.result env !(itype-has-gate (itype-normalize typ.p.result sub.state.p.result)))
8954− ?^ (unresolved-hole holes.state.p.result holes.initial state.p.result) $(ds t.ds)
89555153 ?: (constrained-capitals caps.state.p.result sub.state.p.result) $(ds t.ds)
8956− =/ typ=itype (default-decimals (itype-normalize typ.p.result sub.state.p.result))
8957− ?: |((pending-tags tags.state.p.result sub.state.p.result) (itype-has-tag typ)) $(ds t.ds)
8958− ?: (unsupported-atom-vars typ caps.state.p.result binders.state.p.result sub.state.p.result) $(ds t.ds)
5154+ =/ typ=itype (itype-normalize typ.p.result sub.state.p.result)
5155+ ?: (itype-has-avar typ) $(ds t.ds)
89595156 =/ vars=(list @ud) (unique-type-vars (itype-vars typ))
89605157 ?: (gth (lent vars) 26) $(ds t.ds)
8961− =/ finalized=(unit (list iwprojection))
8962− (width-finalize projections.state.p.result sub.state.p.result vars)
8963− ?~ finalized $(ds t.ds)
8964− =? artifacts ?=(^ u.finalized)
8965− [[name.d val.d typ sub.state.p.result (flop u.finalized)] artifacts]
89665158 $(ds t.ds, env [[name.d [typ vars]] env])
89675159::
8968−+$ iresolved [env=ienv grouped=(list term) artifacts=(list iwidth-definition)]
8969−+$ iadj (map term (list term))
8970−+$ ivisited (map term ?)
8971−+$ iwork (list [name=term done=?])
8972−+$ iwresult [seen=ivisited order=(list term)]
8973−+$ icresult [seen=ivisited component=(list term)]
8974−+$ icomponents (list (list term))
8975−++ graph-nameset
8976− |= [names=(list term) seen=ivisited]
8977− ^- ivisited
8978− ?~ names seen
8979− $(names t.names, seen (~(put by seen) i.names &))
8980−::
8981−++ graph-edges
8982− |= [name=term graph=iadj]
8983− ^- (list term)
8984− =/ found=(unit (list term)) (~(get by graph) name)
8985− ?~ found ~
8986− u.found
8987−::
8988−++ graph-make-forward
8989− |= [ds=(list def) names=ivisited graph=iadj]
8990− ^- iadj
8991− ?~ ds graph
8992− ?. ?=(%value -.i.ds) $(ds t.ds)
8993− =/ deps=(list term) (dependency-expr val.i.ds)
8994− =. deps (skim deps |=(n=term ?=(^ (~(get by names) n))))
8995− $(ds t.ds, graph (~(put by graph) name.i.ds deps))
8996−::
8997−++ graph-add-reverse
8998− |= [name=term edges=(list term) reverse=iadj]
8999− ^- iadj
9000− ?~ edges reverse
9001− =/ prior=(list term) (graph-edges i.edges reverse)
9002− $(edges t.edges, reverse (~(put by reverse) i.edges [name prior]))
9003−::
9004−++ graph-reverse
9005− |= [names=(list term) graph=iadj reverse=iadj]
9006− ^- iadj
9007− ?~ names reverse
9008− =. reverse (graph-add-reverse i.names (graph-edges i.names graph) reverse)
9009− $(names t.names)
9010−::
9011−++ graph-order
9012− |= [todo=iwork seen=ivisited order=(list term) graph=iadj]
9013− ^- iwresult
9014− ?~ todo [seen order]
9015− =/ event=[name=term done=?] i.todo
9016− ?: done.event $(todo t.todo, order [name.event order])
9017− ?: ?=(^ (~(get by seen) name.event)) $(todo t.todo)
9018− =. seen (~(put by seen) name.event &)
9019− =/ children=iwork (turn (graph-edges name.event graph) |=(n=term [n |]))
9020− $(todo (weld children [[name.event &] t.todo]))
9021−::
9022−++ graph-collect
9023− |= [todo=(list term) seen=ivisited component=(list term) graph=iadj]
9024− ^- icresult
9025− ?~ todo [seen component]
9026− ?: ?=(^ (~(get by seen) i.todo)) $(todo t.todo)
9027− =. seen (~(put by seen) i.todo &)
9028− $(todo (weld (graph-edges i.todo graph) t.todo), component [i.todo component])
9029−::
9030−++ graph-collect-all
9031− |= [order=(list term) seen=ivisited graph=iadj comps=icomponents]
9032− ^- icomponents
9033− ?~ order comps
9034− ?: ?=(^ (~(get by seen) i.order)) $(order t.order)
9035− =/ found=icresult (graph-collect ~[i.order] seen ~ graph)
9036− $(order t.order, seen seen.found, comps [component.found comps])
9037−::
9038−:: Two depth-first passes find components before group inference. Maps
9039−:: preserve the graph identity; duplicate global names fail closed.
9040−++ graph-components
9041− |= [ds=(list def) names=(list term)]
9042− ^- icomponents
9043− =/ nameset=ivisited ~
9044− =/ pending=(list term) names
9045− |-
9046− ?^ pending
9047− ?: ?=(^ (~(get by nameset) i.pending)) ~
9048− $(pending t.pending, nameset (~(put by nameset) i.pending &))
9049− =/ graph=iadj (graph-make-forward ds nameset ~)
9050− =/ reverse=iadj (graph-reverse names graph ~)
9051− =/ order=iwresult (graph-order (turn names |=(n=term [n |])) ~ ~ graph)
9052− (graph-collect-all order.order ~ reverse ~)
9053−::
9054−++ graph-cycle
9055− |= [component=(list term) graph=iadj]
9056− ^- ?
9057− ?~ component |
9058− ?^ t.component &
9059− (lien (graph-edges i.component graph) |=(x=term =(x i.component)))
9060−::
9061−++ add-groups
9062− |= [ds=(list def) components=icomponents graph=iadj env=ienv grouped=(list term) artifacts=(list iwidth-definition) state=istate]
9063− ^- iresolved
9064− ?~ components [env grouped artifacts]
9065− =/ component=(list term) i.components
9066− ?. (graph-cycle component graph) $(components t.components)
9067− ?: (lien component |=(n=term ?=(^ (ienv-lookup n env)))) $(components t.components)
9068− =/ members=(list def)
9069− %+ skim ds
9070− |= d=def
9071− &(?=(%value -.d) (lien component |=(n=term =(n name.d))))
9072− ?. =((lent members) (lent component)) $(components t.components)
9073− ?. (levy component |=(n=term (unique-value-name n globals.state))) $(components t.components)
9074− =/ result=ilocal-result (infer-gate-group members env state)
9075− ?: ?=(%| -.result) $(components t.components)
9076− $(components t.components, env env.p.result, grouped (weld component grouped))
9077−::
9078−++ resolve-groups
9079− |= [ds=(list def) molds=imolds globals=(list term) externals=iexternals surs=(list term) mark-externals=imark-externals marks=(list term) jimports=ijimports reserved-molds=(list term) at=path prelude=(unit ifile)]
9080− ^- iresolved
9081− =/ env=ienv ~
9082− =/ grouped=(list term) ~
9083− =/ artifacts=(list iwidth-definition) ~
9084− =/ names=(list term) (global-value-names ds)
9085− =/ nameset=ivisited (graph-nameset names ~)
9086− =/ graph=iadj (graph-make-forward ds nameset ~)
9087− =/ components=icomponents (graph-components ds names)
9088− =/ top=(list term) (turn molds |=(m=[name=term body=shape] name.m))
9089− |-
9090− =/ next=[env=ienv artifacts=(list iwidth-definition)]
9091− (add-supported-defs ds env molds globals externals surs mark-externals marks jimports reserved-molds at prelude artifacts)
9092− =/ initial=istate [0 ~ ~ ~ molds globals externals surs mark-externals marks jimports reserved-molds ~ ~ ~ | at top prelude ~ 256 ~]
9093− =/ out=iresolved (add-groups ds components graph env.next grouped artifacts.next initial)
9094− ?: =(env env.out) out
9095− $(env env.out, grouped grouped.out, artifacts artifacts.out)
9096−::
90975160++ resolve-supported-defs
9098− |= [ds=(list def) molds=imolds globals=(list term) externals=iexternals surs=(list term) mark-externals=imark-externals marks=(list term) jimports=ijimports reserved-molds=(list term) at=path prelude=(unit ifile)]
5161+ |= [ds=(list def) molds=imolds globals=(list term) externals=iexternals surs=(list term)]
90995162 ^- ienv
9100− env:(resolve-groups ds molds globals externals surs mark-externals marks jimports reserved-molds at prelude)
9101−::
9102−:: A diagnostic-only proof for a narrow syntactic value cycle. Every
9103−:: edge is an unqualified wing in a supported expression, and samples
9104−:: may not shadow global bindings. Unknown forms yield no conclusion.
9105−+$ icyclesite [name=term at=span]
9106−+$ icycle [name=term first=span next=span]
9107−++ cycle-sites-list
9108− |= [xs=(list expr) globals=(list term) locals=(list term)]
9109− ^- (unit (list icyclesite))
9110− ?~ xs `~
9111− =/ first=(unit (list icyclesite)) (cycle-sites i.xs globals locals)
9112− ?~ first ~
9113− =/ tail=(unit (list icyclesite)) $(xs t.xs)
9114− ?~ tail ~
9115− `(weld u.first u.tail)
9116−::
9117−++ cycle-sample-name
9118− |= [sam=sample globals=(list term) locals=(list term)]
9119− ^- (unit (unit term))
9120− ?- -.sam
9121− %bind
9122− ?: (lien (weld globals locals) |=(n=term =(n name.sam))) ~
9123− ``name.sam
9124− %face
9125− ?: (lien (weld globals locals) |=(n=term =(n name.sam))) ~
9126− ``name.sam
9127− %bare `~
9128− * ~
9129− ==
9130−::
9131−++ cycle-sites
9132− |= [e=expr globals=(list term) locals=(list term)]
9133− ^- (unit (list icyclesite))
9134− ?- -.e
9135− %wing
9136− ?. ?=([@ ~] names.e) ~
9137− `~[[i.names.e at.e]]
9138− %lit `~
9139− %str
9140− ?: (lien pieces.e |=(p=piece ?=(%expr -.p))) ~
9141− `~
9142− %group $(e inner.e)
9143− %body ?~(defs.e $(e final.e) ~)
9144− %cast $(e val.e)
9145− %gate
9146− =/ binder=(unit (unit term)) (cycle-sample-name sample.e globals locals)
9147− ?~ binder ~
9148− =/ nested=(list term) ?~(u.binder locals [u.u.binder locals])
9149− $(e body.e, locals nested)
9150− %gate-wide
9151− =/ binder=(unit (unit term)) (cycle-sample-name sample.e globals locals)
9152− ?~ binder ~
9153− =/ nested=(list term) ?~(u.binder locals [u.u.binder locals])
9154− $(e body.e, locals nested)
9155− %call
9156− =/ first=(unit (list icyclesite)) $(e head.e)
9157− ?~ first ~
9158− =/ tail=(unit (list icyclesite)) (cycle-sites-list args.e globals locals)
9159− ?~ tail ~
9160− `(weld u.first u.tail)
9161− * ~
9162− ==
9163−::
9164−++ cycle-definitely-atom
9165− |= e=expr
9166− ^- ?
9167− ?: ?=(%group -.e) $(e inner.e)
9168− ?: &(?=(%body -.e) ?=(~ defs.e)) $(e final.e)
9169− ?. ?=(%cast -.e) |
9170− |(?=(%aura -.shape.e) ?=(%flag -.shape.e))
9171−::
9172−++ cycle-proof-group
9173− |= [members=(list def) globals=(list term)]
9174− ^- ?
9175− ?~ members &
9176− ?. ?=(%value -.i.members) |
9177− ?. (unique-value-name name.i.members globals) |
9178− ?. ?=(^ (cycle-sites val.i.members globals ~)) |
9179− $(members t.members)
9180−::
9181−++ cycle-find-site
9182− |= [sites=(list icyclesite) component=(list term)]
9183− ^- (unit span)
9184− ?~ sites ~
9185− ?: (lien component |=(n=term =(n name.i.sites))) `at.i.sites
9186− $(sites t.sites)
9187−::
9188−++ cycle-group-errors
9189− |= [members=(list def) component=(list term) globals=(list term)]
9190− ^- (list icycle)
9191− ?~ members ~
9192− =/ d=def i.members
9193− ?> ?=(%value -.d)
9194− =/ tail=(list icycle) $(members t.members)
9195− ?. (cycle-definitely-atom val.d) tail
9196− =/ sites=(unit (list icyclesite)) (cycle-sites val.d globals ~)
9197− ?~ sites tail
9198− =/ found=(unit span) (cycle-find-site u.sites component)
9199− ?~ found tail
9200− [[name.d at.d u.found] tail]
9201−::
9202−++ definite-value-cycles
9203− |= [ds=(list def) globals=(list term)]
9204− ^- (list icycle)
9205− =/ names=(list term) (global-value-names ds)
9206− =/ graph=iadj (graph-make-forward ds (graph-nameset names ~) ~)
9207− =/ components=icomponents (graph-components ds names)
9208− =/ out=(list icycle) ~
5163+ =/ env=ienv ~
92095164 |-
9210− ?~ components out
9211− =/ component=(list term) i.components
9212− ?. (graph-cycle component graph) $(components t.components)
9213− =/ members=(list def)
9214− (skim ds |=(d=def &(?=(%value -.d) (lien component |=(n=term =(n name.d))))))
9215− ?. =((lent members) (lent component)) $(components t.components)
9216− ?. (cycle-proof-group members globals) $(components t.components)
9217− $(components t.components, out (weld (cycle-group-errors members component globals) out))
5165+ =/ next=ienv (add-supported-defs ds env molds globals externals surs)
5166+ ?: =(next env) env
5167+ $(env next)
92185168::
92195169+| %union-analysis
92205170::
@@ -9351,183 +5301,22 @@
93515301 [at.first at.second (union-relate a (project-union-mold second molds ~))]
93525302 (weld pairs $(cases t.cases))
93535303::
9354−:: A closed structural mold supplies no equation to determine a hole.
9355−:: Applications, references, unbound capitals and unions are unproved.
9356−++ simple-mold-hole
9357− |= sh=shape
9358− ^- (unit (unit span))
9359− ?: ?=(%generic -.sh)
9360− ?~ vars.sh ~
9361− ?. (distinct-params vars.sh) ~
9362− (simple-mold-hole-in body.sh vars.sh)
9363− (simple-mold-hole-in sh ~)
9364−++ simple-mold-hole-in
9365− |= [sh=shape vars=(list @t)]
9366− ^- (unit (unit span))
9367− ?- -.sh
9368− %hole ``at.sh
9369− ?(%aura %noun %void %flag %const) `~
9370− %tvar ?:((lien vars |=(v=@t =(v name.sh))) `~ ~)
9371− %cell (simple-mold-field-holes fields.sh vars)
9372− %fn
9373− =/ a=(unit (unit span)) $(sh sample.sh)
9374− ?~ a ~
9375− =/ b=(unit (unit span)) $(sh product.sh)
9376− ?~ b ~
9377− `?~(u.a u.b u.a)
9378− %generic ~
9379− * ~
9380− ==
9381−++ simple-mold-field-holes
9382− |= [fields=(list field) vars=(list @t)]
9383− ^- (unit (unit span))
9384− ?~ fields `~
9385− =/ f=field i.fields
9386− =/ first=(unit (unit span))
9387− ?- -.f
9388− %face (simple-mold-hole-in shape.f vars)
9389− %bare (simple-mold-hole-in shape.f vars)
9390− %pun ~
9391− ==
9392− ?~ first ~
9393− =/ rest=(unit (unit span)) $(fields t.fields)
9394− ?~ rest ~
9395− `?~(u.first u.rest u.first)
9396−++ simple-local-mold-hole
9397− |= defs=(list def)
9398− ^- (unit span)
9399− ?~ defs ~
9400− ?. ?=(%mold -.i.defs) $(defs t.defs)
9401− =/ found=(unit (unit span)) (simple-mold-hole shape.i.defs)
9402− ?~ found $(defs t.defs)
9403− ?^ u.found u.found
9404− $(defs t.defs)
9405−::
9406−:: A partial prelude may omit unsupported declarations, but may not
9407−:: publish an interface while a named mold's hole remains unchecked.
9408−++ shape-has-hole
9409− |= sh=shape
9410− ^- ?
9411− ?- -.sh
9412− %hole &
9413− %path (lien segs.sh |=(s=pseg ?=(%inferred -.s)))
9414− %apply (lien args.sh shape-has-hole)
9415− %union (lien cases.sh shape-has-hole)
9416− %cell (lien fields.sh field-has-hole)
9417− %fn |($(sh sample.sh) $(sh product.sh))
9418− %generic $(sh body.sh)
9419− * |
9420− ==
9421−++ field-has-hole
9422− |= f=field
9423− ^- ?
9424− ?- -.f
9425− %face (shape-has-hole shape.f)
9426− %bare (shape-has-hole shape.f)
9427− %pun |
9428− ==
9429−++ named-mold-has-hole
9430− |= ds=(list def)
9431− ^- ?
9432− ?~ ds |
9433− ?: &(?=(%mold -.i.ds) (shape-has-hole shape.i.ds)) &
9434− $(ds t.ds)
9435−::
9436−++ sample-has-hole
9437− |= sam=sample
9438− ^- ?
9439− ?- -.sam
9440− %face (shape-has-hole shape.sam)
9441− %bare (shape-has-hole shape.sam)
9442− %cell (lien items.sam sample-has-hole)
9443− * |
9444− ==
9445−++ def-has-hole
9446− |= d=def
9447− ^- ?
9448− ?- -.d
9449− %mold (shape-has-hole shape.d)
9450− %value (expr-has-hole val.d)
9451− ==
9452−++ expr-has-hole
9453− |= e=expr
9454− ^- ?
9455− ?- -.e
9456− %str (lien pieces.e |=(p=piece ?:(?=(%expr -.p) (expr-has-hole p.p) |)))
9457− %qath (lien segs.e |=(p=qseg ?:(?=(%expr -.p) (expr-has-hole p.p) |)))
9458− %change (lien edits.e |=(p=edit (expr-has-hole val.p)))
9459− %pair $(e val.e)
9460− %unit $(e val.e)
9461− %group $(e inner.e)
9462− %list (lien items.e expr-has-hole)
9463− %tuple (lien items.e |=(i=item (expr-has-hole val.i)))
9464− ?(%gate %gate-wide) |((sample-has-hole sample.e) $(e body.e))
9465− %cast |((shape-has-hole shape.e) $(e val.e))
9466− %call |($(e head.e) (lien args.e expr-has-hole))
9467− %trace |($(e val.e) $(e then.e))
9468− %branch |($(e subject.e) (lien arms.e |=(a=arm (expr-has-hole val.a))))
9469− %body |((lien defs.e def-has-hole) $(e final.e))
9470− * |
9471− ==
9472−++ hole-values-present
9473− |= [ds=(list def) env=ienv]
9474− ^- ?
9475− ?~ ds &
9476− ?. ?=(%value -.i.ds) $(ds t.ds)
9477− ?: (expr-has-hole val.i.ds)
9478− ?. ?=(^ (ienv-lookup name.i.ds env)) |
9479− $(ds t.ds)
9480− $(ds t.ds)
94815304++ show-partial-mold
9482− |= [file=path src=@t d=def molds=imolds]
5305+ |= [d=def molds=imolds]
94835306 ^- @t
94845307 ?> ?=(%mold -.d)
94855308 =/ sh=shape shape.d
9486− =/ hole=(unit (unit span)) (simple-mold-hole sh)
9487− ?: &(?=(^ hole) ?=(^ u.hole))
9488− =/ text=@t (show-error src [file line.beg.u.u.hole col.beg.u.u.hole "unresolved type hole"])
9489− (of-wain:format ~[(crip "+$ {(trip name.d)}: type hole needs a determined type") text])
94905309 =? sh ?=(%generic -.sh) body.sh
94915310 ?. ?=(%union -.sh) (crip "+$ {(trip name.d)}: not checked")
94925311 =/ pairs=(list upair) (union-pairs cases.sh molds)
94935312 =/ overlapping=(list upair) (skim pairs |=(p=upair =(%overlap relation.p)))
94945313 ?^ overlapping
94955314 =/ p=upair i.overlapping
9496− =/ summary=@t (crip "+$ {(trip name.d)}: overlapping cases; mold not checked")
9497− =/ first=@t (show-error src [file line.beg.first.p col.beg.first.p "first union case"])
9498− =/ second=@t (show-error src [file line.beg.second.p col.beg.second.p "overlapping case"])
9499− (of-wain:format ~[summary first second])
5315+ (crip "+$ {(trip name.d)}: overlapping cases at {(show-loc beg.first.p)} and {(show-loc beg.second.p)}; mold not checked")
95005316 ?: (lien pairs |=(p=upair =(%unknown relation.p)))
95015317 (crip "+$ {(trip name.d)}: case disjointness unresolved; mold not checked")
95025318 (crip "+$ {(trip name.d)}: cases proven disjoint; mold not checked")
95035319::
9504−:: +show-inference-diagnostic: a partial report with both source sites
9505−::
9506−++ show-inference-diagnostic
9507− |= [file=path src=@t name=term diagnostic=idiag]
9508− ^- @t
9509− =/ summary=@t (crip "++ {(trip name)}: {msg.diagnostic}")
9510− =/ excerpts=(list @t)
9511− %+ turn sites.diagnostic
9512− |= site=[at=span note=tape]
9513− (show-error src [file line.beg.at.site col.beg.at.site note.site])
9514− (of-wain:format [summary excerpts])
9515−::
9516−:: Both written field sites are shown in the source that declares them.
9517−++ show-duplicate-fields
9518− |= [file=path src=@t diagnostic=idiag]
9519− ^- @t
9520− =/ excerpts=(list @t)
9521− %+ turn sites.diagnostic
9522− |= site=[at=span note=tape]
9523− (show-error src [file line.beg.at.site col.beg.at.site note.site])
9524− (of-wain:format [(crip msg.diagnostic) excerpts])
9525−::
9526−++ duplicate-fields-report
9527− |= [file=path src=@t diagnostic=idiag]
9528− ^- @t
9529− (of-wain:format ~['partial inference; module not checked' (show-duplicate-fields file src diagnostic)])
9530−::
95315320:: +golden-types: a partial report; it does not claim the module checks
95325321::
95335322++ golden-types
@@ -9544,1005 +5333,33 @@
95445333++ golden-types-imports
95455334 |= [file=path src=@t externals=iexternals]
95465335 ^- @t
9547− (golden-types-with-marks file src externals ~)
9548−::
9549−:: A supplied module is addressed by its logical /ui/.../name/jibb path.
9550−:: Interfaces are closed inference schemes, never raw source shapes.
9551−:: Recursive modules, APIs, derived gates and unsupported definitions do
9552−:: not yield an interface. The reachable graph is checked before the root.
9553−::
9554−+$ jsource [at=path source=@t]
9555−+$ jbundle (list jsource)
9556−+$ jcache (list [at=path iface=ifile])
9557−+$ jfile-result (each [iface=ifile cache=jcache] @t)
9558−+$ jimports-result (each [resolved=ijimports cache=jcache] @t)
9559−::
9560−:: Written record fields each have their own lexical record scope.
9561−+$ written-fields (map term span)
9562−++ duplicate-written-field
9563− |= [name=term at=span seen=written-fields]
9564− ^- (unit idiag)
9565− =/ prior=(unit span) (~(get by seen) name)
9566− ?~ prior ~
9567− `["record field `{(trip name)}` is repeated" ~[[u.prior "first field"] [at "repeated field"]]]
9568−++ duplicate-shapes
9569− |= xs=(list shape)
9570− ^- (unit idiag)
9571− ?~ xs ~
9572− =/ first (duplicate-shape i.xs)
9573− ?^ first first
9574− $(xs t.xs)
9575−++ duplicate-fields
9576− |= [fields=(list field) seen=written-fields]
9577− ^- (unit idiag)
9578− ?~ fields ~
9579− =/ f=field i.fields
9580− =/ n=(unit term)
9581− ?- -.f
9582− %face `name.f
9583− %pun `name.f
9584− %bare ~
9585− ==
9586− =/ dup=(unit idiag) ?~(n ~ (duplicate-written-field u.n at.f seen))
9587− ?^ dup dup
9588− =/ inner=(unit idiag)
9589− ?- -.f
9590− %face (duplicate-shape shape.f)
9591− %pun ~
9592− %bare (duplicate-shape shape.f)
9593− ==
9594− ?^ inner inner
9595− $(fields t.fields, seen ?~(n seen (~(put by seen) u.n at.f)))
9596−++ duplicate-shape
9597− |= s=shape
9598− ^- (unit idiag)
9599− ?- -.s
9600− %cell (duplicate-fields fields.s ~)
9601− %apply (duplicate-shapes args.s)
9602− %union (duplicate-shapes cases.s)
9603− %fn
9604− =/ left (duplicate-shape sample.s)
9605− ?^ left left
9606− (duplicate-shape product.s)
9607− %generic (duplicate-shape body.s)
9608− * ~
9609− ==
9610−++ duplicate-samples
9611− |= [items=(list sample) seen=written-fields]
9612− ^- (unit idiag)
9613− ?~ items ~
9614− =/ a=sample i.items
9615− =/ n=(unit term)
9616− ?- -.a
9617− %bind `name.a
9618− %face `name.a
9619− %pun `name.a
9620− * ~
9621− ==
9622− =/ dup=(unit idiag) ?~(n ~ (duplicate-written-field u.n at.a seen))
9623− ?^ dup dup
9624− =/ inner (duplicate-sample a)
9625− ?^ inner inner
9626− $(items t.items, seen ?~(n seen (~(put by seen) u.n at.a)))
9627−++ duplicate-sample
9628− |= s=sample
9629− ^- (unit idiag)
9630− ?- -.s
9631− %cell (duplicate-samples items.s ~)
9632− %face (duplicate-shape shape.s)
9633− %bare (duplicate-shape shape.s)
9634− * ~
9635− ==
9636−++ duplicate-exprs
9637− |= xs=(list expr)
9638− ^- (unit idiag)
9639− ?~ xs ~
9640− =/ first (duplicate-expr i.xs)
9641− ?^ first first
9642− $(xs t.xs)
9643−++ duplicate-items
9644− |= [items=(list item) seen=written-fields]
9645− ^- (unit idiag)
9646− ?~ items ~
9647− =/ a=item i.items
9648− =/ dup=(unit idiag) ?~(face.a ~ (duplicate-written-field u.face.a at.a seen))
9649− ?^ dup dup
9650− =/ inner (duplicate-expr val.a)
9651− ?^ inner inner
9652− $(items t.items, seen ?~(face.a seen (~(put by seen) u.face.a at.a)))
9653−++ duplicate-pieces
9654− |= pieces=(list piece)
9655− ^- (unit idiag)
9656− ?~ pieces ~
9657− =/ first=(unit idiag) ?:(?=(%expr -.i.pieces) (duplicate-expr p.i.pieces) ~)
9658− ?^ first first
9659− $(pieces t.pieces)
9660−++ duplicate-qsegs
9661− |= segs=(list qseg)
9662− ^- (unit idiag)
9663− ?~ segs ~
9664− =/ first=(unit idiag) ?:(?=(%expr -.i.segs) (duplicate-expr p.i.segs) ~)
9665− ?^ first first
9666− $(segs t.segs)
9667−++ duplicate-edits
9668− |= edits=(list edit)
9669− ^- (unit idiag)
9670− ?~ edits ~
9671− =/ first (duplicate-expr val.i.edits)
9672− ?^ first first
9673− $(edits t.edits)
9674−++ duplicate-arms
9675− |= arms=(list arm)
9676− ^- (unit idiag)
9677− ?~ arms ~
9678− =/ first (duplicate-expr val.i.arms)
9679− ?^ first first
9680− $(arms t.arms)
9681−++ duplicate-defs
9682− |= defs=(list def)
9683− ^- (unit idiag)
9684− ?~ defs ~
9685− =/ first=(unit idiag)
9686− ?- -.i.defs
9687− %mold (duplicate-shape shape.i.defs)
9688− %value (duplicate-expr val.i.defs)
9689− ==
9690− ?^ first first
9691− $(defs t.defs)
9692−++ duplicate-expr
9693− |= e=expr
9694− ^- (unit idiag)
9695− ?- -.e
9696− %str (duplicate-pieces pieces.e)
9697− %qath (duplicate-qsegs segs.e)
9698− %change (duplicate-edits edits.e)
9699− %pair (duplicate-expr val.e)
9700− %unit (duplicate-expr val.e)
9701− %group (duplicate-expr inner.e)
9702− %list (duplicate-exprs items.e)
9703− %tuple (duplicate-items items.e ~)
9704− %gate-wide
9705− =/ first (duplicate-sample sample.e)
9706− ?^ first first
9707− (duplicate-expr body.e)
9708− %gate
9709− =/ first (duplicate-sample sample.e)
9710− ?^ first first
9711− (duplicate-expr body.e)
9712− %cast
9713− =/ first (duplicate-shape shape.e)
9714− ?^ first first
9715− (duplicate-expr val.e)
9716− %call
9717− =/ first (duplicate-expr head.e)
9718− ?^ first first
9719− (duplicate-exprs args.e)
9720− %trace
9721− =/ first (duplicate-expr val.e)
9722− ?^ first first
9723− (duplicate-expr then.e)
9724− %branch
9725− =/ first (duplicate-expr subject.e)
9726− ?^ first first
9727− (duplicate-arms arms.e)
9728− %body
9729− =/ first (duplicate-defs defs.e)
9730− ?^ first first
9731− (duplicate-expr final.e)
9732− * ~
9733− ==
9734−++ import-binding-names
9735− |= imports=(list import)
9736− ^- (list term)
9737− ?~ imports ~
9738− =/ n=term
9739− ?- -.i.imports
9740− %jibb face.i.imports
9741− %sur name.i.imports
9742− %mark mark.i.imports
9743− ==
9744− [n $(imports t.imports)]
9745−::
9746−++ reserved-proj-sample
9747− |= sam=sample
9748− ^- ?
9749− ?- -.sam
9750− %bind =(name.sam %proj)
9751− %face =(name.sam %proj)
9752− %pun =(name.sam %proj)
9753− %cell (lien items.sam reserved-proj-sample)
9754− * |
9755− ==
9756−++ reserved-proj-pattern
9757− |= p=pattern
9758− ^- ?
9759− ?- -.p
9760− %bind =(name.p %proj)
9761− %cell (lien items.p reserved-proj-pattern)
9762− * |
9763− ==
9764−++ reserved-proj-def
9765− |= d=def
9766− ^- ?
9767− ?: =(name.d %proj) &
9768− ?: ?=(%value -.d) (reserved-proj-expr val.d)
9769− |
9770−++ reserved-proj-expr
9771− |= e=expr
9772− ^- ?
9773− ?- -.e
9774− %str (lien pieces.e |=(p=piece ?:(?=(%expr -.p) (reserved-proj-expr p.p) |)))
9775− %qath (lien segs.e |=(p=qseg ?:(?=(%expr -.p) (reserved-proj-expr p.p) |)))
9776− %change (lien edits.e |=(p=edit (reserved-proj-expr val.p)))
9777− %pair $(e val.e)
9778− %unit $(e val.e)
9779− %group $(e inner.e)
9780− %list (lien items.e reserved-proj-expr)
9781− %tuple (lien items.e |=(i=item (reserved-proj-expr val.i)))
9782− ?(%gate %gate-wide) |((reserved-proj-sample sample.e) $(e body.e))
9783− %cast $(e val.e)
9784− %call |($(e head.e) (lien args.e reserved-proj-expr))
9785− %trace |($(e val.e) $(e then.e))
9786− %branch |($(e subject.e) (lien arms.e |=(a=arm |((reserved-proj-pattern pat.a) (reserved-proj-expr val.a)))))
9787− %body |((lien defs.e reserved-proj-def) $(e final.e))
9788− * |
9789− ==
9790−::
9791−++ module-has-reserved-proj
9792− |= mod=module
9793− ^- ?
9794− =/ imported=(list term) (import-binding-names imports.mod)
9795− =/ vals=(list term) (global-value-names defs.mod)
9796− =/ molds=imolds (collect-simple-molds defs.mod)
9797− =/ mold-names=(list term) (turn molds |=(m=[name=term body=shape] name.m))
9798− |((lien (weld imported (weld vals mold-names)) |=(n=term =(n %proj))) (lien defs.mod reserved-proj-def))
9799−::
9800−++ module-scope-valid
9801− |= [mod=module prelude-values=(list term) prelude-molds=(list term)]
9802− ^- ?
9803− =/ imported=(list term) (import-binding-names imports.mod)
9804− =/ vals=(list term) (global-value-names defs.mod)
9805− =/ molds=imolds (collect-simple-molds defs.mod)
9806− =/ mold-names=(list term) (turn molds |=(m=[name=term body=shape] name.m))
9807− ?: (module-has-reserved-proj mod) |
9808− ?. %+ levy imported
9809− |= n=term
9810− &((unique-value-name n imported) !(lien vals |=(v=term =(n v))) !(lien mold-names |=(m=term =(n m))) !(lien prelude-values |=(v=term =(n v))) !(lien prelude-molds |=(m=term =(n m))))
9811− |
9812− ?. (levy vals |=(n=term &((unique-value-name n vals) !(lien prelude-values |=(v=term =(n v)))))) |
9813− (levy mold-names |=(n=term &((unique-value-name n mold-names) !(lien prelude-molds |=(m=term =(n m))))))
9814−::
9815−:: In an API file or before main's kind is known, a lone `+$ poke`
9816−:: may be a declaration rather than a mold that shadows the prelude. Do not call
9817−:: that one collision definite, and do not hide unrelated scope errors.
9818−++ pending-declared-poke
9819− |= [at=path mod=module prelude-values=(list term) prelude-molds=(list term)]
9820− ^- ?
9821− ?. (lien prelude-molds |=(n=term =(%poke n))) |
9822− ?. |(?=([%ui %api @ %jibb ~] at) (lien defs.mod |=(d=def &(?=(%value -.d) =(%main name.d))))) |
9823− =/ pokes=(list def)
9824− (skim defs.mod |=(d=def &(?=(%mold -.d) =(%poke name.d))))
9825− ?~ pokes |
9826− ?^ t.pokes |
9827− =/ remaining=(list def)
9828− (skim defs.mod |=(d=def !&(?=(%mold -.d) =(%poke name.d))))
9829− (module-scope-valid mod(defs remaining) prelude-values prelude-molds)
9830−::
9831−++ module-mold-types
9832− |= [molds=imolds state=istate]
9833− ^- (each imold-types @t)
9834− ?~ molds [%& ~]
9835− =/ m=[name=term body=shape] i.molds
9836− =/ t=(unit [template=ischeme state=istate])
9837− (infer-mold-template body.m state(active [name.m active.state], in-mold &))
9838− ?~ t [%| 'module mold needs unsupported inference']
9839− =. typ.template.u.t (label-direct-union typ.template.u.t body.m name.m state)
9840− =/ rest=(each imold-types @t) $(molds t.molds)
9841− ?: ?=(%| -.rest) rest
9842− [%& [[name.m template.u.t] p.rest]]
9843−::
9844−:: Prepare a provisional interface from the trusted vendored source.
9845−:: Every declared name remains reserved, but only molds and values this
9846−:: fragment can infer are usable. Unsupported bodies are not validated.
9847−:: An optional internal source supplies the prelude's one supported import;
9848−:: clients cannot import that path directly. Named unions retain their origin.
9849−::
9850−:: Recognize only the complete standard prelude list shape. Its recursive
9851−:: tail uses the same parameter and the unqualified list name. The reader
9852−:: verifies Hoon's list provenance before producing the same collection type.
9853−:: The prelude source and reader output are trusted caller inputs.
9854−::
9855−++ standard-prelude-list
9856− |= sh=shape
9857− ^- ?
9858− ?. ?=(%generic -.sh) |
9859− ?~ vars.sh |
9860− ?^ t.vars.sh |
9861− =/ var=@t i.vars.sh
9862− ?. ?=(%union -.body.sh) |
9863− =/ cs=(list shape) cases.body.sh
9864− ?~ cs |
9865− ?~ t.cs |
9866− ?^ t.t.cs |
9867− ?. ?=(%const -.i.cs) |
9868− ?. =(%null form.lit.i.cs) |
9869− ?. ?=(%cell -.i.t.cs) |
9870− =/ fs=(list field) fields.i.t.cs
9871− ?~ fs |
9872− ?~ t.fs |
9873− ?^ t.t.fs |
9874− ?. ?=(%face -.i.fs) |
9875− ?. =(%i name.i.fs) |
9876− ?. ?=(%tvar -.shape.i.fs) |
9877− ?. =(var name.shape.i.fs) |
9878− ?. ?=(%face -.i.t.fs) |
9879− ?. =(%t name.i.t.fs) |
9880− =/ tail=shape shape.i.t.fs
9881− ?. ?=(%apply -.tail) |
9882− ?. =(~[%list] ref.tail) |
9883− ?~ args.tail |
9884− ?^ t.args.tail |
9885− ?. ?=(%tvar -.i.args.tail) |
9886− =(var name.i.args.tail)
9887−::
9888−++ prelude-label
9889− |= [typ=itype name=term]
9890− ^- itype
9891− ?: ?=(%jrec -.typ) typ(label `name)
9892− ?. ?=(%union -.typ) typ
9893− ?^ args.typ typ
9894− typ(label `name)
9895−::
9896−++ partial-prelude-molds
9897− |= [molds=imolds state=istate]
9898− ^- imold-types
9899− ?~ molds ~
9900− =/ m=[name=term body=shape] i.molds
9901− ?: &(=(at.state /lib/jibb/prelude/jibb) =(%list name.m))
9902− ?. (standard-prelude-list body.m) $(molds t.molds)
9903− [[%list [[%collection %list ~[[%var 0]]] ~[0]]] $(molds t.molds)]
9904− =/ out=(unit [template=ischeme state=istate])
9905− (infer-mold-template body.m state(active [name.m active.state], in-mold &))
9906− ?~ out $(molds t.molds)
9907− =. typ.template.u.out (label-direct-union typ.template.u.out body.m name.m state)
9908− =. typ.template.u.out (prelude-label typ.template.u.out name.m)
9909− [[name.m template.u.out] $(molds t.molds)]
9910−::
9911−:: A compiler-owned interface available only to the dedicated
9912−:: internal-prelude preparation path, never the ordinary module resolver.
9913−++ private-primitive-interface
9914− ^- ifile
9915− =/ a=itype [%avar 0]
9916− =/ pair=itype [%cell a a]
9917− =/ greater=ischeme [[%fn pair [%flag ~]] ~[0]]
9918− [~[[%raw-gth greater]] ~ /lib/jibb/primitives/jibb ~ ~ ~ ~]
9919−::
9920−++ infer-private-internal
9921− |= src=@t
9922− ^- (unit ifile)
9923− =/ at=path /lib/jibb/internal/jibb
9924− =/ parsed (parse at src)
9925− ?: ?=(%| -.parsed) ~
9926− =/ mod=module p.parsed
9927− ?^ (duplicate-defs defs.mod) ~
9928− ?~ imports.mod
9929− =/ built=jfile-result (infer-jibb-file at src ~ ~ ~ ~[at] ~ ~ ~ ~)
9930− ?: ?=(%| -.built) ~
9931− `iface.p.built
9932− ?. ?=([[%jibb *] ~] imports.mod) ~
9933− ?. =(path.i.imports.mod /lib/jibb/primitives) ~
9934− ?. (module-scope-valid mod ~ ~) ~
9935− =/ vals=(list term) (global-value-names defs.mod)
9936− ?: (lien vals |=(n=term =(n %main))) ~
9937− =/ molds=imolds (collect-simple-molds defs.mod)
9938− =/ globals=(list term) (weld (import-binding-names imports.mod) vals)
9939− =/ js=ijimports ~[[face.i.imports.mod private-primitive-interface]]
9940− =/ reserved=(list term) ~[face.i.imports.mod]
9941− =/ top=(list term) (turn molds |=(m=[name=term body=shape] name.m))
9942− =/ state=istate [0 ~ ~ ~ molds globals ~ ~ ~ ~ js reserved ~ ~ ~ | at top ~ ~ 256 ~]
9943− =/ mts=(each imold-types @t) (module-mold-types molds state)
9944− ?: ?=(%| -.mts) ~
9945− =/ resolution=iresolved (resolve-groups defs.mod molds globals ~ ~ ~ ~ js reserved at ~)
9946− =/ env=ienv env.resolution
9947− ?. (module-values-complete defs.mod env) ~
9948− `[env p.mts at ~ artifacts.resolution ~ `src]
9949−::
9950−++ partial-prelude-interface-with-internal
9951− |= [src=@t internal-source=(unit @t)]
9952− ^- (unit ifile)
9953− ?: =(0 src) ~
9954− =/ at=path /lib/jibb/prelude/jibb
9955− =/ parsed (parse at src)
9956− ?: ?=(%| -.parsed) ~
9957− ?: (named-mold-has-hole defs.p.parsed) ~
9958− ?^ (duplicate-defs defs.p.parsed) ~
9959− =/ private=(unit ijimports)
9960− ?~ imports.p.parsed `~
9961− ?. ?=([[%jibb *] ~] imports.p.parsed) ~
9962− ?. =(path.i.imports.p.parsed /lib/jibb/internal) ~
9963− ?~ internal-source ~
9964− =/ built=(unit ifile) (infer-private-internal u.internal-source)
9965− ?~ built ~
9966− `~[[face.i.imports.p.parsed u.built]]
9967− ?~ private ~
9968− ?~ defs.p.parsed ~
9969− ?. (module-scope-valid p.parsed ~ ~) ~
9970− =/ ds=(list def) defs.p.parsed
9971− =/ molds=imolds (collect-simple-molds ds)
9972− =/ names=(list term) (turn molds |=(m=[name=term body=shape] name.m))
9973− =/ globals=(list term) (weld (import-binding-names imports.p.parsed) (global-value-names ds))
9974− :: Remove raw list before inferring any template, so an altered list
9975− :: cannot leak through an alias. Its name remains reserved either way.
9976− =/ declared=? (lien names |=(name=term =(%list name)))
9977− =/ env-molds=imolds molds
9978− =? env-molds declared
9979− (skim molds |=(m=[name=term body=shape] !=(%list name.m)))
9980− =/ reserved=(list term) ?:(declared ~[%list] ~)
9981− =/ state=istate [0 ~ ~ ~ env-molds globals ~ ~ ~ ~ u.private reserved ~ ~ ~ | at names ~ ~ 256 ~]
9982− :: Other prelude molds may use list only after its source has passed
9983− :: the standard-list check. The raw declaration remains removed.
9984− =/ declared-list=(unit shape) (find-simple-mold %list molds)
9985− =/ mold-prelude=(unit ifile)
9986− ?~ declared-list ~
9987− ?. (standard-prelude-list u.declared-list) ~
9988− `[~ ~[[%list [[%collection %list ~[[%var 0]]] ~[0]]]] at ~ ~ ~ ~]
9989− =/ mt=imold-types (partial-prelude-molds molds state(prelude mold-prelude))
9990− =/ partial=ifile [~ mt at ~ ~ ~ ~]
9991− :: An explicitly qualified re-export must resolve. Other unsupported
9992− :: prelude declarations remain reserved but absent from the interface.
9993− =/ required=imolds
9994− %+ skim molds
9995− |= m=[name=term body=shape]
9996− =/ sh=shape body.m
9997− ?. ?=(%ref -.sh) |
9998− ?~ names.sh |
9999− ?=(^ t.names.sh)
10000− ?. (levy required |=(m=[name=term body=shape] ?=(^ (find-jibb-mold name.m partial)))) ~
10001− =/ resolution=iresolved (resolve-groups ds env-molds globals ~ ~ ~ ~ u.private reserved at `partial)
10002− =/ env=ienv env.resolution
10003− ?. (hole-values-present ds env) ~
10004− =/ deps=(list iwidth-dependency)
10005− ?~ u.private ~
10006− ~[[at.interface.i.u.private source.interface.i.u.private elaborations.interface.i.u.private]]
10007− `[env mt at ~ artifacts.resolution deps `src]
10008−::
10009−++ partial-prelude-interface
10010− |= src=@t
10011− ^- (unit ifile)
10012− (partial-prelude-interface-with-internal src ~)
10013−::
10014−+$ iprelude [iface=ifile values=(list term) molds=(list term)]
10015−::
10016−++ prepare-prelude
10017− |= src=@t
10018− ^- (unit iprelude)
10019− =/ iface=(unit ifile) (partial-prelude-interface src)
10020− ?~ iface ~
10021− =/ parsed (parse /lib/jibb/prelude/jibb src)
10022− ?: ?=(%| -.parsed) ~
10023− =/ vals=(list term) (global-value-names defs.p.parsed)
10024− =/ ms=(list term) (turn (collect-simple-molds defs.p.parsed) |=(m=[name=term body=shape] name.m))
10025− `[u.iface vals ms]
10026−::
10027−++ prepare-prelude-with-internal
10028− |= [src=@t internal-source=@t]
10029− ^- (unit iprelude)
10030− =/ iface=(unit ifile) (partial-prelude-interface-with-internal src `internal-source)
10031− ?~ iface ~
10032− =/ parsed (parse /lib/jibb/prelude/jibb src)
10033− ?: ?=(%| -.parsed) ~
10034− =/ vals=(list term) (global-value-names defs.p.parsed)
10035− =/ ms=(list term) (turn (collect-simple-molds defs.p.parsed) |=(m=[name=term body=shape] name.m))
10036− `[u.iface vals ms]
10037−::
10038−++ module-values-complete
10039− |= [ds=(list def) env=ienv]
10040− ^- ?
10041− ?~ ds &
10042− ?: ?=(%mold -.i.ds) $(ds t.ds)
10043− ?~ (ienv-lookup name.i.ds env) |
10044− $(ds t.ds)
10045−::
10046−:: Cache only completed interfaces for this invocation. The source bundle,
10047−:: imported Hoon types and prelude are fixed for the whole graph. Check the
10048−:: active path and duplicate sources before consulting it, so a cache hit
10049−:: cannot hide a cycle or ambiguous source.
10050−::
10051−++ find-jibb-cache
10052− |= [at=path cache=jcache]
10053− ^- (unit ifile)
10054− ?~ cache ~
10055− ?: =(at at.i.cache) `iface.i.cache
10056− $(cache t.cache)
10057−::
10058−++ resolve-jibb-imports
10059− |= [imports=(list import) externals=iexternals mark-externals=imark-externals modules=jbundle active=(list path) prelude-values=(list term) prelude-molds=(list term) cache=jcache prelude=(unit ifile)]
10060− ^- jimports-result
10061− ?~ imports [%& [~ cache]]
10062− ?. ?=(%jibb -.i.imports) $(imports t.imports)
10063− =/ at=path (weld path.i.imports `path`~[%jibb])
10064− ?: =(at /lib/jibb/internal/jibb)
10065− [%| 'the prelude internal module is private']
10066− ?: =(at /lib/jibb/primitives/jibb)
10067− [%| 'the prelude primitive interface is private']
10068− ?: (lien active |=(p=path =(p at)))
10069− [%| (crip "import cycle at {(spud at)}")]
10070− =/ found=jbundle (skim modules |=(m=jsource =(at at.m)))
10071− ?~ found [%| (crip "module source missing: {(spud at)}")]
10072− ?^ t.found [%| (crip "duplicate module sources: {(spud at)}")]
10073− =/ cached=(unit ifile) (find-jibb-cache at cache)
10074− =/ iface=jfile-result
10075− ?^ cached [%& [u.cached cache]]
10076− (infer-jibb-file at source.i.found externals mark-externals modules [at active] prelude-values prelude-molds cache prelude)
10077− ?: ?=(%| -.iface) [%| p.iface]
10078− =/ rest=jimports-result $(imports t.imports, cache cache.p.iface)
10079− ?: ?=(%| -.rest) rest
10080− [%& [[[face.i.imports iface.p.iface] resolved.p.rest] cache.p.rest]]
10081−::
10082−:: Provisional declaration extraction only; this does not derive asks,
10083−:: validate imported types, or claim that an API module has checked.
10084−+$ iapi-path [at=span name=term segments=(list pseg) full=term diffs=(list term) scry=(unit (list pseg))]
10085−++ api-path-mark
10086− |= [sh=shape marks=(list term)]
10087− ^- (unit term)
10088− ?. ?=(%ref -.sh) ~
10089− ?. ?=([@ ~] names.sh) ~
10090− ?. (unique-value-name i.names.sh marks) ~
10091− `i.names.sh
10092−::
10093−++ api-path-diffs
10094− |= [shapes=(list shape) marks=(list term) used=(list term)]
10095− ^- (unit (list term))
10096− ?~ shapes `~
10097− =/ n=(unit term) (api-path-mark i.shapes marks)
10098− ?~ n ~
10099− ?: (lien used |=(x=term =(x u.n))) ~
10100− =/ rest=(unit (list term)) $(shapes t.shapes, used [u.n used])
10101− ?~ rest ~
10102− `[u.n u.rest]
10103−::
10104−++ api-path-payload
10105− |= [sh=shape marks=(list term)]
10106− ^- (unit [full=term diffs=(list term)])
10107− =/ direct=(unit term) (api-path-mark sh marks)
10108− ?^ direct `[u.direct ~]
10109− ?. ?=(%apply -.sh) ~
10110− ?. =(~[%facts] ref.sh) ~
10111− ?~ args.sh ~
10112− ?~ t.args.sh ~
10113− =/ full=(unit term) (api-path-mark i.args.sh marks)
10114− ?~ full ~
10115− =/ diffs=(unit (list term)) (api-path-diffs t.args.sh marks ~[u.full])
10116− ?~ diffs ~
10117− `[u.full u.diffs]
10118−::
10119−+$ iapi-parameter [name=term aura=@ta at=span]
10120−++ api-path-parameters
10121− |= [segments=(list pseg) seen=(list term)]
10122− ^- (unit (list iapi-parameter))
10123− ?~ segments `~
10124− ?: ?=(%knot -.i.segments) $(segments t.segments)
10125− =/ seg=pseg i.segments
10126− ?. ?=(%typed -.seg) ~
10127− ?: =(0 aura.seg) ~
10128− ?: (lien seen |=(n=term =(n name.seg))) ~
10129− =/ rest=(unit (list iapi-parameter)) $(segments t.segments, seen [name.seg seen])
10130− ?~ rest ~
10131− `[[name.seg aura.seg at.seg] u.rest]
10132−::
10133−++ api-scry-parameters-compatible
10134− |= [scry=(list iapi-parameter) watch=(list iapi-parameter)]
10135− ^- ?
10136− ?~ scry &
10137− ?. (lien watch |=(p=iapi-parameter &(=(name.p name.i.scry) =(aura.p aura.i.scry)))) |
10138− $(scry t.scry)
10139−::
10140−++ api-path-one
10141− |= [sh=shape marks=(list term)]
10142− ^- (unit iapi-path)
10143− ?. ?=(%cell -.sh) ~
10144− =/ fs=(list field) fields.sh
10145− ?~ fs ~
10146− ?~ t.fs ~
10147− ?~ t.t.fs ~
10148− ?: (gth (lent fs) 4) ~
10149− ?. ?=(%bare -.i.fs) ~
10150− =/ tag=shape shape.i.fs
10151− ?. ?=(%const -.tag) ~
10152− ?. =(%term form.lit.tag) ~
10153− =/ name=term val.lit.tag
10154− ?. (jibb-face-name name) ~
10155− ?. ?=(%bare -.i.t.fs) ~
10156− =/ path-shape=shape shape.i.t.fs
10157− ?. ?=(%path -.path-shape) ~
10158− ?. ?=(%bare -.i.t.t.fs) ~
10159− =/ payload=(unit [full=term diffs=(list term)]) (api-path-payload shape.i.t.t.fs marks)
10160− ?~ payload ~
10161− =/ scry=(unit (unit (list pseg)))
10162− ?~ t.t.t.fs `~
10163− =/ entry=field i.t.t.t.fs
10164− ?. ?=(%face -.entry) ~
10165− ?. =(%scry name.entry) ~
10166− ?. ?=(%path -.shape.entry) ~
10167− ``segs.shape.entry
10168− ?~ scry ~
10169− =/ params=(unit (list iapi-parameter)) (api-path-parameters segs.path-shape ~)
10170− ?~ params ~
10171− ?^ u.scry
10172− =/ scry-params=(unit (list iapi-parameter)) (api-path-parameters u.u.scry ~)
10173− ?~ scry-params ~
10174− ?. (api-scry-parameters-compatible u.scry-params u.params) ~
10175− `[at.sh name segs.path-shape full.u.payload diffs.u.payload u.scry]
10176− `[at.sh name segs.path-shape full.u.payload diffs.u.payload u.scry]
10177−::
10178−++ api-path-many
10179− |= [shapes=(list shape) marks=(list term) seen=(list term)]
10180− ^- (unit (list iapi-path))
10181− ?~ shapes `~
10182− =/ one=(unit iapi-path) (api-path-one i.shapes marks)
10183− ?~ one ~
10184− ?: (lien seen |=(n=term =(n name.u.one))) ~
10185− =/ rest=(unit (list iapi-path)) $(shapes t.shapes, seen [name.u.one seen])
10186− ?~ rest ~
10187− `[u.one u.rest]
10188−::
10189−++ api-path-declaration
10190− |= [sh=shape marks=(list term)]
10191− ^- (unit (list iapi-path))
10192− ?: ?=(%union -.sh) (api-path-many cases.sh marks ~)
10193− (api-path-many ~[sh] marks ~)
10194−::
10195−:: Derived gates share the value namespace. /% marks name molds; /- and
10196−:: /= also introduce faces that cannot be shadowed by a derived value.
10197−++ api-import-faces
10198− |= imports=(list import)
10199− ^- (list term)
10200− ?~ imports ~
10201− ?- -.i.imports
10202− %mark $(imports t.imports)
10203− %sur [name.i.imports $(imports t.imports)]
10204− %jibb [face.i.imports $(imports t.imports)]
10205− ==
10206−::
10207−++ api-derived-names-valid
10208− |= [paths=(list iapi-path) poke-names=(list term) mod=module prelude-values=(list term)]
10209− ^- ?
10210− =/ path-names=(list term) (turn paths |=(p=iapi-path name.p))
10211− =/ derived=(list term) (weld path-names poke-names)
10212− ?: (lien derived |=(n=term =(n %proj))) |
10213− =/ outer=(list term) (weld prelude-values (weld (global-value-names defs.mod) (api-import-faces imports.mod)))
10214− (levy derived |=(n=term &((unique-value-name n derived) !(lien outer |=(x=term =(n x))))))
10215−::
10216−:: Analysis only. Successful external entries must be unchanged results
10217−:: produced for the declared marks; no request interface is produced.
10218−+$ iapi-mark-type [name=term typ=itype]
10219−+$ iapi-path-typed [path=iapi-path full=itype diffs=(list iapi-mark-type)]
10220−++ api-diff-types
10221− |= [names=(list term) externals=imark-externals declared=(list term)]
10222− ^- (unit (list iapi-mark-type))
10223− ?~ names `~
10224− =/ typ=(unit itype) (find-imported-mark i.names externals declared)
10225− ?~ typ ~
10226− =/ tail=(unit (list iapi-mark-type)) $(names t.names)
10227− ?~ tail ~
10228− `[[i.names u.typ] u.tail]
10229−::
10230−++ api-path-types
10231− |= [paths=(list iapi-path) externals=imark-externals declared=(list term)]
10232− ^- (unit (list iapi-path-typed))
10233− ?~ paths `~
10234− =/ full=(unit itype) (find-imported-mark full.i.paths externals declared)
10235− ?~ full ~
10236− =/ diffs=(unit (list iapi-mark-type)) (api-diff-types diffs.i.paths externals declared)
10237− ?~ diffs ~
10238− =/ tail=(unit (list iapi-path-typed)) $(paths t.paths)
10239− ?~ tail ~
10240− `[[i.paths u.full u.diffs] u.tail]
10241−::
10242−++ api-poke-mark-names
10243− |= [pokes=(list def) declared=(list term)]
10244− ^- (unit (list term))
10245− ?~ pokes `~
10246− ?^ t.pokes ~
10247− =/ d=def i.pokes
10248− ?. ?=(%mold -.d) ~
10249− =/ sh=shape shape.d
10250− ?: ?=(%union -.sh) (api-path-diffs cases.sh declared ~)
10251− =/ name=(unit term) (api-path-mark sh declared)
10252− ?~ name ~
10253− `~[u.name]
10254−::
10255−++ api-path-analysis
10256− |= [mod=module externals=imark-externals prelude-values=(list term) prelude-molds=(list term)]
10257− ^- (unit (list iapi-path-typed))
10258− ?: (lien defs.mod def-has-hole) ~
10259− ?^ (duplicate-defs defs.mod) ~
10260− =/ ds=(list def) defs.mod
10261− =/ declarations=(list def)
10262− (skim ds |=(d=def &(?=(%mold -.d) =(%paths name.d))))
10263− ?. ?=([* ~] declarations) ~
10264− =/ pokes=(list def)
10265− (skim ds |=(d=def &(?=(%mold -.d) =(%poke name.d))))
10266− ?: (gth (lent pokes) 1) ~
10267− =/ ordinary=(list def)
10268− (skim ds |=(d=def !&(?=(%mold -.d) |(=(%paths name.d) =(%poke name.d)))))
10269− ?. (module-scope-valid mod(defs ordinary) prelude-values prelude-molds) ~
10270− =/ declared=(list term) (collect-mark-imports imports.mod)
10271− =/ poke-names=(unit (list term)) (api-poke-mark-names pokes declared)
10272− ?~ poke-names ~
10273− =/ decl=def i.declarations
10274− ?> ?=(%mold -.decl)
10275− =/ paths=(unit (list iapi-path)) (api-path-declaration shape.decl declared)
10276− ?~ paths ~
10277− ?. (api-derived-names-valid u.paths u.poke-names mod prelude-values) ~
10278− (api-path-types u.paths externals declared)
10279−::
10280−:: Source/graph entry for path analysis only. The returned paths retain
10281−:: reader-derived mark types and import resolution has checked reachable
10282−:: Jibb dependencies. This is not an API interface or a module check.
10283−++ api-path-analysis-source
10284− |= [file=path src=@t externals=iexternals marks=imark-externals modules=jbundle prepared=(unit iprelude)]
10285− ^- (each (list iapi-path-typed) @t)
10286− ?. ?=([%ui %api @ %jibb ~] file) [%| 'API path analysis requires /ui/api/<agent>.jibb']
10287− =/ parsed (parse file src)
10288− ?: ?=(%| -.parsed) [%| 'API path source does not parse']
10289− =/ duplicate=(unit idiag) (duplicate-defs defs.p.parsed)
10290− ?^ duplicate [%| (show-duplicate-fields file src u.duplicate)]
10291− ?~ prepared [%| 'API path analysis needs the prepared prelude']
10292− =/ prelude=(unit ifile) `iface.u.prepared
10293− =/ deps=jimports-result
10294− (resolve-jibb-imports imports.p.parsed externals marks modules ~[file] values.u.prepared molds.u.prepared ~ prelude)
10295− ?: ?=(%| -.deps) [%| p.deps]
10296− =/ paths=(unit (list iapi-path-typed))
10297− (api-path-analysis p.parsed marks values.u.prepared molds.u.prepared)
10298− ?~ paths [%| 'API path declaration needs unsupported analysis']
10299− [%& u.paths]
10300−::
10301−++ api-mark-exports
10302− |= [marks=(list term) all=(list term) externals=imark-externals]
10303− ^- imold-types
10304− ?~ marks ~
10305− =/ t=(unit itype) (find-imported-mark i.marks externals all)
10306− ?~ t $(marks t.marks)
10307− [[i.marks [u.t ~]] $(marks t.marks)]
10308−::
10309−:: Experimental direct poke-only API. Unsupported API declarations fail
10310−:: as a whole; supplied mark reader results retain their existing boundary.
10311−++ api-poke-interface
10312− |= [at=path mod=module mark-externals=imark-externals prelude-values=(list term) prelude-molds=(list term) prelude=(unit ifile)]
10313− ^- (unit ifile)
10314− ?: (lien defs.mod def-has-hole) ~
10315− ?. ?=([%ui %api @ %jibb ~] at) ~
10316− ?^ (duplicate-defs defs.mod) ~
10317− ?~ prelude ~
10318− ?. =(at.u.prelude /lib/jibb/prelude/jibb) ~
10319− =/ poke=(unit ischeme) (find-jibb-mold %poke u.prelude)
10320− ?~ poke ~
10321− ?. ?=(%union -.typ.u.poke) ~
10322− ?^ vars.u.poke ~
10323− =/ compatible=?
10324− %+ lien cases.typ.u.poke
10325− |= c=itype
10326− ?=([%cell [%const [%term %tas %agent *]] [%cell [%face %agent [%atom %tas]] [%cell [%face %mark [%atom %tas]] [%face %payload [%noun ~]]]]] c)
10327− ?. compatible ~
10328− ?. (module-scope-valid mod(defs ~) prelude-values prelude-molds) ~
10329− ?. (levy imports.mod |=(i=import ?=(%mark -.i))) ~
10330− =/ marks=(list term) (collect-mark-imports imports.mod)
10331− ?. ?=([@ ~] marks) ~
10332− =/ ds=(list def) defs.mod
10333− ?. ?=([[%mold *] ~] ds) ~
10334− ?. =(%poke name.i.ds) ~
10335− =/ sh=shape shape.i.ds
10336− ?. ?=([%ref *] sh) ~
10337− ?. ?=([@ ~] names.sh) ~
10338− =/ n=term i.names.sh
10339− ?. (unique-value-name n marks) ~
10340− ?: |((lien prelude-values |=(x=term =(n x))) (lien prelude-molds |=(x=term =(n x)))) ~
10341− =/ mark=(unit itype) (find-imported-mark n mark-externals marks)
10342− ?~ mark ~
10343− =/ sc=ischeme [[%fn u.mark typ.u.poke] ~]
10344− `[~[[n sc]] (api-mark-exports marks marks mark-externals) at ~[[n i.t.t.at n]] ~ ~ ~]
10345−::
10346−++ infer-jibb-file
10347− |= [at=path src=@t externals=iexternals mark-externals=imark-externals modules=jbundle active=(list path) prelude-values=(list term) prelude-molds=(list term) cache=jcache prelude=(unit ifile)]
10348− ^- jfile-result
10349− =/ parsed (parse at src)
10350− ?: ?=(%| -.parsed) [%| (crip "module source does not parse: {(spud at)}")]
10351− =/ mod=module p.parsed
10352− =/ duplicate=(unit idiag) (duplicate-defs defs.mod)
10353− ?^ duplicate [%| (show-duplicate-fields at src u.duplicate)]
10354− ?: ?=([%ui %api *] at)
10355− =/ iface=(unit ifile) (api-poke-interface at mod mark-externals prelude-values prelude-molds prelude)
10356− ?~ iface [%| (crip "API module needs unsupported inference: {(spud at)}")]
10357− =/ checked=ifile u.iface(source `src)
10358− [%& [checked [[at checked] cache]]]
10359− ?. (module-scope-valid mod prelude-values prelude-molds)
10360− ?: (pending-declared-poke at mod prelude-values prelude-molds)
10361− [%| (crip "module kind or scope needs unsupported inference: {(spud at)}")]
10362− [%| (crip "module has conflicting names: {(spud at)}")]
10363− =/ vals=(list term) (global-value-names defs.mod)
10364− ?: (lien vals |=(n=term =(n %main)))
10365− [%| (crip "module kind needs unsupported inference: {(spud at)}")]
10366− =/ js=jimports-result (resolve-jibb-imports imports.mod externals mark-externals modules active prelude-values prelude-molds cache prelude)
10367− ?: ?=(%| -.js) [%| p.js]
10368− =/ molds=imolds (collect-simple-molds defs.mod)
10369− =/ globals=(list term) (weld prelude-values (weld (import-binding-names imports.mod) vals))
10370− =/ surs=(list term) (collect-sur-imports imports.mod)
10371− =/ marks=(list term) (collect-mark-imports imports.mod)
10372− =/ reserved=(list term) (weld prelude-molds (turn resolved.p.js |=(j=[face=term interface=ifile] face.j)))
10373− =/ top=(list term) (turn molds |=(m=[name=term body=shape] name.m))
10374− =/ state=istate [0 ~ ~ ~ molds globals externals surs mark-externals marks resolved.p.js reserved ~ ~ ~ | at top prelude ~ 256 ~]
10375− =/ mts=(each imold-types @t) (module-mold-types molds state)
10376− ?: ?=(%| -.mts) [%| (crip "{(trip p.mts)}: {(spud at)}")]
10377− =/ resolution=iresolved (resolve-groups defs.mod molds globals externals surs mark-externals marks resolved.p.js reserved at prelude)
10378− =/ env=ienv env.resolution
10379− ?. (module-values-complete defs.mod env)
10380− [%| (crip "module definitions need unsupported inference: {(spud at)}")]
10381− =/ iface=ifile [env p.mts at ~ artifacts.resolution ~ `src]
10382− [%& [iface [[at iface] cache.p.js]]]
10383−::
10384−:: +golden-types-with-modules fails closed for imports without prelude
10385−:: scope. +golden-types-with-prelude resolves supported library graphs;
10386−:: its report remains partial and unreachable sources are not examined.
10387−::
10388−++ golden-types-with-modules
10389− |= [file=path src=@t externals=iexternals mark-externals=imark-externals modules=jbundle]
10390− ^- @t
10391− =/ parsed (parse file src)
10392− ?: ?=(%| -.parsed) (show-error src p.parsed)
10393− =/ duplicate=(unit idiag) (duplicate-defs defs.p.parsed)
10394− ?^ duplicate (duplicate-fields-report file src u.duplicate)
10395− ?: (lien imports.p.parsed |=(i=import ?=(%jibb -.i)))
10396− 'partial inference; module not checked\0aprelude source missing; module import inference unsupported'
10397− (golden-types-with-marks file src externals mark-externals)
10398−::
10399−:: The caller supplies the actual prelude source. Its declared names are
10400−:: reserved, and supported inferred types are made available. The inventory
10401−:: and the checker are incomplete, so this never claims a checked module.
10402−:: Hosts may prepare the same trusted source once and reuse its interface.
10403−::
10404−++ golden-types-with-prelude
10405− |= [file=path src=@t externals=iexternals mark-externals=imark-externals modules=jbundle prelude-source=@t]
10406− ^- @t
10407− =/ parsed (parse file src)
10408− ?: ?=(%| -.parsed) (show-error src p.parsed)
10409− =/ duplicate=(unit idiag) (duplicate-defs defs.p.parsed)
10410− ?^ duplicate (duplicate-fields-report file src u.duplicate)
10411− ?: =(0 prelude-source) 'partial inference; module not checked\0aprelude source missing; module import inference unsupported'
10412− =/ prelude (parse /lib/jibb/prelude/jibb prelude-source)
10413− ?: ?=(%| -.prelude) 'partial inference; module not checked\0aprelude source does not parse; module import inference unsupported'
10414− =/ prepared=(unit iprelude) (prepare-prelude prelude-source)
10415− ?~ prepared 'partial inference; module not checked\0aprelude interface is not supported'
10416− (golden-types-with-prepared-prelude file src externals mark-externals modules prepared)
10417−::
10418−++ golden-types-with-prelude-and-internal
10419− |= [file=path src=@t externals=iexternals mark-externals=imark-externals modules=jbundle prelude-source=@t internal-source=@t]
10420− ^- @t
10421− =/ prepared=(unit iprelude) (prepare-prelude-with-internal prelude-source internal-source)
10422− (golden-types-with-prepared-prelude file src externals mark-externals modules prepared)
10423−::
10424−++ golden-types-with-prepared-prelude
10425− |= [file=path src=@t externals=iexternals mark-externals=imark-externals modules=jbundle prepared=(unit iprelude)]
10426− ^- @t
10427− =/ parsed (parse file src)
10428− ?: ?=(%| -.parsed) (show-error src p.parsed)
10429− =/ duplicate=(unit idiag) (duplicate-defs defs.p.parsed)
10430− ?^ duplicate (duplicate-fields-report file src u.duplicate)
10431− ?~ prepared 'partial inference; module not checked\0aprelude interface is not supported'
10432− =/ prelude-values=(list term) values.u.prepared
10433− =/ prelude-molds=(list term) molds.u.prepared
10434− =/ iface=(unit ifile) `iface.u.prepared
10435− ?. (module-scope-valid p.parsed prelude-values prelude-molds)
10436− ?: (pending-declared-poke file p.parsed prelude-values prelude-molds)
10437− 'partial inference; module not checked\0amodule kind or scope needs unsupported inference'
10438− 'partial inference; module not checked\0amodule has conflicting names'
10439− =/ js=jimports-result
10440− (resolve-jibb-imports imports.p.parsed externals mark-externals modules ~[file] prelude-values prelude-molds ~ iface)
10441− ?: ?=(%| -.js) (of-wain:format ~['partial inference; module not checked' p.js])
10442− =/ scope-values=(list term)
10443− (weld prelude-values (weld (collect-sur-imports imports.p.parsed) (collect-mark-imports imports.p.parsed)))
10444− (golden-types-in-context file src externals mark-externals resolved.p.js scope-values prelude-molds iface)
10445−::
10446−:: +golden-types-with-marks: supply declared mark types separately from /sur
10447−:: entries, as [mark result] with the result from +read-mark:jibb-import.
10448−:: Unknown, duplicated, failed and undeclared entries never resolve a mold.
10449−::
10450−:: Callers pass unchanged structured reader results; graph validation
10451−:: remains in the existing bridge, and failures stay available lazily.
10452−++ reader-result-for-checker
10453− |= result=*
10454− ^- *
10455− ?: ?=([%ok *] result) [%& +.result]
10456− result
10457−::
10458−++ golden-types-with-reader-diagnostics
10459− |= [file=path src=@t externals=iexternals mark-externals=imark-externals]
10460− ^- @t
10461− =/ ex=iexternals
10462− (turn externals |=(e=[module=term name=term result=*] [module.e name.e (reader-result-for-checker result.e)]))
10463− =/ mx=imark-externals
10464− (turn mark-externals |=(e=[mark=term result=*] [mark.e (reader-result-for-checker result.e)]))
10465− (golden-types-with-marks file src ex mx)
10466−::
10467−++ golden-types-with-marks
10468− |= [file=path src=@t externals=iexternals mark-externals=imark-externals]
10469− ^- @t
10470− (golden-types-in-context file src externals mark-externals ~ ~ ~ ~)
10471−::
10472−++ golden-types-in-context
10473− |= [file=path src=@t externals=iexternals mark-externals=imark-externals jimports=ijimports prelude-values=(list term) reserved-molds=(list term) prelude=(unit ifile)]
10474− ^- @t
10475− =. reserved-molds (weld reserved-molds (turn jimports |=(j=[face=term interface=ifile] face.j)))
104765336 =/ parsed (parse file src)
104775337 ?: ?=(%| -.parsed) (show-error src p.parsed)
10478− =/ duplicate=(unit idiag) (duplicate-defs defs.p.parsed)
10479− ?^ duplicate (duplicate-fields-report file src u.duplicate)
10480− ?: (module-has-reserved-proj p.parsed)
10481− 'module has reserved proj name'
104825338 =/ ds=(list def) defs.p.parsed
104835339 =/ molds=imolds (collect-simple-molds ds)
10484− =/ globals=(list term) (weld prelude-values (weld (turn jimports |=(j=[face=term interface=ifile] face.j)) (global-value-names ds)))
5340+ =/ globals=(list term) (global-value-names ds)
104855341 =/ surs=(list term) (collect-sur-imports imports.p.parsed)
10486− =/ marks=(list term) (collect-mark-imports imports.p.parsed)
10487− =/ resolution=iresolved (resolve-groups ds molds globals externals surs mark-externals marks jimports reserved-molds file prelude)
10488− =/ cycles=(list icycle) (definite-value-cycles ds globals)
10489− =/ env=ienv env.resolution
5342+ =/ env=ienv (resolve-supported-defs ds molds globals externals surs)
104905343 =/ lines=(list @t) ~
104915344 |-
104925345 ?~ ds (of-wain:format ['partial inference; module not checked' (flop lines)])
104935346 =/ d=def i.ds
104945347 ?: ?=(%mold -.d)
10495− $(ds t.ds, lines [(show-partial-mold file src d molds) lines])
5348+ $(ds t.ds, lines [(show-partial-mold d molds) lines])
104965349 ?. (unique-value-name name.d globals)
104975350 $(ds t.ds, lines [(crip "++ {(trip name.d)}: name already in scope") lines])
10498− =/ cycle=(list icycle) (skim cycles |=(c=icycle =(name.c name.d)))
10499− ?^ cycle
10500− =/ diag=idiag ["non-gate value depends on itself through a cycle" ~[[first.i.cycle "value in cycle"] [next.i.cycle "dependency in cycle"]]]
10501− $(ds t.ds, lines [(show-inference-diagnostic file src name.d diag) lines])
10502− ?: (lien grouped.resolution |=(n=term =(n name.d)))
10503− =/ found=(unit ischeme) (ienv-lookup name.d env)
10504− ?~ found $(ds t.ds, lines [(crip "++ {(trip name.d)}: recursive group unavailable") lines])
10505− =/ typ=itype (canonical-itype typ.u.found vars.u.found)
10506− =/ line=@t (crip "++ {(trip name.d)}: {(show-itype typ ~)}{(show-atom-constraint typ)}")
10507− $(ds t.ds, lines [line lines])
10508− =/ top=(list term) (turn molds |=(m=[name=term body=shape] name.m))
10509− =/ initial=istate [0 ~ ~ ~ molds globals externals surs mark-externals marks jimports reserved-molds ~ ~ ~ | file top prelude ~ 256 ~]
10510− =. initial (reserve-def-caps val.d initial)
10511− =/ result=iresult
10512− ?: |(?=(%gate -.val.d) ?=(%gate-wide -.val.d))
10513− (infer-recursive-gate d env initial)
10514− (infer-fragment val.d env initial)
5351+ =/ result=iresult (infer-fragment val.d env [0 ~ ~ molds globals externals surs ~ |])
105155352 ?: ?=(%| -.result)
10516− $(ds t.ds, lines [(show-inference-diagnostic file src name.d p.result) lines])
10517− =. state.p.result (default-hole-numbers holes.state.p.result holes.initial state.p.result env !(itype-has-gate (itype-normalize typ.p.result sub.state.p.result)))
10518− =/ hole=(unit idiag) (unresolved-hole holes.state.p.result holes.initial state.p.result)
10519− ?^ hole
10520− $(ds t.ds, lines [(show-inference-diagnostic file src name.d u.hole) lines])
10521− =/ merged=(unit [first=icap second=icap])
10522− (merged-capitals caps.state.p.result sub.state.p.result)
10523− ?^ merged
10524− =/ diag=idiag
10525− ["distinct type variables `{(trip name.first.u.merged)}` and `{(trip name.second.u.merged)}` must not be forced equal; use the same capital for a shared type" ~[[at.first.u.merged "first type variable"] [at.second.u.merged "second type variable"]]]
10526− $(ds t.ds, lines [(show-inference-diagnostic file src name.d diag) lines])
5353+ $(ds t.ds, lines [(crip "++ {(trip name.d)}: {p.result}") lines])
105275354 ?: (constrained-capitals caps.state.p.result sub.state.p.result)
105285355 $(ds t.ds, lines [(crip "++ {(trip name.d)}: explicit capital constraints are not supported by partial inference") lines])
10529− =/ typ=itype (default-decimals (itype-normalize typ.p.result sub.state.p.result))
10530− ?: (pending-null tags.state.p.result sub.state.p.result)
10531− $(ds t.ds, lines [(crip "++ {(trip name.d)}: `~` needs context in partial inference") lines])
10532− ?: |((pending-tags tags.state.p.result sub.state.p.result) (itype-has-tag typ))
10533− $(ds t.ds, lines [(crip "++ {(trip name.d)}: tag needs context in partial inference") lines])
10534− ?: (itype-has-hidden-recursive typ)
10535− $(ds t.ds, lines [(crip "++ {(trip name.d)}: recursive mold name is not available in this scope") lines])
10536− ?: (itype-has-hidden-generic typ)
10537− $(ds t.ds, lines [(crip "++ {(trip name.d)}: generic union name is not available in this scope") lines])
10538− ?: (unsupported-atom-vars typ caps.state.p.result binders.state.p.result sub.state.p.result)
5356+ =/ typ=itype (itype-normalize typ.p.result sub.state.p.result)
5357+ ?: (itype-has-avar typ)
105395358 $(ds t.ds, lines [(crip "++ {(trip name.d)}: unresolved aura-variable inference") lines])
105405359 =/ vars=(list @ud) (unique-type-vars (itype-vars typ))
105415360 ?: (gth (lent vars) 26)
105425361 $(ds t.ds, lines [(crip "++ {(trip name.d)}: too many variables for partial printer") lines])
10543− ?~ (width-finalize projections.state.p.result sub.state.p.result vars)
10544− $(ds t.ds, lines [(crip "++ {(trip name.d)}: record projection elaboration needs unsupported inference") lines])
105455362 =/ printable=itype (canonical-itype typ vars)
10546− =/ line=@t (crip "++ {(trip name.d)}: {(show-itype printable ~)}{(show-atom-constraint printable)}")
5363+ =/ line=@t (crip "++ {(trip name.d)}: {(show-itype printable ~)}")
105475364 $(ds t.ds, lines [line lines])
105485365--
jibb-dev/lib/jibb/internal.jibbdeleted−16
@@ -1,16 +0,0 @@
1−/= core /lib/jibb/primitives
2−
3−:: Representation for agent and in-process store pokes.
4−:: The prelude re-exports this mold; effect lowering and the runtime must
5−:: agree on these cells when effect execution is implemented.
6−+$ poke
7− [%agent agent=@tas mark=@tas payload=*]
8− [%store module=@t action=@tas payload=*]
9−
10−:: The compiler supplies this private interface; execution is not yet implemented.
11−++ gth-atom |= args=[A A] (raw-gth.core args)
12−
13−:: Application paths are knot sequences.
14−+$ qath
15− ~
16− [i=@ta t=qath]
jibb-dev/lib/jibb/prelude.jibb+5−282
@@ -1,9 +1,4 @@
1−/= internal /lib/jibb/internal
2−+$ poke poke.internal
3−+$ qath qath.internal
4−
51:: Initial prelude functions. The rest of the inventory is still to come.
6−
72++ same |= x=A x
83
94++ head |= p=[A B]
@@ -42,285 +37,13 @@
4237++ weld |= args=[(list A) (list A)]
4338 ?- args
4439 [xs ys]
45− ^- (list A)
46− ?- xs
47− ~ ys
48− [item rest] [item (weld rest ys)]
40+ ?- xs
41+ ~ ys
42+ [item rest] [item (weld rest ys)]
4943
5044++ turn |= args=[(list A) $-(A B)]
5145 ?- args
5246 [xs f]
53− ^- (list B)
54− ?- xs
55− ~ ~
56− [item rest] [(f item) (turn rest f)]
57−
58−+$ dime [p=@ta q=@]
59−
60−+$ hair [p=@ud q=@ud]
61−
62−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
63−
64−+$ coin
65− [%$ p=dime]
66− [%blob p=*]
67− [%many p=(list coin)]
68−
69−+$ pair |$ [A B] [p=A q=B]
70−
71−+$ trel |$ [A B C] [p=A q=B r=C]
72−
73−+$ qual |$ [A B C D] [p=A q=B r=C s=D]
74−
75−+$ cord @t
76−
77−+$ knot @ta
78−
79−+$ tape (list @tD)
80−
81−+$ path (list knot)
82−
83−+$ tank
84− cord
85− [%leaf p=tape]
86− [%palm p=(qual tape tape tape tape) q=(list tank)]
87− [%rose p=(trel tape tape tape) q=(list tank)]
88−
89−+$ nail [p=hair q=tape]
90−
91−+$ edge [p=hair q=(unit [p=* q=nail])]
92−
93−+$ rule $-(nail edge)
94−
95−+$ spot [p=path q=pint]
96−
97−+$ toon
98− [%0 p=*]
99− [%1 p=*]
100− [%2 p=(list tank)]
101−
102−+$ like |$ [A] [p=hair q=(unit [p=A q=nail])]
103−
104−++ wonk |= veq=(like A)
105− ?- q.veq
106− ~ !!
107− [~ product] p.product
108−
109−+$ lone |$ [A] [p=A]
110−
111−+$ lest |$ [A] [i=A t=(list A)]
112−
113−+$ pole |$ [A]
114− ~
115− [A (pole A)]
116−
117−+$ quip |$ [A B] [(list A) B]
118−
119−+$ tree |$ [A]
120− ~
121− [n=A l=(tree A) r=(tree A)]
122−
123−+$ each |$ [A B]
124− [%| p=B]
125− [%& p=A]
126−
127−+$ bloq @
128−
129−++ some |= item=A `item
130−
131−++ lure |= item=A
132− ^- (list A) [item ~]
133−
134−++ snoc |= args=[(list A) A]
135− ?- args
136− [xs item] (weld xs [item ~])
137−
138−++ flop |= xs=(list A)
139− ++ reverse-into |= args=[(list A) (list A)]
140− ?- args
141− [rest acc]
142− ?- rest
143− ~ acc
144− [item more] (reverse-into more [item acc])
145− (reverse-into xs ~)
146−
147−++ drop |= maybe=(unit A)
148− ^- (list A)
149− ?- maybe
150− ~ ~
151− [~ value] [value ~]
152−
153−++ bond |= fallback=$-(~ A)
154− |= maybe=(unit A)
155− ?- maybe
156− ~ (fallback ~)
157− [~ value] value
158−
159−++ bind |= args=[(unit A) $-(A B)]
160− ?- args
161− [maybe f] ^- (unit B)
162− ?- maybe
163− ~ ~
164− [~ value] `(f value)
165−
166−++ biff |= args=[(unit A) $-(A (unit B))]
167− ?- args
168− [maybe f] ^- (unit B)
169− ?- maybe
170− ~ ~
171− [~ value] (f value)
172−
173−++ both |= args=[(unit A) (unit B)]
174− ?- args
175− [first second] ^- (unit [A B])
176− ?- first
177− ~ ~
178− [~ a]
179− ?- second
180− ~ ~
181− [~ b] `[a b]
182−
183−++ clap |= args=[(unit A) (unit A) $-([A A] A)]
184− ?- args
185− [first second combine] ^- (unit A)
186− ?- first
187− ~ second
188− [~ a]
189− ?- second
190− ~ first
191− [~ b] `(combine a b)
192−
193−++ clef |= args=[(unit A) (unit B) $-([A B] (unit C))]
194− ?- args
195− [first second combine] ^- (unit C)
196− ?- first
197− ~ ~
198− [~ a]
199− ?- second
200− ~ ~
201− [~ b] (combine a b)
202−
203−++ skim |= args=[(list A) $-(A ?)]
204− ?- args
205− [xs predicate] ^- (list A)
206− ?- xs
207− ~ ~
208− [item rest]
209− ?- (predicate item)
210− %.y [item (skim rest predicate)]
211− %.n (skim rest predicate)
212−
213−++ skip |= args=[(list A) $-(A ?)]
214− ?- args
215− [xs predicate] ^- (list A)
216− ?- xs
217− ~ ~
218− [item rest]
219− ?- (predicate item)
220− %.y (skip rest predicate)
221− %.n [item (skip rest predicate)]
222−
223−++ levy |= args=[(list A) $-(A ?)]
224− ^- ?
225− ?- args
226− [xs predicate]
227− ?- xs
228− ~ %.y
229− [item rest]
230− ?- (predicate item)
231− %.y (levy rest predicate)
232− %.n %.n
233−
234−++ lien |= args=[(list A) $-(A ?)]
235− ^- ?
236− ?- args
237− [xs predicate]
238− ?- xs
239− ~ %.n
240− [item rest]
241− ?- (predicate item)
242− %.y %.y
243− %.n (lien rest predicate)
244−
245−++ roll |= args=[(list A) B $-([A B] B)]
246− ?- args
247− [xs start combine]
24847 ?- xs
249− ~ start
250− [item rest] (roll rest (combine item start) combine)
251−
252−++ reel |= args=[(list A) B $-([A B] B)]
253− ?- args
254− [xs start combine]
255− ?- xs
256− ~ start
257− [item rest] (combine item (reel rest start combine))
258−
259−++ flit |= predicate=$-(A ?)
260− |= value=A
261− ^- (unit A)
262− ?- (predicate value)
263− %.y `value
264− %.n ~
265−
266−++ murn |= args=[(list A) $-(A (unit B))]
267− ?- args
268− [xs f] ^- (list B)
269− ?- xs
270− ~ ~
271− [item rest]
272− ?- (f item)
273− ~ (murn rest f)
274− [~ value] [value (murn rest f)]
275−
276−++ join |= args=[A (list A)]
277− ?- args
278− [separator xs] ^- (list A)
279− ?- xs
280− ~ ~
281− [item rest]
282− ?- rest
283− ~ [item ~]
284− [next more] [item [separator (join separator rest)]]
285−
286−++ snip |= xs=(list A)
287− ^- (list A)
288− ?- xs
289− ~ ~
290− [item rest]
291− ?- rest
292− ~ ~
293− [next more] [item (snip rest)]
294−
295−++ rear |= xs=(list A)
296− ?- xs
297− ~ !!
298− [item rest]
299− ?- rest
300− ~ item
301− [next more] (rear rest)
302−
303−++ cork |= gates=[$-(A B) $-(B C)]
304− ?- gates
305− [f g] |= x=A (g (f x))
306−
307−++ corl |= gates=[$-(B C) $-(A B)]
308− ?- gates
309− [f g] |= x=A (f (g x))
310−
311−++ cury |= args=[$-([A B] C) A]
312− ?- args
313− [f a] |= b=B (f a b)
314−
315−++ curr |= args=[$-([A B] C) B]
316− ?- args
317− [f b] |= a=A (f a b)
318−
319−+$ cmd |$ [M]
320− [%poke p=poke reply=$-((unit @t) M)]
321− [%go url=@t]
322− [%wait gap=@dr msg=M]
323− [%now reply=$-(@da M)]
324− [%who reply=$-(@p M)]
325−
326−++ gth |= args=[A A] (gth-atom.internal args)
48+ ~ ~
49+ [item rest] [(f item) (turn rest f)]
my-app/mar/label.hoondeleted−6
@@ -1,6 +0,0 @@
1−:: Fixture for the Hoon mark importer; not supplied by the design doc.
2−|_ a=@t
3−++ grab |% ++ noun @t --
4−++ grow |% ++ noun a --
5−++ grad %noun
6−--
my-app/sur/blog.hoon+1−3
@@ -1,6 +1,4 @@
11:: Fixture for the documented examples; not supplied by the design doc.
22|%
3−+$ title @t
4−+$ post [title=title slug=@ta]
5−+$ chain $@(~ [value=@ud next=chain])
3++$ post [title=@t slug=@ta]
64--
my-app/sur/import-fixture.hoondeleted−7
@@ -1,7 +0,0 @@
1−/- blog
2−:: Fixture for the Hoon importer; not supplied by the design doc.
3−|%
4−+$ sample [title=title:blog values=(list @ud)]
5−+$ recursive chain:blog
6−+$ nested [id=@ud value=$^(@ud [a=@ud b=@t])]
7−--
tests/clay-fixtures/bridge-expected.txtdeleted−1
@@ -1 +0,0 @@
1−'partial inference; module not checked\0a++ identity: $-(@t @t)'
tests/clay-fixtures/bridge.txtdeleted−14
@@ -1,14 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ blog=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/blog/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ jibb=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb/hoon)
7−=/ bc=type -.blog
8−=/ title-typ=type (~(play ut bc) (ream '*title'))
9−=/ read-gate=vase (slap reader (ream 'read-mold-in'))
10−=/ title-result=vase (slym read-gate [%blog %title title-typ bc])
11−=/ title=* +.title-result
12−=/ check-gate=vase (slap jibb (ream 'golden-types-imports'))
13−=/ src=@t '/- blog\0a++ identity |= x=title.blog x\0a'
14−(pure:m (slym check-gate [/ui/test/jibb src ~[[%blog %title title]]]))
tests/clay-fixtures/ford-expected.txtdeleted−1
@@ -1 +0,0 @@
1−[%.y %.y %.y %.y %.y]
tests/clay-fixtures/ford-import-expected.txtdeleted−1
@@ -1 +0,0 @@
1−"[title=@t values=(list @ud)]"
tests/clay-fixtures/ford-import.txtdeleted−12
@@ -1,12 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ src=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/import-fixture/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ cor=type -.src
7−=/ typ=type (~(play ut cor) (ream '*sample'))
8−=/ read-gate=vase (slap reader (ream 'read-mold-in'))
9−=/ got=vase (slym read-gate [%import-fixture %sample typ cor])
10−=/ show-gate=vase (slap reader (ream 'show-result'))
11−=/ result=vase (slym show-gate +.got)
12−(pure:m result)
tests/clay-fixtures/ford-nested-union-bridge-expected.txtdeleted−1
@@ -1 +0,0 @@
1−'partial inference; module not checked\0a++ value: $-([id=@ud value=([a=@ud b=@t] @ud)] ([a=@ud b=@t] @ud))\0a++ values: $-([title=@t values=(list @ud)] (list @ud))\0a++ chain: $-(chain.blog chain.blog)'
tests/clay-fixtures/ford-nested-union-bridge.txtdeleted−14
@@ -1,14 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ src=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/import-fixture/hoon)
5−=/ blog=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/blog/hoon)
6−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
7−=/ jibb=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb/hoon)
8−=/ read-gate=vase (slap reader (ream 'read-named'))
9−=/ result=vase (slym read-gate [%import-fixture %nested -.src])
10−=/ sample-result=vase (slym read-gate [%import-fixture %sample -.src])
11−=/ chain-result=vase (slym read-gate [%blog %chain -.blog])
12−=/ check-gate=vase (slap jibb (ream 'golden-types-imports'))
13−=/ text=@t '/- import-fixture\0a/- blog\0a++ value |= x=nested.import-fixture value.x\0a++ values |= x=sample.import-fixture values.x\0a++ chain |= x=chain.blog x\0a'
14−(pure:m (slym check-gate [/ui/test/jibb text ~[[%import-fixture %nested +.result] [%import-fixture %sample +.sample-result] [%blog %chain +.chain-result]]]))
tests/clay-fixtures/ford-nested-union-expected.txtdeleted−1
@@ -1 +0,0 @@
1−"[id=@ud value=(union [a=@ud b=@t] @ud)]"
tests/clay-fixtures/ford-nested-union.txtdeleted−9
@@ -1,9 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ src=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/import-fixture/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ read-gate=vase (slap reader (ream 'read-named'))
7−=/ got=vase (slym read-gate [%import-fixture %nested -.src])
8−=/ show-gate=vase (slap reader (ream 'show-result'))
9−(pure:m (slym show-gate +.got))
tests/clay-fixtures/ford-recursive-expected.txtdeleted−1
@@ -1 +0,0 @@
1−"(union [value=@ud next=chain.blog] @n:0)"
tests/clay-fixtures/ford-recursive.txtdeleted−9
@@ -1,9 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ src=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/import-fixture/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ read-gate=vase (slap reader (ream 'read-named'))
7−=/ got=vase (slym read-gate [%import-fixture %recursive -.src])
8−=/ show-gate=vase (slap reader (ream 'show-result'))
9−(pure:m (slym show-gate +.got))
tests/clay-fixtures/ford.txtdeleted−13
@@ -1,13 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ src=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/import-fixture/hoon)
5−=/ cor=type -.src
6−?. ?=([%core *] cor) (pure:m !>('not a core'))
7−=/ subject=type q.q.cor
8−=/ cell=? ?=([%cell *] subject)
9−=/ face=? ?=([%cell [%face %blog *] *] subject)
10−=/ core=? ?=([%cell [%face %blog [%core *]] *] subject)
11−=/ tail=? ?:(?=([%cell *] subject) =(q.subject -:!>(..zuse)) |)
12−=/ payload=? =(p.cor subject)
13−(pure:m !>([cell face core tail payload]))
tests/clay-fixtures/import-expected.txtdeleted−5
@@ -1,5 +0,0 @@
1−[ '[id=@ud [done=(union @f:0 @f:1) text=@t]]'
2− '(union [add text=@t] [toggle id=@ud])'
3− '[title=@t slug=@ta]'
4− '@t'
5−]
tests/clay-fixtures/import.txtdeleted−13
@@ -1,13 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−@@READER@@
4−=/ now=@da now.bowl
5−=/ todo=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/todo/hoon)
6−=/ blog=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/blog/hoon)
7−=/ tc=type -.todo
8−=/ bc=type -.blog
9−=/ item (read-mold-in:reader %todo %item (~(play ut tc) (ream '*item')) tc)
10−=/ action (read-mold-in:reader %todo %action (~(play ut tc) (ream '*action')) tc)
11−=/ post (read-mold-in:reader %blog %post (~(play ut bc) (ream '*post')) bc)
12−=/ title (read-mold-in:reader %blog %title (~(play ut bc) (ream '*title')) bc)
13−(pure:m !>([(crip (show-result:reader item)) (crip (show-result:reader action)) (crip (show-result:reader post)) (crip (show-result:reader title))]))
tests/clay-fixtures/mark-bridge-expected.txtdeleted−1
@@ -1 +0,0 @@
1−'partial inference; module not checked\0a++ identity: $-(@t @t)'
tests/clay-fixtures/mark-bridge.txtdeleted−11
@@ -1,11 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ mark=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/mar/label/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ jibb=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb/hoon)
7−=/ read-gate=vase (slap reader (ream 'read-mark'))
8−=/ label-result=vase (slym read-gate [%label -.mark])
9−=/ check-gate=vase (slap jibb (ream 'golden-types-with-marks'))
10−=/ src=@t '/% %label\0a++ identity |= x=label x\0a'
11−(pure:m (slym check-gate [/ui/test/jibb src ~ ~[[%label +.label-result]]]))
tests/clay-fixtures/mark-import-expected.txtdeleted−1
@@ -1 +0,0 @@
1−"(union [add text=@t] [toggle id=@ud])"
tests/clay-fixtures/mark-import.txtdeleted−9
@@ -1,9 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ mark=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/mar/todo-action/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ read-gate=vase (slap reader (ream 'read-mark'))
7−=/ got=vase (slym read-gate [%todo-action -.mark])
8−=/ show-gate=vase (slap reader (ream 'show-result'))
9−(pure:m (slym show-gate +.got))
tests/clay-fixtures/mark-shape-expected.txtdeleted−1
@@ -1 +0,0 @@
1−[%.y %.y %.y %.y]
tests/clay-fixtures/mark-shape.txtdeleted−14
@@ -1,14 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ mark=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/mar/todo-action/hoon)
5−=/ cor=type -.mark
6−?. ?=([%core *] cor) (pure:m !>('not a core'))
7−=/ payload=type p.cor
8−?. ?=([%cell *] payload) (pure:m !>('payload is not a cell'))
9−=/ tail=type q.payload
10−=/ face=? ?=([%face %a *] p.payload)
11−=/ same=? =(payload q.q.cor)
12−=/ imported=? ?=([%cell [%face %todo [%core *]] *] tail)
13−=/ zuse=? ?:(?=([%cell *] tail) =(q.tail -:!>(..zuse)) |)
14−(pure:m !>([face same imported zuse]))
tests/clay-fixtures/mark-update-import-expected.txtdeleted−1
@@ -1 +0,0 @@
1−"(union [added item=[id=@ud [done=(union @f:0 @f:1) text=@t]]] [toggled id=@ud])"
tests/clay-fixtures/mark-update-import.txtdeleted−9
@@ -1,9 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ mark=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/mar/todo-update/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ read-gate=vase (slap reader (ream 'read-mark'))
7−=/ got=vase (slym read-gate [%todo-update -.mark])
8−=/ show-gate=vase (slap reader (ream 'show-result'))
9−(pure:m (slym show-gate +.got))
tests/clay-fixtures/record-bridge-expected.txtdeleted−1
@@ -1 +0,0 @@
1−'partial inference; module not checked\0a++ title: $-([title=@t slug=@ta] @t)'
tests/clay-fixtures/record-bridge.txtdeleted−11
@@ -1,11 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ blog=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/blog/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ jibb=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb/hoon)
7−=/ read-gate=vase (slap reader (ream 'read-named'))
8−=/ post-result=vase (slym read-gate [%blog %post -.blog])
9−=/ check-gate=vase (slap jibb (ream 'golden-types-imports'))
10−=/ src=@t '/- blog\0a++ title |= x=post.blog title.x\0a'
11−(pure:m (slym check-gate [/ui/test/jibb src ~[[%blog %post +.post-result]]]))
tests/clay-fixtures/tlon-mop-expected.txtdeleted−1
@@ -1 +0,0 @@
1−[%.y %.y %.y]
tests/clay-fixtures/tlon-mop.txtdeleted−20
@@ -1,20 +0,0 @@
1−=/ m (strand ,vase)
2−;< =bowl:spider bind:m get-bowl
3−=/ now=@da now.bowl
4−=/ src=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/sur/mop-tlon-probe/hoon)
5−=/ reader=vase .^(vase %ca /[(scot %p our.bowl)]/my-app/[(scot %da now)]/lib/jibb-import/hoon)
6−=/ read-gate=vase (slap reader (ream 'read-named'))
7−=/ result=vase (slym read-gate [%notes %log -.src])
8−=/ recursive=vase (slym read-gate [%notes %import-node -.src])
9−=/ nested=vase (slym read-gate [%notes %a-notebook -.src])
10−=/ contains-ref
11− |= node=*
12− ?: =(node [%ref %notes %import-node]) &
13− ?@ node |
14− |($(node -.node) $(node +.node))
15−=/ contains-named
16− |= node=*
17− ?: ?=([%named %notes %import-node [%fork *]] node) (contains-ref node)
18− ?@ node |
19− |($(node -.node) $(node +.node))
20−(pure:m !>([?=([%& [%apply %mop [[%atom %da ~] [%fork *] ~]]] +.result) &(?=([%& [%fork *]] +.recursive) (contains-ref +.recursive)) &(?=([%& [%fork *]] +.nested) (contains-named +.nested))]))
tests/golden/doc-grammar-04-step/about.txt−1
@@ -1,4 +1,3 @@
11source: Grammar tab, section "Patterns", code block 4 of the tab
22tests: a union `+$ step` with one case per deeper line: cells with tags at the head, in the middle and at the end, faced fields, and a bare term; a blank line between definitions; a `?-` whose arms are cell patterns mixing tags and binding names, and a bare term, with their expressions aligned by extra spaces; interpolated strings and a name as arm expressions
33expect: parses
4−expect-types: a partial inference report
tests/golden/doc-grammar-04-step/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# no module fixtures
tests/golden/doc-grammar-04-step/source.jibb+1−1
@@ -10,5 +10,5 @@
1010 [%move %left n] "left {n}"
1111 [%move %right n] "right {n}"
1212 [t %draft] t
13− [t %sent sent-at] t
13+ [t %sent at] t
1414 %stop "stop"
tests/golden/doc-grammar-04-step/tokens.txt+2−2
@@ -74,8 +74,8 @@
747413:5 glyph [
757513:6 tight name t
767613:8 lit %sent
77−13:14 name sent-at
78−13:21 tight glyph ]
77+13:14 name at
78+13:16 tight glyph ]
797913:23 name t
808014:5 NEWLINE
818114:5 lit %stop
tests/golden/doc-grammar-04-step/tree.txt+1−1
@@ -33,6 +33,6 @@
3333 (cell 12:5 (bind 12:6 t) (lit 12:8 %draft))
3434 (wing 12:23 t))
3535 (arm 13:5
36− (cell 13:5 (bind 13:6 t) (lit 13:8 %sent) (bind 13:14 sent-at))
36+ (cell 13:5 (bind 13:6 t) (lit 13:8 %sent) (bind 13:14 at))
3737 (wing 13:23 t))
3838 (arm 14:5 (lit 14:5 %stop) (str 14:23 "stop")))))))
tests/golden/doc-grammar-04-step/types.txtdeleted−3
@@ -1,3 +0,0 @@
1−partial inference; module not checked
2−+$ step: cases proven disjoint; mold not checked
3−++ describe: $-(step @t)
tests/golden/doc-grammar-06-cart-store/about.txt−1
@@ -1,4 +1,3 @@
11source: Grammar tab, section "Example: a store and an island", code block 6 of the tab (block 5 is the EBNF)
22tests: a store module: a record mold with a mold application and the loobean mold `?`; a union with its cases below; a mold that is a name; a blank line; `++ main (store init update)`; a cast with its mold and expression on one line, `^- state [~ %.n]`; a gate with a cell sample; `?-` arms whose expressions are changes, `s(items=[item items.s])` and `s(open=(not open.s))`
33expect: parses
4−expect-types: a partial inference report; store kind and declaration scope remain unresolved
tests/golden/doc-grammar-06-cart-store/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# no module fixtures
tests/golden/doc-grammar-06-cart-store/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module kind or scope needs unsupported inference
tests/golden/inline-mold-opaque/about.txt+2−2
@@ -1,3 +1,3 @@
1−source: Grammar tab, Molds: "`poke`, `ask` and `qath` are transparent types, defined in the internal prelude and re-exported normally; callers can construct and inspect their values."
2−tests: the effect and application-path types by name
1+source: Grammar tab, Molds: "Opaque: `poke`, `ask` and `qath`, built only by derived gates, `pure` and application-path literals."
2+tests: the opaque molds by name
33expect: parses
tests/golden/module-cache-dag/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module and import cycles are errors.
2−tests: A shared acyclic graph imports each library twice under distinct faces; the reachable identity still infers.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-cache-dag/module-trees.txtdeleted−46
@@ -1,46 +0,0 @@
1−/ui/n0.jibb
2−(module
3− (jibb 1:1 left /ui/n1)
4− (jibb 2:1 right /ui/n1)
5− (value 3:1 id
6− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
7−/ui/n1.jibb
8−(module
9− (jibb 1:1 left /ui/n2)
10− (jibb 2:1 right /ui/n2)
11− (value 3:1 id
12− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
13−/ui/n2.jibb
14−(module
15− (jibb 1:1 left /ui/n3)
16− (jibb 2:1 right /ui/n3)
17− (value 3:1 id
18− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
19−/ui/n3.jibb
20−(module
21− (jibb 1:1 left /ui/n4)
22− (jibb 2:1 right /ui/n4)
23− (value 3:1 id
24− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
25−/ui/n4.jibb
26−(module
27− (jibb 1:1 left /ui/n5)
28− (jibb 2:1 right /ui/n5)
29− (value 3:1 id
30− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
31−/ui/n5.jibb
32−(module
33− (jibb 1:1 left /ui/n6)
34− (jibb 2:1 right /ui/n6)
35− (value 3:1 id
36− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
37−/ui/n6.jibb
38−(module
39− (jibb 1:1 left /ui/n7)
40− (jibb 2:1 right /ui/n7)
41− (value 3:1 id
42− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
43−/ui/n7.jibb
44−(module
45− (value 1:1 id
46− (gate-wide 1:7 (bind 1:10 x) (wing 1:12 x))))
tests/golden/module-cache-dag/modules.txtdeleted−8
@@ -1,8 +0,0 @@
1−/ui/n0.jibb
2−/ui/n1.jibb
3−/ui/n2.jibb
4−/ui/n3.jibb
5−/ui/n4.jibb
6−/ui/n5.jibb
7−/ui/n6.jibb
8−/ui/n7.jibb
tests/golden/module-cache-dag/modules/ui/n0.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n1
2−/= right /ui/n1
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n1.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n2
2−/= right /ui/n2
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n2.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n3
2−/= right /ui/n3
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n3.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n4
2−/= right /ui/n4
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n4.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n5
2−/= right /ui/n5
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n5.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n6
2−/= right /ui/n6
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n6.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= left /ui/n7
2−/= right /ui/n7
3−++ id |=(x x)
tests/golden/module-cache-dag/modules/ui/n7.jibbdeleted−1
@@ -1 +0,0 @@
1−++ id |=(x x)
tests/golden/module-cache-dag/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= a /ui/n0
2−++ value (id.a "hi")
tests/golden/module-cache-dag/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name a
3−1:7 glyph /
4−1:8 tight knot ui
5−1:10 tight glyph /
6−1:11 tight knot n0
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name value
10−2:10 glyph (
11−2:11 tight wing id.a
12−2:16 str "hi"
13−2:20 tight glyph )
14−2:21 NEWLINE
tests/golden/module-cache-dag/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 a /ui/n0)
3− (value 2:1 value
4− (group 2:10
5− (call 2:11 (wing 2:11 id.a) (str 2:16 "hi")))))
tests/golden/module-cache-dag/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ value: @t
tests/golden/module-cache-faces/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "Everything is exported and read through the import's face"; Imports: "Import cycles are errors".
2−tests: The same library reached under two faces has independently instantiated identity schemes.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-cache-faces/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/shared.jibb
2−(module
3− (value 1:1 id
4− (gate-wide 1:7 (bind 1:10 x) (wing 1:12 x))))
tests/golden/module-cache-faces/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/shared.jibb
tests/golden/module-cache-faces/modules/ui/shared.jibbdeleted−1
@@ -1 +0,0 @@
1−++ id |=(x x)
tests/golden/module-cache-faces/source.jibbdeleted−4
@@ -1,4 +0,0 @@
1−/= first /ui/shared
2−/= second /ui/shared
3−++ ship (id.first ~zod)
4−++ text-value (id.second "hi")
tests/golden/module-cache-faces/tokens.txtdeleted−28
@@ -1,28 +0,0 @@
1−1:1 glyph /=
2−1:5 name first
3−1:11 glyph /
4−1:12 tight knot ui
5−1:14 tight glyph /
6−1:15 tight knot shared
7−2:1 NEWLINE
8−2:1 glyph /=
9−2:5 name second
10−2:12 glyph /
11−2:13 tight knot ui
12−2:15 tight glyph /
13−2:16 tight knot shared
14−3:1 NEWLINE
15−3:1 glyph ++
16−3:4 name ship
17−3:9 glyph (
18−3:10 tight wing id.first
19−3:19 lit ~zod
20−3:23 tight glyph )
21−4:1 NEWLINE
22−4:1 glyph ++
23−4:4 name text-value
24−4:15 glyph (
25−4:16 tight wing id.second
26−4:26 str "hi"
27−4:30 tight glyph )
28−4:31 NEWLINE
tests/golden/module-cache-faces/tree.txtdeleted−9
@@ -1,9 +0,0 @@
1−(module
2− (jibb 1:1 first /ui/shared)
3− (jibb 2:1 second /ui/shared)
4− (value 3:1 ship
5− (group 3:9
6− (call 3:10 (wing 3:10 id.first) (lit 3:19 ~zod))))
7− (value 4:1 text-value
8− (group 4:15
9− (call 4:16 (wing 4:16 id.second) (str 4:26 "hi")))))
tests/golden/module-cache-faces/types.txtdeleted−3
@@ -1,3 +0,0 @@
1−partial inference; module not checked
2−++ ship: @p
3−++ text-value: @t
tests/golden/module-cache-incomplete/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "Everything is exported and read through the import's face"; Imports: "Import cycles are errors".
2−tests: A shared library with a recursive mold, which partial inference does not yet support, yields no interface even though one value could be inferred.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-cache-incomplete/module-trees.txtdeleted−8
@@ -1,8 +0,0 @@
1−/ui/bad.jibb
2−(module
3− (mold 1:1 recursive
4− (cell 1:14
5− (face 1:15 next (ref 1:20 recursive))
6− (face 1:30 value (aura 1:36 @t))))
7− (value 2:1 id
8− (gate-wide 2:7 (bind 2:10 x) (wing 2:12 x))))
tests/golden/module-cache-incomplete/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/bad.jibb
tests/golden/module-cache-incomplete/modules/ui/bad.jibbdeleted−2
@@ -1,2 +0,0 @@
1−+$ recursive [next=recursive value=@t]
2−++ id |=(x x)
tests/golden/module-cache-incomplete/source.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= first /ui/bad
2−/= second /ui/bad
3−++ result (id.first "hi")
tests/golden/module-cache-incomplete/tokens.txtdeleted−21
@@ -1,21 +0,0 @@
1−1:1 glyph /=
2−1:5 name first
3−1:11 glyph /
4−1:12 tight knot ui
5−1:14 tight glyph /
6−1:15 tight knot bad
7−2:1 NEWLINE
8−2:1 glyph /=
9−2:5 name second
10−2:12 glyph /
11−2:13 tight knot ui
12−2:15 tight glyph /
13−2:16 tight knot bad
14−3:1 NEWLINE
15−3:1 glyph ++
16−3:4 name result
17−3:11 glyph (
18−3:12 tight wing id.first
19−3:21 str "hi"
20−3:25 tight glyph )
21−3:26 NEWLINE
tests/golden/module-cache-incomplete/tree.txtdeleted−6
@@ -1,6 +0,0 @@
1−(module
2− (jibb 1:1 first /ui/bad)
3− (jibb 2:1 second /ui/bad)
4− (value 3:1 result
5− (group 3:11
6− (call 3:12 (wing 3:12 id.first) (str 3:21 "hi")))))
tests/golden/module-cache-incomplete/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module mold needs unsupported inference: /ui/bad/jibb
tests/golden/module-cache-sibling-cycle/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "Everything is exported and read through the import's face"; Imports: "Import cycles are errors".
2−tests: A cycle reached after a previously checked sibling dependency is still reported.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-cache-sibling-cycle/module-trees.txtdeleted−15
@@ -1,15 +0,0 @@
1−/ui/safe.jibb
2−(module
3− (value 1:1 id
4− (gate-wide 1:7 (bind 1:10 x) (wing 1:12 x))))
5−/ui/a.jibb
6−(module
7− (jibb 1:1 shared /ui/safe)
8− (jibb 2:1 next /ui/b)
9− (value 3:1 id
10− (gate-wide 3:7 (bind 3:10 x) (wing 3:12 x))))
11−/ui/b.jibb
12−(module
13− (jibb 1:1 back /ui/a)
14− (value 2:1 id
15− (gate-wide 2:7 (bind 2:10 x) (wing 2:12 x))))
tests/golden/module-cache-sibling-cycle/modules.txtdeleted−3
@@ -1,3 +0,0 @@
1−/ui/safe.jibb
2−/ui/a.jibb
3−/ui/b.jibb
tests/golden/module-cache-sibling-cycle/modules/ui/a.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= shared /ui/safe
2−/= next /ui/b
3−++ id |=(x x)
tests/golden/module-cache-sibling-cycle/modules/ui/b.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= back /ui/a
2−++ id |=(x x)
tests/golden/module-cache-sibling-cycle/modules/ui/safe.jibbdeleted−1
@@ -1 +0,0 @@
1−++ id |=(x x)
tests/golden/module-cache-sibling-cycle/source.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= first /ui/safe
2−/= second /ui/a
3−++ result 1
tests/golden/module-cache-sibling-cycle/tokens.txtdeleted−18
@@ -1,18 +0,0 @@
1−1:1 glyph /=
2−1:5 name first
3−1:11 glyph /
4−1:12 tight knot ui
5−1:14 tight glyph /
6−1:15 tight knot safe
7−2:1 NEWLINE
8−2:1 glyph /=
9−2:5 name second
10−2:12 glyph /
11−2:13 tight knot ui
12−2:15 tight glyph /
13−2:16 tight knot a
14−3:1 NEWLINE
15−3:1 glyph ++
16−3:4 name result
17−3:11 lit 1
18−3:12 NEWLINE
tests/golden/module-cache-sibling-cycle/tree.txtdeleted−4
@@ -1,4 +0,0 @@
1−(module
2− (jibb 1:1 first /ui/safe)
3− (jibb 2:1 second /ui/a)
4− (value 3:1 result (lit 3:11 1)))
tests/golden/module-cache-sibling-cycle/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−import cycle at /ui/a/jibb
tests/golden/module-fixture-eof/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Modules: `+$` takes a mold on its line or its cases on the lines below.
2−tests: The root module parses. The supplied module fixture ends without a newline after `+$ x`; both runners preserve those bytes and report the fixture's missing mold at the same location.
3−expect: parses; the fixture's tree is an error at its end of file
tests/golden/module-fixture-eof/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/incomplete.jibb
2−/ui/incomplete.jibb:1:5: expected a mold, on its line or a deeper one, found the end of the file
3−+$ x
4− ^
tests/golden/module-fixture-eof/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/incomplete.jibb
tests/golden/module-fixture-eof/modules/ui/incomplete.jibbdeleted−1
@@ -1 +0,0 @@
1−+$ x
tests/golden/module-fixture-eof/source.jibbdeleted−1
@@ -1 +0,0 @@
1−++ main 1
tests/golden/module-fixture-eof/tokens.txtdeleted−4
@@ -1,4 +0,0 @@
1−1:1 glyph ++
2−1:4 name main
3−1:9 lit 1
4−1:10 NEWLINE
tests/golden/module-fixture-eof/tree.txtdeleted−2
@@ -1,2 +0,0 @@
1−(module
2− (value 1:1 main (lit 1:9 1)))
tests/golden/module-import-atom-scheme/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; type variables are generalized per `++`.
2−tests: An exported atom-constrained gate re-exported by an intermediate module is instantiated independently for @p and @t and rejects a cell.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-atom-scheme/module-trees.txtdeleted−13
@@ -1,13 +0,0 @@
1−/ui/mid.jibb
2−(module
3− (jibb 1:1 base /ui/base)
4− (value 2:1 alias (wing 2:10 keep.base)))
5−/ui/base.jibb
6−(module
7− (value 1:1 keep
8− (gate 1:9
9− (bind 1:12 x)
10− (body 2:3
11− (trace 2:3
12− (cast 2:6 (aura 2:9 @) (wing 2:11 x))
13− (body 3:5 (wing 3:5 x)))))))
tests/golden/module-import-atom-scheme/modules.txtdeleted−2
@@ -1,2 +0,0 @@
1−/ui/mid.jibb
2−/ui/base.jibb
tests/golden/module-import-atom-scheme/modules/ui/base.jibbdeleted−3
@@ -1,3 +0,0 @@
1−++ keep |= x
2− ~& ^- @ x
3− x
tests/golden/module-import-atom-scheme/modules/ui/mid.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= base /ui/base
2−++ alias keep.base
tests/golden/module-import-atom-scheme/source.jibbdeleted−4
@@ -1,4 +0,0 @@
1−/= mid /ui/mid
2−++ ship (alias.mid ~zod)
3−++ text-value (alias.mid "hello")
4−++ bad (alias.mid [~zod "hi"])
tests/golden/module-import-atom-scheme/tokens.txtdeleted−31
@@ -1,31 +0,0 @@
1−1:1 glyph /=
2−1:5 name mid
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot mid
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name ship
10−2:9 glyph (
11−2:10 tight wing alias.mid
12−2:20 lit ~zod
13−2:24 tight glyph )
14−3:1 NEWLINE
15−3:1 glyph ++
16−3:4 name text-value
17−3:15 glyph (
18−3:16 tight wing alias.mid
19−3:26 str "hello"
20−3:33 tight glyph )
21−4:1 NEWLINE
22−4:1 glyph ++
23−4:4 name bad
24−4:8 glyph (
25−4:9 tight wing alias.mid
26−4:19 glyph [
27−4:20 tight lit ~zod
28−4:25 str "hi"
29−4:29 tight glyph ]
30−4:30 tight glyph )
31−4:31 NEWLINE
tests/golden/module-import-atom-scheme/tree.txtdeleted−13
@@ -1,13 +0,0 @@
1−(module
2− (jibb 1:1 mid /ui/mid)
3− (value 2:1 ship
4− (group 2:9
5− (call 2:10 (wing 2:10 alias.mid) (lit 2:20 ~zod))))
6− (value 3:1 text-value
7− (group 3:15
8− (call 3:16 (wing 3:16 alias.mid) (str 3:26 "hello"))))
9− (value 4:1 bad
10− (group 4:8
11− (call 4:9
12− (wing 4:9 alias.mid)
13− (tuple 4:19 (lit 4:20 ~zod) (str 4:25 "hi"))))))
tests/golden/module-import-atom-scheme/types.txtdeleted−10
@@ -1,10 +0,0 @@
1−partial inference; module not checked
2−++ ship: @p
3−++ text-value: @t
4−++ bad: call's sample and argument types do not unify
5−/tests/golden/module-import-atom-scheme/source.jibb:4:9: called gate has type $-(A A) where A is an atom
6−++ bad (alias.mid [~zod "hi"])
7− ^
8−/tests/golden/module-import-atom-scheme/source.jibb:4:19: argument has type [@p @t]
9−++ bad (alias.mid [~zod "hi"])
10− ^
tests/golden/module-import-cycle/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: A cycle between supplied modules is reported without recursing forever.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-cycle/module-trees.txtdeleted−16
@@ -1,16 +0,0 @@
1−/ui/a.jibb
2−(module
3− (jibb 1:1 b /ui/b)
4− (value 2:1 identity
5− (gate-wide 2:13
6− (bind 2:16 x)
7− (group 2:18
8− (call 2:19 (wing 2:19 identity.b) (wing 2:30 x))))))
9−/ui/b.jibb
10−(module
11− (jibb 1:1 a /ui/a)
12− (value 2:1 identity
13− (gate-wide 2:13
14− (bind 2:16 x)
15− (group 2:18
16− (call 2:19 (wing 2:19 identity.a) (wing 2:30 x))))))
tests/golden/module-import-cycle/modules.txtdeleted−2
@@ -1,2 +0,0 @@
1−/ui/a.jibb
2−/ui/b.jibb
tests/golden/module-import-cycle/modules/ui/a.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= b /ui/b
2−++ identity |=(x (identity.b x))
tests/golden/module-import-cycle/modules/ui/b.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= a /ui/a
2−++ identity |=(x (identity.a x))
tests/golden/module-import-cycle/path.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/main.jibb
tests/golden/module-import-cycle/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= a /ui/a
2−++ text (identity.a "hi")
tests/golden/module-import-cycle/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name a
3−1:7 glyph /
4−1:8 tight knot ui
5−1:10 tight glyph /
6−1:11 tight knot a
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name text
10−2:9 glyph (
11−2:10 tight wing identity.a
12−2:21 str "hi"
13−2:25 tight glyph )
14−2:26 NEWLINE
tests/golden/module-import-cycle/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 a /ui/a)
3− (value 2:1 text
4− (group 2:9
5− (call 2:10 (wing 2:10 identity.a) (str 2:21 "hi")))))
tests/golden/module-import-cycle/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−import cycle at /ui/a/jibb
tests/golden/module-import-empty/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: An explicit empty source bundle reports the missing imported module.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-empty/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# no module fixtures
tests/golden/module-import-empty/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= lib /ui/lib
2−++ x (identity.lib "hi")
tests/golden/module-import-empty/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name x
10−2:6 glyph (
11−2:7 tight wing identity.lib
12−2:20 str "hi"
13−2:24 tight glyph )
14−2:25 NEWLINE
tests/golden/module-import-empty/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 x
4− (group 2:6
5− (call 2:7 (wing 2:7 identity.lib) (str 2:20 "hi")))))
tests/golden/module-import-empty/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module source missing: /ui/lib/jibb
tests/golden/module-import-face-shadow/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; type variables are generalized per `++`.
2−tests: A body-local mold cannot shadow an imported module face.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-face-shadow/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (value 1:1 identity
4− (gate-wide 1:13 (bind 1:16 x) (wing 1:18 x))))
tests/golden/module-import-face-shadow/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-face-shadow/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |=(x x)
tests/golden/module-import-face-shadow/source.jibbdeleted−4
@@ -1,4 +0,0 @@
1−/= lib /ui/lib
2−++ f |= x
3− +$ lib @t
4− x
tests/golden/module-import-face-shadow/tokens.txtdeleted−19
@@ -1,19 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name f
10−2:6 glyph |=
11−2:9 name x
12−3:3 INDENT
13−3:3 glyph +$
14−3:6 name lib
15−3:10 aura @t
16−4:3 NEWLINE
17−4:3 name x
18−4:4 DEDENT
19−4:4 NEWLINE
tests/golden/module-import-face-shadow/tree.txtdeleted−8
@@ -1,8 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 f
4− (gate 2:6
5− (bind 2:9 x)
6− (body 3:3
7− (mold 3:3 lib (aura 3:10 @t))
8− (wing 4:3 x)))))
tests/golden/module-import-face-shadow/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ f: local molds shadow a name
tests/golden/module-import-identity/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: An imported identity is instantiated independently for a cord and a ship.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-identity/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (value 1:1 identity
4− (gate-wide 1:13 (bind 1:16 x) (wing 1:18 x))))
tests/golden/module-import-identity/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-identity/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |=(x x)
tests/golden/module-import-identity/source.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= lib /ui/lib
2−++ text (identity.lib "hi")
3−++ ship (identity.lib ~zod)
tests/golden/module-import-identity/tokens.txtdeleted−21
@@ -1,21 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name text
10−2:9 glyph (
11−2:10 tight wing identity.lib
12−2:23 str "hi"
13−2:27 tight glyph )
14−3:1 NEWLINE
15−3:1 glyph ++
16−3:4 name ship
17−3:9 glyph (
18−3:10 tight wing identity.lib
19−3:23 lit ~zod
20−3:27 tight glyph )
21−3:28 NEWLINE
tests/golden/module-import-identity/tree.txtdeleted−8
@@ -1,8 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 text
4− (group 2:9
5− (call 2:10 (wing 2:10 identity.lib) (str 2:23 "hi"))))
6− (value 3:1 ship
7− (group 3:9
8− (call 3:10 (wing 3:10 identity.lib) (lit 3:23 ~zod)))))
tests/golden/module-import-identity/types.txtdeleted−3
@@ -1,3 +0,0 @@
1−partial inference; module not checked
2−++ text: @t
3−++ ship: @p
tests/golden/module-import-invalid/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: A malformed imported module is reported at its logical path.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-invalid/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/lib.jibb
2−/ui/lib.jibb:1:10: expected a mold, on its line or a deeper one, found the end of the file
3−+$ broken
4− ^
tests/golden/module-import-invalid/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-invalid/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−+$ broken
tests/golden/module-import-invalid/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= lib /ui/lib
2−++ x (identity.lib "hi")
tests/golden/module-import-invalid/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name x
10−2:6 glyph (
11−2:7 tight wing identity.lib
12−2:20 str "hi"
13−2:24 tight glyph )
14−2:25 NEWLINE
tests/golden/module-import-invalid/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 x
4− (group 2:6
5− (call 2:7 (wing 2:7 identity.lib) (str 2:20 "hi")))))
tests/golden/module-import-invalid/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module source does not parse: /ui/lib/jibb
tests/golden/module-import-missing-member/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: A missing member of a supplied module is reported.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-missing-member/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (value 1:1 identity
4− (gate-wide 1:13 (bind 1:16 x) (wing 1:18 x))))
tests/golden/module-import-missing-member/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-missing-member/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |=(x x)
tests/golden/module-import-missing-member/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= lib /ui/lib
2−++ x (absent.lib "hi")
tests/golden/module-import-missing-member/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name x
10−2:6 glyph (
11−2:7 tight wing absent.lib
12−2:18 str "hi"
13−2:22 tight glyph )
14−2:23 NEWLINE
tests/golden/module-import-missing-member/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 x
4− (group 2:6
5− (call 2:7 (wing 2:7 absent.lib) (str 2:18 "hi")))))
tests/golden/module-import-missing-member/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ x: module member is not available to partial inference
tests/golden/module-import-mold/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: A simple named mold exported by an imported module is used in a sample.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-mold/module-trees.txtdeleted−3
@@ -1,3 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (mold 1:1 title (aura 1:10 @t)))
tests/golden/module-import-mold/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-mold/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−+$ title @t
tests/golden/module-import-mold/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= lib /ui/lib
2−++ identity |= x=title.lib x
tests/golden/module-import-mold/tokens.txtdeleted−15
@@ -1,15 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name identity
10−2:13 glyph |=
11−2:16 name x
12−2:17 tight glyph =
13−2:18 tight wing title.lib
14−2:28 name x
15−2:29 NEWLINE
tests/golden/module-import-mold/tree.txtdeleted−6
@@ -1,6 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 identity
4− (gate 2:13
5− (face 2:16 x (ref 2:18 title.lib))
6− (wing 2:28 x))))
tests/golden/module-import-mold/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ identity: $-(@t @t)
tests/golden/module-import-prelude-cross-namespace/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; molds and values have separate namespaces.
2−tests: A value may share the prelude mold `list` name because the namespaces are separate.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-prelude-cross-namespace/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# no module fixtures
tests/golden/module-import-prelude-cross-namespace/source.jibbdeleted−1
@@ -1 +0,0 @@
1−++ list |=(x x)
tests/golden/module-import-prelude-cross-namespace/tokens.txtdeleted−7
@@ -1,7 +0,0 @@
1−1:1 glyph ++
2−1:4 name list
3−1:9 glyph |=(
4−1:12 tight name x
5−1:14 name x
6−1:15 tight glyph )
7−1:16 NEWLINE
tests/golden/module-import-prelude-cross-namespace/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−(module
2− (value 1:1 list
3− (gate-wide 1:9 (bind 1:12 x) (wing 1:14 x))))
tests/golden/module-import-prelude-cross-namespace/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ list: $-(A A)
tests/golden/module-import-prelude-mold-shadow/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; molds and values have separate namespaces.
2−tests: A root mold cannot shadow the prelude mold `list`, even with no imports.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-prelude-mold-shadow/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# no modules
tests/golden/module-import-prelude-mold-shadow/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−+$ list @t
2−++ x 1
tests/golden/module-import-prelude-mold-shadow/tokens.txtdeleted−8
@@ -1,8 +0,0 @@
1−1:1 glyph +$
2−1:4 name list
3−1:9 aura @t
4−2:1 NEWLINE
5−2:1 glyph ++
6−2:4 name x
7−2:6 lit 1
8−2:7 NEWLINE
tests/golden/module-import-prelude-mold-shadow/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−(module
2− (mold 1:1 list (aura 1:9 @t))
3− (value 2:1 x (lit 2:6 1)))
tests/golden/module-import-prelude-mold-shadow/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module has conflicting names
tests/golden/module-import-prelude-sample-shadow/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; molds and values have separate namespaces.
2−tests: A gate sample cannot shadow the prelude value `same`.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-prelude-sample-shadow/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (value 1:1 identity
4− (gate-wide 1:13 (bind 1:16 x) (wing 1:18 x))))
tests/golden/module-import-prelude-sample-shadow/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-prelude-sample-shadow/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |=(x x)
tests/golden/module-import-prelude-sample-shadow/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= lib /ui/lib
2−++ f |=(same same)
tests/golden/module-import-prelude-sample-shadow/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name f
10−2:6 glyph |=(
11−2:9 tight name same
12−2:14 name same
13−2:18 tight glyph )
14−2:19 NEWLINE
tests/golden/module-import-prelude-sample-shadow/tree.txtdeleted−4
@@ -1,4 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 f
4− (gate-wide 2:6 (bind 2:9 same) (wing 2:14 same))))
tests/golden/module-import-prelude-sample-shadow/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ f: sample shadows a name
tests/golden/module-import-prelude-value-shadow/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; molds and values have separate namespaces.
2−tests: An imported value cannot shadow the prelude value `same`.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-prelude-value-shadow/module-trees.txtdeleted−4
@@ -1,4 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (value 1:1 same
4− (gate-wide 1:9 (bind 1:12 x) (wing 1:14 x))))
tests/golden/module-import-prelude-value-shadow/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-prelude-value-shadow/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−++ same |=(x x)
tests/golden/module-import-prelude-value-shadow/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= lib /ui/lib
2−++ x 1
tests/golden/module-import-prelude-value-shadow/tokens.txtdeleted−11
@@ -1,11 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name x
10−2:6 lit 1
11−2:7 NEWLINE
tests/golden/module-import-prelude-value-shadow/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 x (lit 2:6 1)))
tests/golden/module-import-prelude-value-shadow/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module has conflicting names: /ui/lib/jibb
tests/golden/module-import-root-cycle/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: A cycle back to the root uses its explicit logical path.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-root-cycle/module-trees.txtdeleted−8
@@ -1,8 +0,0 @@
1−/ui/a.jibb
2−(module
3− (jibb 1:1 main /ui/main)
4− (value 2:1 identity
5− (gate-wide 2:13
6− (bind 2:16 x)
7− (group 2:18
8− (call 2:19 (wing 2:19 identity.main) (wing 2:33 x))))))
tests/golden/module-import-root-cycle/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/a.jibb
tests/golden/module-import-root-cycle/modules/ui/a.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= main /ui/main
2−++ identity |=(x (identity.main x))
tests/golden/module-import-root-cycle/path.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/main.jibb
tests/golden/module-import-root-cycle/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= a /ui/a
2−++ identity |=(x (identity.a x))
tests/golden/module-import-root-cycle/tokens.txtdeleted−17
@@ -1,17 +0,0 @@
1−1:1 glyph /=
2−1:5 name a
3−1:7 glyph /
4−1:8 tight knot ui
5−1:10 tight glyph /
6−1:11 tight knot a
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name identity
10−2:13 glyph |=(
11−2:16 tight name x
12−2:18 glyph (
13−2:19 tight wing identity.a
14−2:30 name x
15−2:31 tight glyph )
16−2:32 tight glyph )
17−2:33 NEWLINE
tests/golden/module-import-root-cycle/tree.txtdeleted−7
@@ -1,7 +0,0 @@
1−(module
2− (jibb 1:1 a /ui/a)
3− (value 2:1 identity
4− (gate-wide 2:13
5− (bind 2:16 x)
6− (group 2:18
7− (call 2:19 (wing 2:19 identity.a) (wing 2:30 x))))))
tests/golden/module-import-root-cycle/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−import cycle at /ui/main/jibb
tests/golden/module-import-root-import-shadow/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included".
2−tests: Samples in the root module cannot shadow names declared by `/-` or `/%`; an explicit empty Jibb module bundle opts into module-aware checking.
3−expect: parses
4−expect-types: partial inference reports each shadowing sample
tests/golden/module-import-root-import-shadow/imports.txtdeleted−1
@@ -1 +0,0 @@
1−fixture title
tests/golden/module-import-root-import-shadow/mar/label.txtdeleted−5
@@ -1,5 +0,0 @@
1−|_ a=@t
2−++ grab |% ++ noun @t --
3−++ grow |% ++ noun a --
4−++ grad %noun
5−--
tests/golden/module-import-root-import-shadow/marks.txtdeleted−1
@@ -1 +0,0 @@
1−label
tests/golden/module-import-root-import-shadow/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# no module fixtures
tests/golden/module-import-root-import-shadow/source.jibbdeleted−4
@@ -1,4 +0,0 @@
1−/- fixture
2−/% %label
3−++ shadow-sur |=(fixture fixture)
4−++ shadow-mark |=(label label)
tests/golden/module-import-root-import-shadow/sur/fixture.txtdeleted−3
@@ -1,3 +0,0 @@
1−|%
2−+$ title @t
3−--
tests/golden/module-import-root-import-shadow/tokens.txtdeleted−20
@@ -1,20 +0,0 @@
1−1:1 glyph /-
2−1:5 name fixture
3−2:1 NEWLINE
4−2:1 glyph /%
5−2:5 lit %label
6−3:1 NEWLINE
7−3:1 glyph ++
8−3:4 name shadow-sur
9−3:15 glyph |=(
10−3:18 tight name fixture
11−3:26 name fixture
12−3:33 tight glyph )
13−4:1 NEWLINE
14−4:1 glyph ++
15−4:4 name shadow-mark
16−4:16 glyph |=(
17−4:19 tight name label
18−4:25 name label
19−4:30 tight glyph )
20−4:31 NEWLINE
tests/golden/module-import-root-import-shadow/tree.txtdeleted−7
@@ -1,7 +0,0 @@
1−(module
2− (sur 1:1 fixture)
3− (mark 2:1 %label)
4− (value 3:1 shadow-sur
5− (gate-wide 3:15 (bind 3:18 fixture) (wing 3:26 fixture)))
6− (value 4:1 shadow-mark
7− (gate-wide 4:16 (bind 4:19 label) (wing 4:25 label))))
tests/golden/module-import-root-import-shadow/types.txtdeleted−3
@@ -1,3 +0,0 @@
1−partial inference; module not checked
2−++ shadow-sur: sample shadows a name
3−++ shadow-mark: sample shadows a name
tests/golden/module-import-separate-namespaces/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Modules: "No name may shadow one already in scope, imports and the prelude included"; molds and values have separate namespaces.
2−tests: A mold and a value may share a name because their namespaces are separate.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-separate-namespaces/module-trees.txtdeleted−5
@@ -1,5 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (mold 1:1 thing (aura 1:10 @t))
4− (value 2:1 thing
5− (gate-wide 2:10 (bind 2:13 x) (wing 2:15 x))))
tests/golden/module-import-separate-namespaces/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-separate-namespaces/modules/ui/lib.jibbdeleted−2
@@ -1,2 +0,0 @@
1−+$ thing @t
2−++ thing |=(x x)
tests/golden/module-import-separate-namespaces/source.jibbdeleted−3
@@ -1,3 +0,0 @@
1−/= lib /ui/lib
2−++ f |= x=thing.lib x
3−++ y (thing.lib "hi")
tests/golden/module-import-separate-namespaces/tokens.txtdeleted−22
@@ -1,22 +0,0 @@
1−1:1 glyph /=
2−1:5 name lib
3−1:9 glyph /
4−1:10 tight knot ui
5−1:12 tight glyph /
6−1:13 tight knot lib
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name f
10−2:6 glyph |=
11−2:9 name x
12−2:10 tight glyph =
13−2:11 tight wing thing.lib
14−2:21 name x
15−3:1 NEWLINE
16−3:1 glyph ++
17−3:4 name y
18−3:6 glyph (
19−3:7 tight wing thing.lib
20−3:17 str "hi"
21−3:21 tight glyph )
22−3:22 NEWLINE
tests/golden/module-import-separate-namespaces/tree.txtdeleted−9
@@ -1,9 +0,0 @@
1−(module
2− (jibb 1:1 lib /ui/lib)
3− (value 2:1 f
4− (gate 2:6
5− (face 2:9 x (ref 2:11 thing.lib))
6− (wing 2:21 x)))
7− (value 3:1 y
8− (group 3:6
9− (call 3:7 (wing 3:7 thing.lib) (str 3:17 "hi")))))
tests/golden/module-import-separate-namespaces/types.txtdeleted−3
@@ -1,3 +0,0 @@
1−partial inference; module not checked
2−++ f: $-(@t @t)
3−++ y: @t
tests/golden/module-import-sur-scope/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: A module may not see the root module’s Hoon import without declaring it.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-sur-scope/imports.txtdeleted−1
@@ -1 +0,0 @@
1−fixture title
tests/golden/module-import-sur-scope/module-trees.txtdeleted−6
@@ -1,6 +0,0 @@
1−/ui/lib.jibb
2−(module
3− (value 1:1 identity
4− (gate 1:13
5− (face 1:16 x (ref 1:18 title.fixture))
6− (wing 1:32 x))))
tests/golden/module-import-sur-scope/modules.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/lib.jibb
tests/golden/module-import-sur-scope/modules/ui/lib.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |= x=title.fixture x
tests/golden/module-import-sur-scope/source.jibbdeleted−4
@@ -1,4 +0,0 @@
1−/- fixture
2−/= lib /ui/lib
3−++ root |= x=title.fixture x
4−++ imported (identity.lib "hi")
tests/golden/module-import-sur-scope/sur/fixture.txtdeleted−3
@@ -1,3 +0,0 @@
1−|%
2−+$ title @t
3−--
tests/golden/module-import-sur-scope/tokens.txtdeleted−25
@@ -1,25 +0,0 @@
1−1:1 glyph /-
2−1:5 name fixture
3−2:1 NEWLINE
4−2:1 glyph /=
5−2:5 name lib
6−2:9 glyph /
7−2:10 tight knot ui
8−2:12 tight glyph /
9−2:13 tight knot lib
10−3:1 NEWLINE
11−3:1 glyph ++
12−3:4 name root
13−3:9 glyph |=
14−3:12 name x
15−3:13 tight glyph =
16−3:14 tight wing title.fixture
17−3:28 name x
18−4:1 NEWLINE
19−4:1 glyph ++
20−4:4 name imported
21−4:13 glyph (
22−4:14 tight wing identity.lib
23−4:27 str "hi"
24−4:31 tight glyph )
25−4:32 NEWLINE
tests/golden/module-import-sur-scope/tree.txtdeleted−10
@@ -1,10 +0,0 @@
1−(module
2− (sur 1:1 fixture)
3− (jibb 2:1 lib /ui/lib)
4− (value 3:1 root
5− (gate 3:9
6− (face 3:12 x (ref 3:14 title.fixture))
7− (wing 3:28 x)))
8− (value 4:1 imported
9− (group 4:13
10− (call 4:14 (wing 4:14 identity.lib) (str 4:27 "hi")))))
tests/golden/module-import-sur-scope/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−module definitions need unsupported inference: /ui/lib/jibb
tests/golden/module-import-transitive/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: Imported modules use a transitive, explicitly supplied A-to-B-to-C dependency chain.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-transitive/module-trees.txtdeleted−20
@@ -1,20 +0,0 @@
1−/ui/a.jibb
2−(module
3− (jibb 1:1 b /ui/b)
4− (value 2:1 identity
5− (gate-wide 2:13
6− (bind 2:16 x)
7− (group 2:18
8− (call 2:19 (wing 2:19 identity.b) (wing 2:30 x))))))
9−/ui/b.jibb
10−(module
11− (jibb 1:1 c /ui/c)
12− (value 2:1 identity
13− (gate-wide 2:13
14− (bind 2:16 x)
15− (group 2:18
16− (call 2:19 (wing 2:19 identity.c) (wing 2:30 x))))))
17−/ui/c.jibb
18−(module
19− (value 1:1 identity
20− (gate-wide 1:13 (bind 1:16 x) (wing 1:18 x))))
tests/golden/module-import-transitive/modules.txtdeleted−3
@@ -1,3 +0,0 @@
1−/ui/a.jibb
2−/ui/b.jibb
3−/ui/c.jibb
tests/golden/module-import-transitive/modules/ui/a.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= b /ui/b
2−++ identity |=(x (identity.b x))
tests/golden/module-import-transitive/modules/ui/b.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= c /ui/c
2−++ identity |=(x (identity.c x))
tests/golden/module-import-transitive/modules/ui/c.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |=(x x)
tests/golden/module-import-transitive/path.txtdeleted−1
@@ -1 +0,0 @@
1−/ui/main.jibb
tests/golden/module-import-transitive/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= a /ui/a
2−++ text (identity.a "hi")
tests/golden/module-import-transitive/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name a
3−1:7 glyph /
4−1:8 tight knot ui
5−1:10 tight glyph /
6−1:11 tight knot a
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name text
10−2:9 glyph (
11−2:10 tight wing identity.a
12−2:21 str "hi"
13−2:25 tight glyph )
14−2:26 NEWLINE
tests/golden/module-import-transitive/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 a /ui/a)
3− (value 2:1 text
4− (group 2:9
5− (call 2:10 (wing 2:10 identity.a) (str 2:21 "hi")))))
tests/golden/module-import-transitive/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ text: @t
tests/golden/module-import-unused-invalid/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Imports: `/=` imports a Jibb module; import cycles are errors.
2−tests: An unused malformed fixture is parsed in module-trees but must not invalidate import inference.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/module-import-unused-invalid/module-trees.txtdeleted−8
@@ -1,8 +0,0 @@
1−/ui/good.jibb
2−(module
3− (value 1:1 identity
4− (gate-wide 1:13 (bind 1:16 x) (wing 1:18 x))))
5−/ui/unused.jibb
6−/ui/unused.jibb:1:10: expected a mold, on its line or a deeper one, found the end of the file
7−+$ broken
8− ^
tests/golden/module-import-unused-invalid/modules.txtdeleted−2
@@ -1,2 +0,0 @@
1−/ui/good.jibb
2−/ui/unused.jibb
tests/golden/module-import-unused-invalid/modules/ui/good.jibbdeleted−1
@@ -1 +0,0 @@
1−++ identity |=(x x)
tests/golden/module-import-unused-invalid/modules/ui/unused.jibbdeleted−1
@@ -1 +0,0 @@
1−+$ broken
tests/golden/module-import-unused-invalid/source.jibbdeleted−2
@@ -1,2 +0,0 @@
1−/= good /ui/good
2−++ text (identity.good "hi")
tests/golden/module-import-unused-invalid/tokens.txtdeleted−14
@@ -1,14 +0,0 @@
1−1:1 glyph /=
2−1:5 name good
3−1:10 glyph /
4−1:11 tight knot ui
5−1:13 tight glyph /
6−1:14 tight knot good
7−2:1 NEWLINE
8−2:1 glyph ++
9−2:4 name text
10−2:9 glyph (
11−2:10 tight wing identity.good
12−2:24 str "hi"
13−2:28 tight glyph )
14−2:29 NEWLINE
tests/golden/module-import-unused-invalid/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (jibb 1:1 good /ui/good)
3− (value 2:1 text
4− (group 2:9
5− (call 2:10 (wing 2:10 identity.good) (str 2:24 "hi")))))
tests/golden/module-import-unused-invalid/types.txtdeleted−2
@@ -1,2 +0,0 @@
1−partial inference; module not checked
2−++ text: @t
tests/golden/parser-hole-parameter-rejected/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Types and molds: `_` is an inferred type hole.
2−tests: An anonymous hole is not a named generic parameter.
3−expect: error at 1:12
tests/golden/parser-hole-parameter-rejected/source.jibbdeleted−1
@@ -1 +0,0 @@
1−+$ bad |$ [_] @t
tests/golden/parser-hole-parameter-rejected/tokens.txtdeleted−8
@@ -1,8 +0,0 @@
1−1:1 glyph +$
2−1:4 name bad
3−1:8 glyph |$
4−1:11 glyph [
5−1:12 tight glyph _
6−1:13 tight glyph ]
7−1:15 aura @t
8−1:17 NEWLINE
tests/golden/parser-hole-parameter-rejected/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−/tests/golden/parser-hole-parameter-rejected/source.jibb:1:12: expected a type variable, found `_`
2−+$ bad |$ [_] @t
3− ^
tests/golden/parser-hole-path-space/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Types and molds: `_` is an inferred type hole.
2−tests: A path-segment type hole must remain tight after the field's `=`.
3−expect: error at 1:14
tests/golden/parser-hole-path-space/source.jibbdeleted−1
@@ -1 +0,0 @@
1−+$ path /[id= _]
tests/golden/parser-hole-path-space/tokens.txtdeleted−9
@@ -1,9 +0,0 @@
1−1:1 glyph +$
2−1:4 name path
3−1:9 glyph /
4−1:10 tight glyph [
5−1:11 tight name id
6−1:13 tight glyph =
7−1:15 glyph _
8−1:16 tight glyph ]
9−1:17 NEWLINE
tests/golden/parser-hole-path-space/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−/tests/golden/parser-hole-path-space/source.jibb:1:14: expected an aura or type hole right after `=`, found a space
2−+$ path /[id= _]
3− ^
tests/golden/parser-hole-path/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Types and molds: `_` is an inferred type hole.
2−tests: Underscores in `/_` and `%/_` remain literal path knots, while `[id=_]` is a typed-segment hole.
3−expect: parses
tests/golden/parser-hole-path/source.jibbdeleted−4
@@ -1,4 +0,0 @@
1−+$ root /_
2−+$ child /item/_x
3−++ show %/_
4−+$ inferred /items/[id=_]
tests/golden/parser-hole-path/tokens.txtdeleted−28
@@ -1,28 +0,0 @@
1−1:1 glyph +$
2−1:4 name root
3−1:9 glyph /
4−1:10 tight knot _
5−2:1 NEWLINE
6−2:1 glyph +$
7−2:4 name child
8−2:10 glyph /
9−2:11 tight knot item
10−2:15 tight glyph /
11−2:16 tight knot _x
12−3:1 NEWLINE
13−3:1 glyph ++
14−3:4 name show
15−3:9 glyph %/
16−3:11 tight knot _
17−4:1 NEWLINE
18−4:1 glyph +$
19−4:4 name inferred
20−4:13 glyph /
21−4:14 tight knot items
22−4:19 tight glyph /
23−4:20 tight glyph [
24−4:21 tight name id
25−4:23 tight glyph =
26−4:24 tight glyph _
27−4:25 tight glyph ]
28−4:26 NEWLINE
tests/golden/parser-hole-path/tree.txtdeleted−5
@@ -1,5 +0,0 @@
1−(module
2− (mold 1:1 root (path 1:9 /_))
3− (mold 2:1 child (path 2:10 /item/_x))
4− (value 3:1 show (qath 3:9 _))
5− (mold 4:1 inferred (path 4:13 /items/[id=_])))
tests/golden/parser-hole-pattern-rejected/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Types and molds: `_` is an inferred type hole.
2−tests: A type hole is not a branch-pattern wildcard.
3−expect: error at 3:5
tests/golden/parser-hole-pattern-rejected/source.jibbdeleted−3
@@ -1,3 +0,0 @@
1−++ bad |= x=@t
2− ?- x
3− _ "no"
tests/golden/parser-hole-pattern-rejected/tokens.txtdeleted−15
@@ -1,15 +0,0 @@
1−1:1 glyph ++
2−1:4 name bad
3−1:8 glyph |=
4−1:11 name x
5−1:12 tight glyph =
6−1:13 tight aura @t
7−2:3 INDENT
8−2:3 glyph ?-
9−2:6 name x
10−3:5 INDENT
11−3:5 glyph _
12−3:7 str "no"
13−3:11 DEDENT
14−3:11 DEDENT
15−3:11 NEWLINE
tests/golden/parser-hole-pattern-rejected/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−/tests/golden/parser-hole-pattern-rejected/source.jibb:3:5: expected a pattern, found `_`
2− _ "no"
3− ^
tests/golden/parser-hole-shapes/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Types and molds: `_` is an inferred type hole.
2−tests: Holes in samples, casts, nested records, gate molds and generic mold arguments have their own source spans.
3−expect: parses
tests/golden/parser-hole-shapes/source.jibbdeleted−11
@@ -1,11 +0,0 @@
1−+$ unused _
2−+$ nested [a=_ b=$-(_ (list _))]
3−+$ alias |$ [A] (pair A _)
4−++ identity |= x=_ x
5−++ inferred ^- _ "hello"
6−++ cast-nested |= x=[$-(_ _) (list _)] ^- [first=_ second=_] [x x]
7−++ bare-sample |= _ "hello"
8−++ cell-sample |= [a=_ b=_] [a b]
9−++ local |= x=@t
10− ++ inside |= y=_ ^- _ y
11− (inside x)
tests/golden/parser-hole-shapes/tokens.txtdeleted−121
@@ -1,121 +0,0 @@
1−1:1 glyph +$
2−1:4 name unused
3−1:11 glyph _
4−2:1 NEWLINE
5−2:1 glyph +$
6−2:4 name nested
7−2:11 glyph [
8−2:12 tight name a
9−2:13 tight glyph =
10−2:14 tight glyph _
11−2:16 name b
12−2:17 tight glyph =
13−2:18 tight glyph $-(
14−2:21 tight glyph _
15−2:23 glyph (
16−2:24 tight name list
17−2:29 glyph _
18−2:30 tight glyph )
19−2:31 tight glyph )
20−2:32 tight glyph ]
21−3:1 NEWLINE
22−3:1 glyph +$
23−3:4 name alias
24−3:10 glyph |$
25−3:13 glyph [
26−3:14 tight tvar A
27−3:15 tight glyph ]
28−3:17 glyph (
29−3:18 tight name pair
30−3:23 tvar A
31−3:25 glyph _
32−3:26 tight glyph )
33−4:1 NEWLINE
34−4:1 glyph ++
35−4:4 name identity
36−4:13 glyph |=
37−4:16 name x
38−4:17 tight glyph =
39−4:18 tight glyph _
40−4:20 name x
41−5:1 NEWLINE
42−5:1 glyph ++
43−5:4 name inferred
44−5:13 glyph ^-
45−5:16 glyph _
46−5:18 str "hello"
47−6:1 NEWLINE
48−6:1 glyph ++
49−6:4 name cast-nested
50−6:16 glyph |=
51−6:19 name x
52−6:20 tight glyph =
53−6:21 tight glyph [
54−6:22 tight glyph $-(
55−6:25 tight glyph _
56−6:27 glyph _
57−6:28 tight glyph )
58−6:30 glyph (
59−6:31 tight name list
60−6:36 glyph _
61−6:37 tight glyph )
62−6:38 tight glyph ]
63−6:40 glyph ^-
64−6:43 glyph [
65−6:44 tight name first
66−6:49 tight glyph =
67−6:50 tight glyph _
68−6:52 name second
69−6:58 tight glyph =
70−6:59 tight glyph _
71−6:60 tight glyph ]
72−6:62 glyph [
73−6:63 tight name x
74−6:65 name x
75−6:66 tight glyph ]
76−7:1 NEWLINE
77−7:1 glyph ++
78−7:4 name bare-sample
79−7:16 glyph |=
80−7:19 glyph _
81−7:21 str "hello"
82−8:1 NEWLINE
83−8:1 glyph ++
84−8:4 name cell-sample
85−8:16 glyph |=
86−8:19 glyph [
87−8:20 tight name a
88−8:21 tight glyph =
89−8:22 tight glyph _
90−8:24 name b
91−8:25 tight glyph =
92−8:26 tight glyph _
93−8:27 tight glyph ]
94−8:29 glyph [
95−8:30 tight name a
96−8:32 name b
97−8:33 tight glyph ]
98−9:1 NEWLINE
99−9:1 glyph ++
100−9:4 name local
101−9:10 glyph |=
102−9:13 name x
103−9:14 tight glyph =
104−9:15 tight aura @t
105−10:3 INDENT
106−10:3 glyph ++
107−10:6 name inside
108−10:13 glyph |=
109−10:16 name y
110−10:17 tight glyph =
111−10:18 tight glyph _
112−10:20 glyph ^-
113−10:23 glyph _
114−10:25 name y
115−11:3 NEWLINE
116−11:3 glyph (
117−11:4 tight name inside
118−11:11 name x
119−11:12 tight glyph )
120−11:13 DEDENT
121−11:13 NEWLINE
tests/golden/parser-hole-shapes/tree.txtdeleted−47
@@ -1,47 +0,0 @@
1−(module
2− (mold 1:1 unused (hole 1:11))
3− (mold 2:1 nested
4− (cell 2:11
5− (face 2:12 a (hole 2:14))
6− (face 2:16 b
7− (fn 2:18
8− (hole 2:21)
9− (apply 2:23 list (hole 2:29))))))
10− (mold 3:1 alias
11− (generic 3:10 A
12− (apply 3:17 pair (tvar 3:23 A) (hole 3:25))))
13− (value 4:1 identity
14− (gate 4:13
15− (face 4:16 x (hole 4:18))
16− (wing 4:20 x)))
17− (value 5:1 inferred
18− (cast 5:13 (hole 5:16) (str 5:18 "hello")))
19− (value 6:1 cast-nested
20− (gate 6:16
21− (face 6:19 x
22− (cell 6:21
23− (fn 6:22 (hole 6:25) (hole 6:27))
24− (apply 6:30 list (hole 6:36))))
25− (cast 6:40
26− (cell 6:43
27− (face 6:44 first (hole 6:50))
28− (face 6:52 second (hole 6:59)))
29− (tuple 6:62 (wing 6:63 x) (wing 6:65 x)))))
30− (value 7:1 bare-sample
31− (gate 7:16 (hole 7:19) (str 7:21 "hello")))
32− (value 8:1 cell-sample
33− (gate 8:16
34− (cell 8:19
35− (face 8:20 a (hole 8:22))
36− (face 8:24 b (hole 8:26)))
37− (tuple 8:29 (wing 8:30 a) (wing 8:32 b))))
38− (value 9:1 local
39− (gate 9:10
40− (face 9:13 x (aura 9:15 @t))
41− (body 10:3
42− (value 10:3 inside
43− (gate 10:13
44− (face 10:16 y (hole 10:18))
45− (cast 10:20 (hole 10:23) (wing 10:25 y))))
46− (group 11:3
47− (call 11:4 (wing 11:4 inside) (wing 11:11 x)))))))
tests/golden/parser-hole-value-rejected/about.txtdeleted−3
@@ -1,3 +0,0 @@
1−source: Grammar, Types and molds: `_` is an inferred type hole.
2−tests: A type hole is not a value expression.
3−expect: error at 1:8
tests/golden/parser-hole-value-rejected/source.jibbdeleted−1
@@ -1 +0,0 @@
1−++ bad _
tests/golden/parser-hole-value-rejected/tokens.txtdeleted−4
@@ -1,4 +0,0 @@
1−1:1 glyph ++
2−1:4 name bad
3−1:8 glyph _
4−1:9 NEWLINE
tests/golden/parser-hole-value-rejected/tree.txtdeleted−3
@@ -1,3 +0,0 @@
1−/tests/golden/parser-hole-value-rejected/source.jibb:1:8: expected an expression, found `_`
2−++ bad _
3− ^
tests/golden/prelude-1c-structural/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Overview, Prelude: "The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out"; section 1c includes `lone`, `lest`, `pole`, `quip`, `tree`, `each` and `bloq`.
2−tests: The prelude's 1c structural molds, including a one-field face, nonempty and faceless lists, a pair of list and state, a recursive tree, an either mold whose `%|` and `%&` cases have distinct tags, and the bare-atom `bloq`. The source contains the prelude definitions through `bloq`.
3−expect: parses
4−expect-types: a partial inference report, not a checked module; it checks supported union-case disjointness but not the molds as a whole
tests/golden/prelude-1c-structural/source.jibbdeleted−122
@@ -1,122 +0,0 @@
1−:: Initial prelude functions. The rest of the inventory is still to come.
2−++ same |= x=A x
3−
4−++ head |= p=[A B]
5− ?- p
6− [a b] a
7−
8−++ tail |= p=[A B]
9− ?- p
10− [a b] b
11−
12−++ not |= b=?
13− ?- b
14− %.y %.n
15− %.n %.y
16−
17−+$ list |$ [A]
18− ~
19− [i=A t=(list A)]
20−
21−+$ unit |$ [A]
22− ~
23− [~ u=A]
24−
25−++ fall |= args=[(unit A) A]
26− ?- args
27− [maybe fallback]
28− ?- maybe
29− ~ fallback
30− [~ value] value
31−
32−++ need |= maybe=(unit A)
33− ?- maybe
34− ~ !!
35− [~ value] value
36−
37−++ weld |= args=[(list A) (list A)]
38− ?- args
39− [xs ys]
40− ^- (list A)
41− ?- xs
42− ~ ys
43− [item rest] [item (weld rest ys)]
44−
45−++ turn |= args=[(list A) $-(A B)]
46− ?- args
47− [xs f]
48− ^- (list B)
49− ?- xs
50− ~ ~
51− [item rest] [(f item) (turn rest f)]
52−
53−+$ dime [p=@ta q=@]
54−
55−+$ hair [p=@ud q=@ud]
56−
57−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
58−
59−+$ coin
60− [%$ p=dime]
61− [%blob p=*]
62− [%many p=(list coin)]
63−
64−+$ pair |$ [A B] [p=A q=B]
65−
66−+$ trel |$ [A B C] [p=A q=B r=C]
67−
68−+$ qual |$ [A B C D] [p=A q=B r=C s=D]
69−
70−+$ cord @t
71−
72−+$ knot @ta
73−
74−+$ tape (list @tD)
75−
76−+$ path (list knot)
77−
78−+$ tank
79− cord
80− [%leaf p=tape]
81− [%palm p=(qual tape tape tape tape) q=(list tank)]
82− [%rose p=(trel tape tape tape) q=(list tank)]
83−
84−+$ nail [p=hair q=tape]
85−
86−+$ edge [p=hair q=(unit [p=* q=nail])]
87−
88−+$ rule $-(nail edge)
89−
90−+$ spot [p=path q=pint]
91−
92−+$ toon
93− [%0 p=*]
94− [%1 p=*]
95− [%2 p=(list tank)]
96−
97−+$ like |$ [A] [p=hair q=(unit [p=A q=nail])]
98−
99−++ wonk |= veq=(like A)
100− ?- q.veq
101− ~ !!
102− [~ product] p.product
103−
104−+$ lone |$ [A] [p=A]
105−
106−+$ lest |$ [A] [i=A t=(list A)]
107−
108−+$ pole |$ [A]
109− ~
110− [A (pole A)]
111−
112−+$ quip |$ [A B] [(list A) B]
113−
114−+$ tree |$ [A]
115− ~
116− [n=A l=(tree A) r=(tree A)]
117−
118−+$ each |$ [A B]
119− [%| p=B]
120− [%& p=A]
121−
122−+$ bloq @
tests/golden/prelude-1c-structural/tokens.txtdeleted−731
@@ -1,731 +0,0 @@
1−2:1 glyph ++
2−2:4 name same
3−2:9 glyph |=
4−2:12 name x
5−2:13 tight glyph =
6−2:14 tight tvar A
7−2:16 name x
8−4:1 NEWLINE
9−4:1 glyph ++
10−4:4 name head
11−4:9 glyph |=
12−4:12 name p
13−4:13 tight glyph =
14−4:14 tight glyph [
15−4:15 tight tvar A
16−4:17 tvar B
17−4:18 tight glyph ]
18−5:3 INDENT
19−5:3 glyph ?-
20−5:6 name p
21−6:5 INDENT
22−6:5 glyph [
23−6:6 tight name a
24−6:8 name b
25−6:9 tight glyph ]
26−6:11 name a
27−8:1 DEDENT
28−8:1 DEDENT
29−8:1 NEWLINE
30−8:1 glyph ++
31−8:4 name tail
32−8:9 glyph |=
33−8:12 name p
34−8:13 tight glyph =
35−8:14 tight glyph [
36−8:15 tight tvar A
37−8:17 tvar B
38−8:18 tight glyph ]
39−9:3 INDENT
40−9:3 glyph ?-
41−9:6 name p
42−10:5 INDENT
43−10:5 glyph [
44−10:6 tight name a
45−10:8 name b
46−10:9 tight glyph ]
47−10:11 name b
48−12:1 DEDENT
49−12:1 DEDENT
50−12:1 NEWLINE
51−12:1 glyph ++
52−12:4 name not
53−12:8 glyph |=
54−12:11 name b
55−12:12 tight glyph =
56−12:13 tight glyph ?
57−13:3 INDENT
58−13:3 glyph ?-
59−13:6 name b
60−14:5 INDENT
61−14:5 lit %.y
62−14:9 lit %.n
63−15:5 NEWLINE
64−15:5 lit %.n
65−15:9 lit %.y
66−17:1 DEDENT
67−17:1 DEDENT
68−17:1 NEWLINE
69−17:1 glyph +$
70−17:4 name list
71−17:9 glyph |$
72−17:12 glyph [
73−17:13 tight tvar A
74−17:14 tight glyph ]
75−18:3 INDENT
76−18:3 lit ~
77−19:3 NEWLINE
78−19:3 glyph [
79−19:4 tight name i
80−19:5 tight glyph =
81−19:6 tight tvar A
82−19:8 name t
83−19:9 tight glyph =
84−19:10 tight glyph (
85−19:11 tight name list
86−19:16 tvar A
87−19:17 tight glyph )
88−19:18 tight glyph ]
89−21:1 DEDENT
90−21:1 NEWLINE
91−21:1 glyph +$
92−21:4 name unit
93−21:9 glyph |$
94−21:12 glyph [
95−21:13 tight tvar A
96−21:14 tight glyph ]
97−22:3 INDENT
98−22:3 lit ~
99−23:3 NEWLINE
100−23:3 glyph [
101−23:4 tight lit ~
102−23:6 name u
103−23:7 tight glyph =
104−23:8 tight tvar A
105−23:9 tight glyph ]
106−25:1 DEDENT
107−25:1 NEWLINE
108−25:1 glyph ++
109−25:4 name fall
110−25:9 glyph |=
111−25:12 name args
112−25:16 tight glyph =
113−25:17 tight glyph [
114−25:18 tight glyph (
115−25:19 tight name unit
116−25:24 tvar A
117−25:25 tight glyph )
118−25:27 tvar A
119−25:28 tight glyph ]
120−26:3 INDENT
121−26:3 glyph ?-
122−26:6 name args
123−27:5 INDENT
124−27:5 glyph [
125−27:6 tight name maybe
126−27:12 name fallback
127−27:20 tight glyph ]
128−28:7 INDENT
129−28:7 glyph ?-
130−28:10 name maybe
131−29:9 INDENT
132−29:9 lit ~
133−29:11 name fallback
134−30:9 NEWLINE
135−30:9 glyph [
136−30:10 tight lit ~
137−30:12 name value
138−30:17 tight glyph ]
139−30:19 name value
140−32:1 DEDENT
141−32:1 DEDENT
142−32:1 DEDENT
143−32:1 DEDENT
144−32:1 NEWLINE
145−32:1 glyph ++
146−32:4 name need
147−32:9 glyph |=
148−32:12 name maybe
149−32:17 tight glyph =
150−32:18 tight glyph (
151−32:19 tight name unit
152−32:24 tvar A
153−32:25 tight glyph )
154−33:3 INDENT
155−33:3 glyph ?-
156−33:6 name maybe
157−34:5 INDENT
158−34:5 lit ~
159−34:7 glyph !!
160−35:5 NEWLINE
161−35:5 glyph [
162−35:6 tight lit ~
163−35:8 name value
164−35:13 tight glyph ]
165−35:15 name value
166−37:1 DEDENT
167−37:1 DEDENT
168−37:1 NEWLINE
169−37:1 glyph ++
170−37:4 name weld
171−37:9 glyph |=
172−37:12 name args
173−37:16 tight glyph =
174−37:17 tight glyph [
175−37:18 tight glyph (
176−37:19 tight name list
177−37:24 tvar A
178−37:25 tight glyph )
179−37:27 glyph (
180−37:28 tight name list
181−37:33 tvar A
182−37:34 tight glyph )
183−37:35 tight glyph ]
184−38:3 INDENT
185−38:3 glyph ?-
186−38:6 name args
187−39:5 INDENT
188−39:5 glyph [
189−39:6 tight name xs
190−39:9 name ys
191−39:11 tight glyph ]
192−40:7 INDENT
193−40:7 glyph ^-
194−40:10 glyph (
195−40:11 tight name list
196−40:16 tvar A
197−40:17 tight glyph )
198−41:9 INDENT
199−41:9 glyph ?-
200−41:12 name xs
201−42:11 INDENT
202−42:11 lit ~
203−42:13 name ys
204−43:11 NEWLINE
205−43:11 glyph [
206−43:12 tight name item
207−43:17 name rest
208−43:21 tight glyph ]
209−43:23 glyph [
210−43:24 tight name item
211−43:29 glyph (
212−43:30 tight name weld
213−43:35 name rest
214−43:40 name ys
215−43:42 tight glyph )
216−43:43 tight glyph ]
217−45:1 DEDENT
218−45:1 DEDENT
219−45:1 DEDENT
220−45:1 DEDENT
221−45:1 DEDENT
222−45:1 NEWLINE
223−45:1 glyph ++
224−45:4 name turn
225−45:9 glyph |=
226−45:12 name args
227−45:16 tight glyph =
228−45:17 tight glyph [
229−45:18 tight glyph (
230−45:19 tight name list
231−45:24 tvar A
232−45:25 tight glyph )
233−45:27 glyph $-(
234−45:30 tight tvar A
235−45:32 tvar B
236−45:33 tight glyph )
237−45:34 tight glyph ]
238−46:3 INDENT
239−46:3 glyph ?-
240−46:6 name args
241−47:5 INDENT
242−47:5 glyph [
243−47:6 tight name xs
244−47:9 name f
245−47:10 tight glyph ]
246−48:7 INDENT
247−48:7 glyph ^-
248−48:10 glyph (
249−48:11 tight name list
250−48:16 tvar B
251−48:17 tight glyph )
252−49:9 INDENT
253−49:9 glyph ?-
254−49:12 name xs
255−50:11 INDENT
256−50:11 lit ~
257−50:13 lit ~
258−51:11 NEWLINE
259−51:11 glyph [
260−51:12 tight name item
261−51:17 name rest
262−51:21 tight glyph ]
263−51:23 glyph [
264−51:24 tight glyph (
265−51:25 tight name f
266−51:27 name item
267−51:31 tight glyph )
268−51:33 glyph (
269−51:34 tight name turn
270−51:39 name rest
271−51:44 name f
272−51:45 tight glyph )
273−51:46 tight glyph ]
274−53:1 DEDENT
275−53:1 DEDENT
276−53:1 DEDENT
277−53:1 DEDENT
278−53:1 DEDENT
279−53:1 NEWLINE
280−53:1 glyph +$
281−53:4 name dime
282−53:9 glyph [
283−53:10 tight name p
284−53:11 tight glyph =
285−53:12 tight aura @ta
286−53:16 name q
287−53:17 tight glyph =
288−53:18 tight aura @
289−53:19 tight glyph ]
290−55:1 NEWLINE
291−55:1 glyph +$
292−55:4 name hair
293−55:9 glyph [
294−55:10 tight name p
295−55:11 tight glyph =
296−55:12 tight aura @ud
297−55:16 name q
298−55:17 tight glyph =
299−55:18 tight aura @ud
300−55:21 tight glyph ]
301−57:1 NEWLINE
302−57:1 glyph +$
303−57:4 name pint
304−57:9 glyph [
305−57:10 tight name p
306−57:11 tight glyph =
307−57:12 tight glyph [
308−57:13 tight name p
309−57:14 tight glyph =
310−57:15 tight aura @
311−57:17 name q
312−57:18 tight glyph =
313−57:19 tight aura @
314−57:20 tight glyph ]
315−57:22 name q
316−57:23 tight glyph =
317−57:24 tight glyph [
318−57:25 tight name p
319−57:26 tight glyph =
320−57:27 tight aura @
321−57:29 name q
322−57:30 tight glyph =
323−57:31 tight aura @
324−57:32 tight glyph ]
325−57:33 tight glyph ]
326−59:1 NEWLINE
327−59:1 glyph +$
328−59:4 name coin
329−60:3 INDENT
330−60:3 glyph [
331−60:4 tight lit %$
332−60:7 name p
333−60:8 tight glyph =
334−60:9 tight name dime
335−60:13 tight glyph ]
336−61:3 NEWLINE
337−61:3 glyph [
338−61:4 tight lit %blob
339−61:10 name p
340−61:11 tight glyph =
341−61:12 tight glyph *
342−61:13 tight glyph ]
343−62:3 NEWLINE
344−62:3 glyph [
345−62:4 tight lit %many
346−62:10 name p
347−62:11 tight glyph =
348−62:12 tight glyph (
349−62:13 tight name list
350−62:18 name coin
351−62:22 tight glyph )
352−62:23 tight glyph ]
353−64:1 DEDENT
354−64:1 NEWLINE
355−64:1 glyph +$
356−64:4 name pair
357−64:9 glyph |$
358−64:12 glyph [
359−64:13 tight tvar A
360−64:15 tvar B
361−64:16 tight glyph ]
362−64:18 glyph [
363−64:19 tight name p
364−64:20 tight glyph =
365−64:21 tight tvar A
366−64:23 name q
367−64:24 tight glyph =
368−64:25 tight tvar B
369−64:26 tight glyph ]
370−66:1 NEWLINE
371−66:1 glyph +$
372−66:4 name trel
373−66:9 glyph |$
374−66:12 glyph [
375−66:13 tight tvar A
376−66:15 tvar B
377−66:17 tvar C
378−66:18 tight glyph ]
379−66:20 glyph [
380−66:21 tight name p
381−66:22 tight glyph =
382−66:23 tight tvar A
383−66:25 name q
384−66:26 tight glyph =
385−66:27 tight tvar B
386−66:29 name r
387−66:30 tight glyph =
388−66:31 tight tvar C
389−66:32 tight glyph ]
390−68:1 NEWLINE
391−68:1 glyph +$
392−68:4 name qual
393−68:9 glyph |$
394−68:12 glyph [
395−68:13 tight tvar A
396−68:15 tvar B
397−68:17 tvar C
398−68:19 tvar D
399−68:20 tight glyph ]
400−68:22 glyph [
401−68:23 tight name p
402−68:24 tight glyph =
403−68:25 tight tvar A
404−68:27 name q
405−68:28 tight glyph =
406−68:29 tight tvar B
407−68:31 name r
408−68:32 tight glyph =
409−68:33 tight tvar C
410−68:35 name s
411−68:36 tight glyph =
412−68:37 tight tvar D
413−68:38 tight glyph ]
414−70:1 NEWLINE
415−70:1 glyph +$
416−70:4 name cord
417−70:9 aura @t
418−72:1 NEWLINE
419−72:1 glyph +$
420−72:4 name knot
421−72:9 aura @ta
422−74:1 NEWLINE
423−74:1 glyph +$
424−74:4 name tape
425−74:9 glyph (
426−74:10 tight name list
427−74:15 aura @tD
428−74:18 tight glyph )
429−76:1 NEWLINE
430−76:1 glyph +$
431−76:4 name path
432−76:9 glyph (
433−76:10 tight name list
434−76:15 name knot
435−76:19 tight glyph )
436−78:1 NEWLINE
437−78:1 glyph +$
438−78:4 name tank
439−79:3 INDENT
440−79:3 name cord
441−80:3 NEWLINE
442−80:3 glyph [
443−80:4 tight lit %leaf
444−80:10 name p
445−80:11 tight glyph =
446−80:12 tight name tape
447−80:16 tight glyph ]
448−81:3 NEWLINE
449−81:3 glyph [
450−81:4 tight lit %palm
451−81:10 name p
452−81:11 tight glyph =
453−81:12 tight glyph (
454−81:13 tight name qual
455−81:18 name tape
456−81:23 name tape
457−81:28 name tape
458−81:33 name tape
459−81:37 tight glyph )
460−81:39 name q
461−81:40 tight glyph =
462−81:41 tight glyph (
463−81:42 tight name list
464−81:47 name tank
465−81:51 tight glyph )
466−81:52 tight glyph ]
467−82:3 NEWLINE
468−82:3 glyph [
469−82:4 tight lit %rose
470−82:10 name p
471−82:11 tight glyph =
472−82:12 tight glyph (
473−82:13 tight name trel
474−82:18 name tape
475−82:23 name tape
476−82:28 name tape
477−82:32 tight glyph )
478−82:34 name q
479−82:35 tight glyph =
480−82:36 tight glyph (
481−82:37 tight name list
482−82:42 name tank
483−82:46 tight glyph )
484−82:47 tight glyph ]
485−84:1 DEDENT
486−84:1 NEWLINE
487−84:1 glyph +$
488−84:4 name nail
489−84:9 glyph [
490−84:10 tight name p
491−84:11 tight glyph =
492−84:12 tight name hair
493−84:17 name q
494−84:18 tight glyph =
495−84:19 tight name tape
496−84:23 tight glyph ]
497−86:1 NEWLINE
498−86:1 glyph +$
499−86:4 name edge
500−86:9 glyph [
501−86:10 tight name p
502−86:11 tight glyph =
503−86:12 tight name hair
504−86:17 name q
505−86:18 tight glyph =
506−86:19 tight glyph (
507−86:20 tight name unit
508−86:25 glyph [
509−86:26 tight name p
510−86:27 tight glyph =
511−86:28 tight glyph *
512−86:30 name q
513−86:31 tight glyph =
514−86:32 tight name nail
515−86:36 tight glyph ]
516−86:37 tight glyph )
517−86:38 tight glyph ]
518−88:1 NEWLINE
519−88:1 glyph +$
520−88:4 name rule
521−88:9 glyph $-(
522−88:12 tight name nail
523−88:17 name edge
524−88:21 tight glyph )
525−90:1 NEWLINE
526−90:1 glyph +$
527−90:4 name spot
528−90:9 glyph [
529−90:10 tight name p
530−90:11 tight glyph =
531−90:12 tight name path
532−90:17 name q
533−90:18 tight glyph =
534−90:19 tight name pint
535−90:23 tight glyph ]
536−92:1 NEWLINE
537−92:1 glyph +$
538−92:4 name toon
539−93:3 INDENT
540−93:3 glyph [
541−93:4 tight lit %0
542−93:7 name p
543−93:8 tight glyph =
544−93:9 tight glyph *
545−93:10 tight glyph ]
546−94:3 NEWLINE
547−94:3 glyph [
548−94:4 tight lit %1
549−94:7 name p
550−94:8 tight glyph =
551−94:9 tight glyph *
552−94:10 tight glyph ]
553−95:3 NEWLINE
554−95:3 glyph [
555−95:4 tight lit %2
556−95:7 name p
557−95:8 tight glyph =
558−95:9 tight glyph (
559−95:10 tight name list
560−95:15 name tank
561−95:19 tight glyph )
562−95:20 tight glyph ]
563−97:1 DEDENT
564−97:1 NEWLINE
565−97:1 glyph +$
566−97:4 name like
567−97:9 glyph |$
568−97:12 glyph [
569−97:13 tight tvar A
570−97:14 tight glyph ]
571−97:16 glyph [
572−97:17 tight name p
573−97:18 tight glyph =
574−97:19 tight name hair
575−97:24 name q
576−97:25 tight glyph =
577−97:26 tight glyph (
578−97:27 tight name unit
579−97:32 glyph [
580−97:33 tight name p
581−97:34 tight glyph =
582−97:35 tight tvar A
583−97:37 name q
584−97:38 tight glyph =
585−97:39 tight name nail
586−97:43 tight glyph ]
587−97:44 tight glyph )
588−97:45 tight glyph ]
589−99:1 NEWLINE
590−99:1 glyph ++
591−99:4 name wonk
592−99:9 glyph |=
593−99:12 name veq
594−99:15 tight glyph =
595−99:16 tight glyph (
596−99:17 tight name like
597−99:22 tvar A
598−99:23 tight glyph )
599−100:3 INDENT
600−100:3 glyph ?-
601−100:6 wing q.veq
602−101:5 INDENT
603−101:5 lit ~
604−101:7 glyph !!
605−102:5 NEWLINE
606−102:5 glyph [
607−102:6 tight lit ~
608−102:8 name product
609−102:15 tight glyph ]
610−102:17 wing p.product
611−104:1 DEDENT
612−104:1 DEDENT
613−104:1 NEWLINE
614−104:1 glyph +$
615−104:4 name lone
616−104:9 glyph |$
617−104:12 glyph [
618−104:13 tight tvar A
619−104:14 tight glyph ]
620−104:16 glyph [
621−104:17 tight name p
622−104:18 tight glyph =
623−104:19 tight tvar A
624−104:20 tight glyph ]
625−106:1 NEWLINE
626−106:1 glyph +$
627−106:4 name lest
628−106:9 glyph |$
629−106:12 glyph [
630−106:13 tight tvar A
631−106:14 tight glyph ]
632−106:16 glyph [
633−106:17 tight name i
634−106:18 tight glyph =
635−106:19 tight tvar A
636−106:21 name t
637−106:22 tight glyph =
638−106:23 tight glyph (
639−106:24 tight name list
640−106:29 tvar A
641−106:30 tight glyph )
642−106:31 tight glyph ]
643−108:1 NEWLINE
644−108:1 glyph +$
645−108:4 name pole
646−108:9 glyph |$
647−108:12 glyph [
648−108:13 tight tvar A
649−108:14 tight glyph ]
650−109:3 INDENT
651−109:3 lit ~
652−110:3 NEWLINE
653−110:3 glyph [
654−110:4 tight tvar A
655−110:6 glyph (
656−110:7 tight name pole
657−110:12 tvar A
658−110:13 tight glyph )
659−110:14 tight glyph ]
660−112:1 DEDENT
661−112:1 NEWLINE
662−112:1 glyph +$
663−112:4 name quip
664−112:9 glyph |$
665−112:12 glyph [
666−112:13 tight tvar A
667−112:15 tvar B
668−112:16 tight glyph ]
669−112:18 glyph [
670−112:19 tight glyph (
671−112:20 tight name list
672−112:25 tvar A
673−112:26 tight glyph )
674−112:28 tvar B
675−112:29 tight glyph ]
676−114:1 NEWLINE
677−114:1 glyph +$
678−114:4 name tree
679−114:9 glyph |$
680−114:12 glyph [
681−114:13 tight tvar A
682−114:14 tight glyph ]
683−115:3 INDENT
684−115:3 lit ~
685−116:3 NEWLINE
686−116:3 glyph [
687−116:4 tight name n
688−116:5 tight glyph =
689−116:6 tight tvar A
690−116:8 name l
691−116:9 tight glyph =
692−116:10 tight glyph (
693−116:11 tight name tree
694−116:16 tvar A
695−116:17 tight glyph )
696−116:19 name r
697−116:20 tight glyph =
698−116:21 tight glyph (
699−116:22 tight name tree
700−116:27 tvar A
701−116:28 tight glyph )
702−116:29 tight glyph ]
703−118:1 DEDENT
704−118:1 NEWLINE
705−118:1 glyph +$
706−118:4 name each
707−118:9 glyph |$
708−118:12 glyph [
709−118:13 tight tvar A
710−118:15 tvar B
711−118:16 tight glyph ]
712−119:3 INDENT
713−119:3 glyph [
714−119:4 tight lit %|
715−119:7 name p
716−119:8 tight glyph =
717−119:9 tight tvar B
718−119:10 tight glyph ]
719−120:3 NEWLINE
720−120:3 glyph [
721−120:4 tight lit %&
722−120:7 name p
723−120:8 tight glyph =
724−120:9 tight tvar A
725−120:10 tight glyph ]
726−122:1 DEDENT
727−122:1 NEWLINE
728−122:1 glyph +$
729−122:4 name bloq
730−122:9 aura @
731−122:10 NEWLINE
tests/golden/prelude-1c-structural/tree.txtdeleted−290
@@ -1,290 +0,0 @@
1−(module
2− (value 2:1 same
3− (gate 2:9
4− (face 2:12 x (tvar 2:14 A))
5− (wing 2:16 x)))
6− (value 4:1 head
7− (gate 4:9
8− (face 4:12 p
9− (cell 4:14 (tvar 4:15 A) (tvar 4:17 B)))
10− (body 5:3
11− (branch 5:3
12− (wing 5:6 p)
13− (arm 6:5
14− (cell 6:5 (bind 6:6 a) (bind 6:8 b))
15− (wing 6:11 a))))))
16− (value 8:1 tail
17− (gate 8:9
18− (face 8:12 p
19− (cell 8:14 (tvar 8:15 A) (tvar 8:17 B)))
20− (body 9:3
21− (branch 9:3
22− (wing 9:6 p)
23− (arm 10:5
24− (cell 10:5 (bind 10:6 a) (bind 10:8 b))
25− (wing 10:11 b))))))
26− (value 12:1 not
27− (gate 12:8
28− (face 12:11 b (flag 12:13))
29− (body 13:3
30− (branch 13:3
31− (wing 13:6 b)
32− (arm 14:5 (lit 14:5 %.y) (lit 14:9 %.n))
33− (arm 15:5 (lit 15:5 %.n) (lit 15:9 %.y))))))
34− (mold 17:1 list
35− (generic 17:9 A
36− (union 18:3
37− (const 18:3 ~)
38− (cell 19:3
39− (face 19:4 i (tvar 19:6 A))
40− (face 19:8 t
41− (apply 19:10 list (tvar 19:16 A)))))))
42− (mold 21:1 unit
43− (generic 21:9 A
44− (union 22:3
45− (const 22:3 ~)
46− (cell 23:3
47− (const 23:4 ~)
48− (face 23:6 u (tvar 23:8 A))))))
49− (value 25:1 fall
50− (gate 25:9
51− (face 25:12 args
52− (cell 25:17
53− (apply 25:18 unit (tvar 25:24 A))
54− (tvar 25:27 A)))
55− (body 26:3
56− (branch 26:3
57− (wing 26:6 args)
58− (arm 27:5
59− (cell 27:5 (bind 27:6 maybe) (bind 27:12 fallback))
60− (body 28:7
61− (branch 28:7
62− (wing 28:10 maybe)
63− (arm 29:9 (lit 29:9 ~) (wing 29:11 fallback))
64− (arm 30:9
65− (cell 30:9 (lit 30:10 ~) (bind 30:12 value))
66− (wing 30:19 value)))))))))
67− (value 32:1 need
68− (gate 32:9
69− (face 32:12 maybe
70− (apply 32:18 unit (tvar 32:24 A)))
71− (body 33:3
72− (branch 33:3
73− (wing 33:6 maybe)
74− (arm 34:5 (lit 34:5 ~) (crash 34:7))
75− (arm 35:5
76− (cell 35:5 (lit 35:6 ~) (bind 35:8 value))
77− (wing 35:15 value))))))
78− (value 37:1 weld
79− (gate 37:9
80− (face 37:12 args
81− (cell 37:17
82− (apply 37:18 list (tvar 37:24 A))
83− (apply 37:27 list (tvar 37:33 A))))
84− (body 38:3
85− (branch 38:3
86− (wing 38:6 args)
87− (arm 39:5
88− (cell 39:5 (bind 39:6 xs) (bind 39:9 ys))
89− (body 40:7
90− (cast 40:7
91− (apply 40:10 list (tvar 40:16 A))
92− (body 41:9
93− (branch 41:9
94− (wing 41:12 xs)
95− (arm 42:11 (lit 42:11 ~) (wing 42:13 ys))
96− (arm 43:11
97− (cell 43:11 (bind 43:12 item) (bind 43:17 rest))
98− (tuple 43:23
99− (wing 43:24 item)
100− (group 43:29
101− (call 43:30 (wing 43:30 weld) (wing 43:35 rest) (wing 43:40 ys))))))))))))))
102− (value 45:1 turn
103− (gate 45:9
104− (face 45:12 args
105− (cell 45:17
106− (apply 45:18 list (tvar 45:24 A))
107− (fn 45:27 (tvar 45:30 A) (tvar 45:32 B))))
108− (body 46:3
109− (branch 46:3
110− (wing 46:6 args)
111− (arm 47:5
112− (cell 47:5 (bind 47:6 xs) (bind 47:9 f))
113− (body 48:7
114− (cast 48:7
115− (apply 48:10 list (tvar 48:16 B))
116− (body 49:9
117− (branch 49:9
118− (wing 49:12 xs)
119− (arm 50:11 (lit 50:11 ~) (lit 50:13 ~))
120− (arm 51:11
121− (cell 51:11 (bind 51:12 item) (bind 51:17 rest))
122− (tuple 51:23
123− (group 51:24
124− (call 51:25 (wing 51:25 f) (wing 51:27 item)))
125− (group 51:33
126− (call 51:34 (wing 51:34 turn) (wing 51:39 rest) (wing 51:44 f))))))))))))))
127− (mold 53:1 dime
128− (cell 53:9
129− (face 53:10 p (aura 53:12 @ta))
130− (face 53:16 q (aura 53:18 @))))
131− (mold 55:1 hair
132− (cell 55:9
133− (face 55:10 p (aura 55:12 @ud))
134− (face 55:16 q (aura 55:18 @ud))))
135− (mold 57:1 pint
136− (cell 57:9
137− (face 57:10 p
138− (cell 57:12
139− (face 57:13 p (aura 57:15 @))
140− (face 57:17 q (aura 57:19 @))))
141− (face 57:22 q
142− (cell 57:24
143− (face 57:25 p (aura 57:27 @))
144− (face 57:29 q (aura 57:31 @))))))
145− (mold 59:1 coin
146− (union 60:3
147− (cell 60:3
148− (const 60:4 %$)
149− (face 60:7 p (ref 60:9 dime)))
150− (cell 61:3
151− (const 61:4 %blob)
152− (face 61:10 p (noun 61:12)))
153− (cell 62:3
154− (const 62:4 %many)
155− (face 62:10 p
156− (apply 62:12 list (ref 62:18 coin))))))
157− (mold 64:1 pair
158− (generic 64:9 A B
159− (cell 64:18
160− (face 64:19 p (tvar 64:21 A))
161− (face 64:23 q (tvar 64:25 B)))))
162− (mold 66:1 trel
163− (generic 66:9 A B C
164− (cell 66:20
165− (face 66:21 p (tvar 66:23 A))
166− (face 66:25 q (tvar 66:27 B))
167− (face 66:29 r (tvar 66:31 C)))))
168− (mold 68:1 qual
169− (generic 68:9 A B C D
170− (cell 68:22
171− (face 68:23 p (tvar 68:25 A))
172− (face 68:27 q (tvar 68:29 B))
173− (face 68:31 r (tvar 68:33 C))
174− (face 68:35 s (tvar 68:37 D)))))
175− (mold 70:1 cord (aura 70:9 @t))
176− (mold 72:1 knot (aura 72:9 @ta))
177− (mold 74:1 tape
178− (apply 74:9 list (aura 74:15 @tD)))
179− (mold 76:1 path
180− (apply 76:9 list (ref 76:15 knot)))
181− (mold 78:1 tank
182− (union 79:3
183− (ref 79:3 cord)
184− (cell 80:3
185− (const 80:4 %leaf)
186− (face 80:10 p (ref 80:12 tape)))
187− (cell 81:3
188− (const 81:4 %palm)
189− (face 81:10 p
190− (apply 81:12 qual (ref 81:18 tape) (ref 81:23 tape) (ref 81:28 tape) (ref 81:33 tape)))
191− (face 81:39 q
192− (apply 81:41 list (ref 81:47 tank))))
193− (cell 82:3
194− (const 82:4 %rose)
195− (face 82:10 p
196− (apply 82:12 trel (ref 82:18 tape) (ref 82:23 tape) (ref 82:28 tape)))
197− (face 82:34 q
198− (apply 82:36 list (ref 82:42 tank))))))
199− (mold 84:1 nail
200− (cell 84:9
201− (face 84:10 p (ref 84:12 hair))
202− (face 84:17 q (ref 84:19 tape))))
203− (mold 86:1 edge
204− (cell 86:9
205− (face 86:10 p (ref 86:12 hair))
206− (face 86:17 q
207− (apply 86:19 unit
208− (cell 86:25
209− (face 86:26 p (noun 86:28))
210− (face 86:30 q (ref 86:32 nail)))))))
211− (mold 88:1 rule
212− (fn 88:9 (ref 88:12 nail) (ref 88:17 edge)))
213− (mold 90:1 spot
214− (cell 90:9
215− (face 90:10 p (ref 90:12 path))
216− (face 90:17 q (ref 90:19 pint))))
217− (mold 92:1 toon
218− (union 93:3
219− (cell 93:3
220− (const 93:4 %0)
221− (face 93:7 p (noun 93:9)))
222− (cell 94:3
223− (const 94:4 %1)
224− (face 94:7 p (noun 94:9)))
225− (cell 95:3
226− (const 95:4 %2)
227− (face 95:7 p
228− (apply 95:9 list (ref 95:15 tank))))))
229− (mold 97:1 like
230− (generic 97:9 A
231− (cell 97:16
232− (face 97:17 p (ref 97:19 hair))
233− (face 97:24 q
234− (apply 97:26 unit
235− (cell 97:32
236− (face 97:33 p (tvar 97:35 A))
237− (face 97:37 q (ref 97:39 nail))))))))
238− (value 99:1 wonk
239− (gate 99:9
240− (face 99:12 veq
241− (apply 99:16 like (tvar 99:22 A)))
242− (body 100:3
243− (branch 100:3
244− (wing 100:6 q.veq)
245− (arm 101:5 (lit 101:5 ~) (crash 101:7))
246− (arm 102:5
247− (cell 102:5 (lit 102:6 ~) (bind 102:8 product))
248− (wing 102:17 p.product))))))
249− (mold 104:1 lone
250− (generic 104:9 A
251− (cell 104:16
252− (face 104:17 p (tvar 104:19 A)))))
253− (mold 106:1 lest
254− (generic 106:9 A
255− (cell 106:16
256− (face 106:17 i (tvar 106:19 A))
257− (face 106:21 t
258− (apply 106:23 list (tvar 106:29 A))))))
259− (mold 108:1 pole
260− (generic 108:9 A
261− (union 109:3
262− (const 109:3 ~)
263− (cell 110:3
264− (tvar 110:4 A)
265− (apply 110:6 pole (tvar 110:12 A))))))
266− (mold 112:1 quip
267− (generic 112:9 A B
268− (cell 112:18
269− (apply 112:19 list (tvar 112:25 A))
270− (tvar 112:28 B))))
271− (mold 114:1 tree
272− (generic 114:9 A
273− (union 115:3
274− (const 115:3 ~)
275− (cell 116:3
276− (face 116:4 n (tvar 116:6 A))
277− (face 116:8 l
278− (apply 116:10 tree (tvar 116:16 A)))
279− (face 116:19 r
280− (apply 116:21 tree (tvar 116:27 A)))))))
281− (mold 118:1 each
282− (generic 118:9 A B
283− (union 119:3
284− (cell 119:3
285− (const 119:4 %|)
286− (face 119:7 p (tvar 119:9 B)))
287− (cell 120:3
288− (const 120:4 %&)
289− (face 120:7 p (tvar 120:9 A))))))
290− (mold 122:1 bloq (aura 122:9 @)))
tests/golden/prelude-1c-structural/types.txtdeleted−37
@@ -1,37 +0,0 @@
1−partial inference; module not checked
2−++ same: $-(A A)
3−++ head: $-([A B] A)
4−++ tail: $-([A B] B)
5−++ not: $-(? ?)
6−+$ list: cases proven disjoint; mold not checked
7−+$ unit: cases proven disjoint; mold not checked
8−++ fall: $-([(unit A) A] A)
9−++ need: $-((unit A) A)
10−++ weld: sample mold is not supported by partial inference
11−++ turn: sample mold is not supported by partial inference
12−+$ dime: not checked
13−+$ hair: not checked
14−+$ pint: not checked
15−+$ coin: cases proven disjoint; mold not checked
16−+$ pair: not checked
17−+$ trel: not checked
18−+$ qual: not checked
19−+$ cord: not checked
20−+$ knot: not checked
21−+$ tape: not checked
22−+$ path: not checked
23−+$ tank: cases proven disjoint; mold not checked
24−+$ nail: not checked
25−+$ edge: not checked
26−+$ rule: not checked
27−+$ spot: not checked
28−+$ toon: cases proven disjoint; mold not checked
29−+$ like: not checked
30−++ wonk: sample mold is not supported by partial inference
31−+$ lone: not checked
32−+$ lest: not checked
33−+$ pole: cases proven disjoint; mold not checked
34−+$ quip: not checked
35−+$ tree: cases proven disjoint; mold not checked
36−+$ each: cases proven disjoint; mold not checked
37−+$ bloq: not checked
tests/golden/prelude-3g-basic/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Overview, Prelude: "The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out"; 3g includes `dime`, `hair`, `pint` and `coin`.
2−tests: The prelude's 3g atom and position molds, and the recursive `coin` union with its `%$` term case; bare `@` fields accept atoms independently.
3−expect: parses
4−expect-types: a partial inference report, not a checked module; union-case disjointness is checked but the molds remain unchecked
tests/golden/prelude-3g-basic/source.jibbdeleted−62
@@ -1,62 +0,0 @@
1−:: Initial prelude functions. The rest of the inventory is still to come.
2−++ same |= x=A x
3−
4−++ head |= p=[A B]
5− ?- p
6− [a b] a
7−
8−++ tail |= p=[A B]
9− ?- p
10− [a b] b
11−
12−++ not |= b=?
13− ?- b
14− %.y %.n
15− %.n %.y
16−
17−+$ list |$ [A]
18− ~
19− [i=A t=(list A)]
20−
21−+$ unit |$ [A]
22− ~
23− [~ u=A]
24−
25−++ fall |= args=[(unit A) A]
26− ?- args
27− [maybe fallback]
28− ?- maybe
29− ~ fallback
30− [~ value] value
31−
32−++ need |= maybe=(unit A)
33− ?- maybe
34− ~ !!
35− [~ value] value
36−
37−++ weld |= args=[(list A) (list A)]
38− ?- args
39− [xs ys]
40− ^- (list A)
41− ?- xs
42− ~ ys
43− [item rest] [item (weld rest ys)]
44−
45−++ turn |= args=[(list A) $-(A B)]
46− ?- args
47− [xs f]
48− ^- (list B)
49− ?- xs
50− ~ ~
51− [item rest] [(f item) (turn rest f)]
52−
53−+$ dime [p=@ta q=@]
54−
55−+$ hair [p=@ud q=@ud]
56−
57−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
58−
59−+$ coin
60− [%$ p=dime]
61− [%blob p=*]
62− [%many p=(list coin)]
tests/golden/prelude-3g-basic/tokens.txtdeleted−354
@@ -1,354 +0,0 @@
1−2:1 glyph ++
2−2:4 name same
3−2:9 glyph |=
4−2:12 name x
5−2:13 tight glyph =
6−2:14 tight tvar A
7−2:16 name x
8−4:1 NEWLINE
9−4:1 glyph ++
10−4:4 name head
11−4:9 glyph |=
12−4:12 name p
13−4:13 tight glyph =
14−4:14 tight glyph [
15−4:15 tight tvar A
16−4:17 tvar B
17−4:18 tight glyph ]
18−5:3 INDENT
19−5:3 glyph ?-
20−5:6 name p
21−6:5 INDENT
22−6:5 glyph [
23−6:6 tight name a
24−6:8 name b
25−6:9 tight glyph ]
26−6:11 name a
27−8:1 DEDENT
28−8:1 DEDENT
29−8:1 NEWLINE
30−8:1 glyph ++
31−8:4 name tail
32−8:9 glyph |=
33−8:12 name p
34−8:13 tight glyph =
35−8:14 tight glyph [
36−8:15 tight tvar A
37−8:17 tvar B
38−8:18 tight glyph ]
39−9:3 INDENT
40−9:3 glyph ?-
41−9:6 name p
42−10:5 INDENT
43−10:5 glyph [
44−10:6 tight name a
45−10:8 name b
46−10:9 tight glyph ]
47−10:11 name b
48−12:1 DEDENT
49−12:1 DEDENT
50−12:1 NEWLINE
51−12:1 glyph ++
52−12:4 name not
53−12:8 glyph |=
54−12:11 name b
55−12:12 tight glyph =
56−12:13 tight glyph ?
57−13:3 INDENT
58−13:3 glyph ?-
59−13:6 name b
60−14:5 INDENT
61−14:5 lit %.y
62−14:9 lit %.n
63−15:5 NEWLINE
64−15:5 lit %.n
65−15:9 lit %.y
66−17:1 DEDENT
67−17:1 DEDENT
68−17:1 NEWLINE
69−17:1 glyph +$
70−17:4 name list
71−17:9 glyph |$
72−17:12 glyph [
73−17:13 tight tvar A
74−17:14 tight glyph ]
75−18:3 INDENT
76−18:3 lit ~
77−19:3 NEWLINE
78−19:3 glyph [
79−19:4 tight name i
80−19:5 tight glyph =
81−19:6 tight tvar A
82−19:8 name t
83−19:9 tight glyph =
84−19:10 tight glyph (
85−19:11 tight name list
86−19:16 tvar A
87−19:17 tight glyph )
88−19:18 tight glyph ]
89−21:1 DEDENT
90−21:1 NEWLINE
91−21:1 glyph +$
92−21:4 name unit
93−21:9 glyph |$
94−21:12 glyph [
95−21:13 tight tvar A
96−21:14 tight glyph ]
97−22:3 INDENT
98−22:3 lit ~
99−23:3 NEWLINE
100−23:3 glyph [
101−23:4 tight lit ~
102−23:6 name u
103−23:7 tight glyph =
104−23:8 tight tvar A
105−23:9 tight glyph ]
106−25:1 DEDENT
107−25:1 NEWLINE
108−25:1 glyph ++
109−25:4 name fall
110−25:9 glyph |=
111−25:12 name args
112−25:16 tight glyph =
113−25:17 tight glyph [
114−25:18 tight glyph (
115−25:19 tight name unit
116−25:24 tvar A
117−25:25 tight glyph )
118−25:27 tvar A
119−25:28 tight glyph ]
120−26:3 INDENT
121−26:3 glyph ?-
122−26:6 name args
123−27:5 INDENT
124−27:5 glyph [
125−27:6 tight name maybe
126−27:12 name fallback
127−27:20 tight glyph ]
128−28:7 INDENT
129−28:7 glyph ?-
130−28:10 name maybe
131−29:9 INDENT
132−29:9 lit ~
133−29:11 name fallback
134−30:9 NEWLINE
135−30:9 glyph [
136−30:10 tight lit ~
137−30:12 name value
138−30:17 tight glyph ]
139−30:19 name value
140−32:1 DEDENT
141−32:1 DEDENT
142−32:1 DEDENT
143−32:1 DEDENT
144−32:1 NEWLINE
145−32:1 glyph ++
146−32:4 name need
147−32:9 glyph |=
148−32:12 name maybe
149−32:17 tight glyph =
150−32:18 tight glyph (
151−32:19 tight name unit
152−32:24 tvar A
153−32:25 tight glyph )
154−33:3 INDENT
155−33:3 glyph ?-
156−33:6 name maybe
157−34:5 INDENT
158−34:5 lit ~
159−34:7 glyph !!
160−35:5 NEWLINE
161−35:5 glyph [
162−35:6 tight lit ~
163−35:8 name value
164−35:13 tight glyph ]
165−35:15 name value
166−37:1 DEDENT
167−37:1 DEDENT
168−37:1 NEWLINE
169−37:1 glyph ++
170−37:4 name weld
171−37:9 glyph |=
172−37:12 name args
173−37:16 tight glyph =
174−37:17 tight glyph [
175−37:18 tight glyph (
176−37:19 tight name list
177−37:24 tvar A
178−37:25 tight glyph )
179−37:27 glyph (
180−37:28 tight name list
181−37:33 tvar A
182−37:34 tight glyph )
183−37:35 tight glyph ]
184−38:3 INDENT
185−38:3 glyph ?-
186−38:6 name args
187−39:5 INDENT
188−39:5 glyph [
189−39:6 tight name xs
190−39:9 name ys
191−39:11 tight glyph ]
192−40:7 INDENT
193−40:7 glyph ^-
194−40:10 glyph (
195−40:11 tight name list
196−40:16 tvar A
197−40:17 tight glyph )
198−41:9 INDENT
199−41:9 glyph ?-
200−41:12 name xs
201−42:11 INDENT
202−42:11 lit ~
203−42:13 name ys
204−43:11 NEWLINE
205−43:11 glyph [
206−43:12 tight name item
207−43:17 name rest
208−43:21 tight glyph ]
209−43:23 glyph [
210−43:24 tight name item
211−43:29 glyph (
212−43:30 tight name weld
213−43:35 name rest
214−43:40 name ys
215−43:42 tight glyph )
216−43:43 tight glyph ]
217−45:1 DEDENT
218−45:1 DEDENT
219−45:1 DEDENT
220−45:1 DEDENT
221−45:1 DEDENT
222−45:1 NEWLINE
223−45:1 glyph ++
224−45:4 name turn
225−45:9 glyph |=
226−45:12 name args
227−45:16 tight glyph =
228−45:17 tight glyph [
229−45:18 tight glyph (
230−45:19 tight name list
231−45:24 tvar A
232−45:25 tight glyph )
233−45:27 glyph $-(
234−45:30 tight tvar A
235−45:32 tvar B
236−45:33 tight glyph )
237−45:34 tight glyph ]
238−46:3 INDENT
239−46:3 glyph ?-
240−46:6 name args
241−47:5 INDENT
242−47:5 glyph [
243−47:6 tight name xs
244−47:9 name f
245−47:10 tight glyph ]
246−48:7 INDENT
247−48:7 glyph ^-
248−48:10 glyph (
249−48:11 tight name list
250−48:16 tvar B
251−48:17 tight glyph )
252−49:9 INDENT
253−49:9 glyph ?-
254−49:12 name xs
255−50:11 INDENT
256−50:11 lit ~
257−50:13 lit ~
258−51:11 NEWLINE
259−51:11 glyph [
260−51:12 tight name item
261−51:17 name rest
262−51:21 tight glyph ]
263−51:23 glyph [
264−51:24 tight glyph (
265−51:25 tight name f
266−51:27 name item
267−51:31 tight glyph )
268−51:33 glyph (
269−51:34 tight name turn
270−51:39 name rest
271−51:44 name f
272−51:45 tight glyph )
273−51:46 tight glyph ]
274−53:1 DEDENT
275−53:1 DEDENT
276−53:1 DEDENT
277−53:1 DEDENT
278−53:1 DEDENT
279−53:1 NEWLINE
280−53:1 glyph +$
281−53:4 name dime
282−53:9 glyph [
283−53:10 tight name p
284−53:11 tight glyph =
285−53:12 tight aura @ta
286−53:16 name q
287−53:17 tight glyph =
288−53:18 tight aura @
289−53:19 tight glyph ]
290−55:1 NEWLINE
291−55:1 glyph +$
292−55:4 name hair
293−55:9 glyph [
294−55:10 tight name p
295−55:11 tight glyph =
296−55:12 tight aura @ud
297−55:16 name q
298−55:17 tight glyph =
299−55:18 tight aura @ud
300−55:21 tight glyph ]
301−57:1 NEWLINE
302−57:1 glyph +$
303−57:4 name pint
304−57:9 glyph [
305−57:10 tight name p
306−57:11 tight glyph =
307−57:12 tight glyph [
308−57:13 tight name p
309−57:14 tight glyph =
310−57:15 tight aura @
311−57:17 name q
312−57:18 tight glyph =
313−57:19 tight aura @
314−57:20 tight glyph ]
315−57:22 name q
316−57:23 tight glyph =
317−57:24 tight glyph [
318−57:25 tight name p
319−57:26 tight glyph =
320−57:27 tight aura @
321−57:29 name q
322−57:30 tight glyph =
323−57:31 tight aura @
324−57:32 tight glyph ]
325−57:33 tight glyph ]
326−59:1 NEWLINE
327−59:1 glyph +$
328−59:4 name coin
329−60:3 INDENT
330−60:3 glyph [
331−60:4 tight lit %$
332−60:7 name p
333−60:8 tight glyph =
334−60:9 tight name dime
335−60:13 tight glyph ]
336−61:3 NEWLINE
337−61:3 glyph [
338−61:4 tight lit %blob
339−61:10 name p
340−61:11 tight glyph =
341−61:12 tight glyph *
342−61:13 tight glyph ]
343−62:3 NEWLINE
344−62:3 glyph [
345−62:4 tight lit %many
346−62:10 name p
347−62:11 tight glyph =
348−62:12 tight glyph (
349−62:13 tight name list
350−62:18 name coin
351−62:22 tight glyph )
352−62:23 tight glyph ]
353−62:24 DEDENT
354−62:24 NEWLINE
tests/golden/prelude-3g-basic/tree.txtdeleted−156
@@ -1,156 +0,0 @@
1−(module
2− (value 2:1 same
3− (gate 2:9
4− (face 2:12 x (tvar 2:14 A))
5− (wing 2:16 x)))
6− (value 4:1 head
7− (gate 4:9
8− (face 4:12 p
9− (cell 4:14 (tvar 4:15 A) (tvar 4:17 B)))
10− (body 5:3
11− (branch 5:3
12− (wing 5:6 p)
13− (arm 6:5
14− (cell 6:5 (bind 6:6 a) (bind 6:8 b))
15− (wing 6:11 a))))))
16− (value 8:1 tail
17− (gate 8:9
18− (face 8:12 p
19− (cell 8:14 (tvar 8:15 A) (tvar 8:17 B)))
20− (body 9:3
21− (branch 9:3
22− (wing 9:6 p)
23− (arm 10:5
24− (cell 10:5 (bind 10:6 a) (bind 10:8 b))
25− (wing 10:11 b))))))
26− (value 12:1 not
27− (gate 12:8
28− (face 12:11 b (flag 12:13))
29− (body 13:3
30− (branch 13:3
31− (wing 13:6 b)
32− (arm 14:5 (lit 14:5 %.y) (lit 14:9 %.n))
33− (arm 15:5 (lit 15:5 %.n) (lit 15:9 %.y))))))
34− (mold 17:1 list
35− (generic 17:9 A
36− (union 18:3
37− (const 18:3 ~)
38− (cell 19:3
39− (face 19:4 i (tvar 19:6 A))
40− (face 19:8 t
41− (apply 19:10 list (tvar 19:16 A)))))))
42− (mold 21:1 unit
43− (generic 21:9 A
44− (union 22:3
45− (const 22:3 ~)
46− (cell 23:3
47− (const 23:4 ~)
48− (face 23:6 u (tvar 23:8 A))))))
49− (value 25:1 fall
50− (gate 25:9
51− (face 25:12 args
52− (cell 25:17
53− (apply 25:18 unit (tvar 25:24 A))
54− (tvar 25:27 A)))
55− (body 26:3
56− (branch 26:3
57− (wing 26:6 args)
58− (arm 27:5
59− (cell 27:5 (bind 27:6 maybe) (bind 27:12 fallback))
60− (body 28:7
61− (branch 28:7
62− (wing 28:10 maybe)
63− (arm 29:9 (lit 29:9 ~) (wing 29:11 fallback))
64− (arm 30:9
65− (cell 30:9 (lit 30:10 ~) (bind 30:12 value))
66− (wing 30:19 value)))))))))
67− (value 32:1 need
68− (gate 32:9
69− (face 32:12 maybe
70− (apply 32:18 unit (tvar 32:24 A)))
71− (body 33:3
72− (branch 33:3
73− (wing 33:6 maybe)
74− (arm 34:5 (lit 34:5 ~) (crash 34:7))
75− (arm 35:5
76− (cell 35:5 (lit 35:6 ~) (bind 35:8 value))
77− (wing 35:15 value))))))
78− (value 37:1 weld
79− (gate 37:9
80− (face 37:12 args
81− (cell 37:17
82− (apply 37:18 list (tvar 37:24 A))
83− (apply 37:27 list (tvar 37:33 A))))
84− (body 38:3
85− (branch 38:3
86− (wing 38:6 args)
87− (arm 39:5
88− (cell 39:5 (bind 39:6 xs) (bind 39:9 ys))
89− (body 40:7
90− (cast 40:7
91− (apply 40:10 list (tvar 40:16 A))
92− (body 41:9
93− (branch 41:9
94− (wing 41:12 xs)
95− (arm 42:11 (lit 42:11 ~) (wing 42:13 ys))
96− (arm 43:11
97− (cell 43:11 (bind 43:12 item) (bind 43:17 rest))
98− (tuple 43:23
99− (wing 43:24 item)
100− (group 43:29
101− (call 43:30 (wing 43:30 weld) (wing 43:35 rest) (wing 43:40 ys))))))))))))))
102− (value 45:1 turn
103− (gate 45:9
104− (face 45:12 args
105− (cell 45:17
106− (apply 45:18 list (tvar 45:24 A))
107− (fn 45:27 (tvar 45:30 A) (tvar 45:32 B))))
108− (body 46:3
109− (branch 46:3
110− (wing 46:6 args)
111− (arm 47:5
112− (cell 47:5 (bind 47:6 xs) (bind 47:9 f))
113− (body 48:7
114− (cast 48:7
115− (apply 48:10 list (tvar 48:16 B))
116− (body 49:9
117− (branch 49:9
118− (wing 49:12 xs)
119− (arm 50:11 (lit 50:11 ~) (lit 50:13 ~))
120− (arm 51:11
121− (cell 51:11 (bind 51:12 item) (bind 51:17 rest))
122− (tuple 51:23
123− (group 51:24
124− (call 51:25 (wing 51:25 f) (wing 51:27 item)))
125− (group 51:33
126− (call 51:34 (wing 51:34 turn) (wing 51:39 rest) (wing 51:44 f))))))))))))))
127− (mold 53:1 dime
128− (cell 53:9
129− (face 53:10 p (aura 53:12 @ta))
130− (face 53:16 q (aura 53:18 @))))
131− (mold 55:1 hair
132− (cell 55:9
133− (face 55:10 p (aura 55:12 @ud))
134− (face 55:16 q (aura 55:18 @ud))))
135− (mold 57:1 pint
136− (cell 57:9
137− (face 57:10 p
138− (cell 57:12
139− (face 57:13 p (aura 57:15 @))
140− (face 57:17 q (aura 57:19 @))))
141− (face 57:22 q
142− (cell 57:24
143− (face 57:25 p (aura 57:27 @))
144− (face 57:29 q (aura 57:31 @))))))
145− (mold 59:1 coin
146− (union 60:3
147− (cell 60:3
148− (const 60:4 %$)
149− (face 60:7 p (ref 60:9 dime)))
150− (cell 61:3
151− (const 61:4 %blob)
152− (face 61:10 p (noun 61:12)))
153− (cell 62:3
154− (const 62:4 %many)
155− (face 62:10 p
156− (apply 62:12 list (ref 62:18 coin)))))))
tests/golden/prelude-3g-basic/types.txtdeleted−15
@@ -1,15 +0,0 @@
1−partial inference; module not checked
2−++ same: $-(A A)
3−++ head: $-([A B] A)
4−++ tail: $-([A B] B)
5−++ not: $-(? ?)
6−+$ list: cases proven disjoint; mold not checked
7−+$ unit: cases proven disjoint; mold not checked
8−++ fall: $-([(unit A) A] A)
9−++ need: $-((unit A) A)
10−++ weld: sample mold is not supported by partial inference
11−++ turn: sample mold is not supported by partial inference
12−+$ dime: not checked
13−+$ hair: not checked
14−+$ pint: not checked
15−+$ coin: cases proven disjoint; mold not checked
tests/golden/prelude-3g-like/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Overview, Prelude: "The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out"; Hoon 3g includes `like` and `wonk`.
2−tests: The prelude's `like` generic edge mold and `wonk` extractor; the callable value form of `like` is a separate, unresolved question. The source contains the prelude definitions through `like` and `wonk`.
3−expect: parses
4−expect-types: a partial inference report, not a checked module; generic molds and the `wonk` body are not fully checked yet
tests/golden/prelude-3g-like/source.jibbdeleted−102
@@ -1,102 +0,0 @@
1−:: Initial prelude functions. The rest of the inventory is still to come.
2−++ same |= x=A x
3−
4−++ head |= p=[A B]
5− ?- p
6− [a b] a
7−
8−++ tail |= p=[A B]
9− ?- p
10− [a b] b
11−
12−++ not |= b=?
13− ?- b
14− %.y %.n
15− %.n %.y
16−
17−+$ list |$ [A]
18− ~
19− [i=A t=(list A)]
20−
21−+$ unit |$ [A]
22− ~
23− [~ u=A]
24−
25−++ fall |= args=[(unit A) A]
26− ?- args
27− [maybe fallback]
28− ?- maybe
29− ~ fallback
30− [~ value] value
31−
32−++ need |= maybe=(unit A)
33− ?- maybe
34− ~ !!
35− [~ value] value
36−
37−++ weld |= args=[(list A) (list A)]
38− ?- args
39− [xs ys]
40− ^- (list A)
41− ?- xs
42− ~ ys
43− [item rest] [item (weld rest ys)]
44−
45−++ turn |= args=[(list A) $-(A B)]
46− ?- args
47− [xs f]
48− ^- (list B)
49− ?- xs
50− ~ ~
51− [item rest] [(f item) (turn rest f)]
52−
53−+$ dime [p=@ta q=@]
54−
55−+$ hair [p=@ud q=@ud]
56−
57−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
58−
59−+$ coin
60− [%$ p=dime]
61− [%blob p=*]
62− [%many p=(list coin)]
63−
64−+$ pair |$ [A B] [p=A q=B]
65−
66−+$ trel |$ [A B C] [p=A q=B r=C]
67−
68−+$ qual |$ [A B C D] [p=A q=B r=C s=D]
69−
70−+$ cord @t
71−
72−+$ knot @ta
73−
74−+$ tape (list @tD)
75−
76−+$ path (list knot)
77−
78−+$ tank
79− cord
80− [%leaf p=tape]
81− [%palm p=(qual tape tape tape tape) q=(list tank)]
82− [%rose p=(trel tape tape tape) q=(list tank)]
83−
84−+$ nail [p=hair q=tape]
85−
86−+$ edge [p=hair q=(unit [p=* q=nail])]
87−
88−+$ rule $-(nail edge)
89−
90−+$ spot [p=path q=pint]
91−
92−+$ toon
93− [%0 p=*]
94− [%1 p=*]
95− [%2 p=(list tank)]
96−
97−+$ like |$ [A] [p=hair q=(unit [p=A q=nail])]
98−
99−++ wonk |= veq=(like A)
100− ?- q.veq
101− ~ !!
102− [~ product] p.product
tests/golden/prelude-3g-like/tokens.txtdeleted−613
@@ -1,613 +0,0 @@
1−2:1 glyph ++
2−2:4 name same
3−2:9 glyph |=
4−2:12 name x
5−2:13 tight glyph =
6−2:14 tight tvar A
7−2:16 name x
8−4:1 NEWLINE
9−4:1 glyph ++
10−4:4 name head
11−4:9 glyph |=
12−4:12 name p
13−4:13 tight glyph =
14−4:14 tight glyph [
15−4:15 tight tvar A
16−4:17 tvar B
17−4:18 tight glyph ]
18−5:3 INDENT
19−5:3 glyph ?-
20−5:6 name p
21−6:5 INDENT
22−6:5 glyph [
23−6:6 tight name a
24−6:8 name b
25−6:9 tight glyph ]
26−6:11 name a
27−8:1 DEDENT
28−8:1 DEDENT
29−8:1 NEWLINE
30−8:1 glyph ++
31−8:4 name tail
32−8:9 glyph |=
33−8:12 name p
34−8:13 tight glyph =
35−8:14 tight glyph [
36−8:15 tight tvar A
37−8:17 tvar B
38−8:18 tight glyph ]
39−9:3 INDENT
40−9:3 glyph ?-
41−9:6 name p
42−10:5 INDENT
43−10:5 glyph [
44−10:6 tight name a
45−10:8 name b
46−10:9 tight glyph ]
47−10:11 name b
48−12:1 DEDENT
49−12:1 DEDENT
50−12:1 NEWLINE
51−12:1 glyph ++
52−12:4 name not
53−12:8 glyph |=
54−12:11 name b
55−12:12 tight glyph =
56−12:13 tight glyph ?
57−13:3 INDENT
58−13:3 glyph ?-
59−13:6 name b
60−14:5 INDENT
61−14:5 lit %.y
62−14:9 lit %.n
63−15:5 NEWLINE
64−15:5 lit %.n
65−15:9 lit %.y
66−17:1 DEDENT
67−17:1 DEDENT
68−17:1 NEWLINE
69−17:1 glyph +$
70−17:4 name list
71−17:9 glyph |$
72−17:12 glyph [
73−17:13 tight tvar A
74−17:14 tight glyph ]
75−18:3 INDENT
76−18:3 lit ~
77−19:3 NEWLINE
78−19:3 glyph [
79−19:4 tight name i
80−19:5 tight glyph =
81−19:6 tight tvar A
82−19:8 name t
83−19:9 tight glyph =
84−19:10 tight glyph (
85−19:11 tight name list
86−19:16 tvar A
87−19:17 tight glyph )
88−19:18 tight glyph ]
89−21:1 DEDENT
90−21:1 NEWLINE
91−21:1 glyph +$
92−21:4 name unit
93−21:9 glyph |$
94−21:12 glyph [
95−21:13 tight tvar A
96−21:14 tight glyph ]
97−22:3 INDENT
98−22:3 lit ~
99−23:3 NEWLINE
100−23:3 glyph [
101−23:4 tight lit ~
102−23:6 name u
103−23:7 tight glyph =
104−23:8 tight tvar A
105−23:9 tight glyph ]
106−25:1 DEDENT
107−25:1 NEWLINE
108−25:1 glyph ++
109−25:4 name fall
110−25:9 glyph |=
111−25:12 name args
112−25:16 tight glyph =
113−25:17 tight glyph [
114−25:18 tight glyph (
115−25:19 tight name unit
116−25:24 tvar A
117−25:25 tight glyph )
118−25:27 tvar A
119−25:28 tight glyph ]
120−26:3 INDENT
121−26:3 glyph ?-
122−26:6 name args
123−27:5 INDENT
124−27:5 glyph [
125−27:6 tight name maybe
126−27:12 name fallback
127−27:20 tight glyph ]
128−28:7 INDENT
129−28:7 glyph ?-
130−28:10 name maybe
131−29:9 INDENT
132−29:9 lit ~
133−29:11 name fallback
134−30:9 NEWLINE
135−30:9 glyph [
136−30:10 tight lit ~
137−30:12 name value
138−30:17 tight glyph ]
139−30:19 name value
140−32:1 DEDENT
141−32:1 DEDENT
142−32:1 DEDENT
143−32:1 DEDENT
144−32:1 NEWLINE
145−32:1 glyph ++
146−32:4 name need
147−32:9 glyph |=
148−32:12 name maybe
149−32:17 tight glyph =
150−32:18 tight glyph (
151−32:19 tight name unit
152−32:24 tvar A
153−32:25 tight glyph )
154−33:3 INDENT
155−33:3 glyph ?-
156−33:6 name maybe
157−34:5 INDENT
158−34:5 lit ~
159−34:7 glyph !!
160−35:5 NEWLINE
161−35:5 glyph [
162−35:6 tight lit ~
163−35:8 name value
164−35:13 tight glyph ]
165−35:15 name value
166−37:1 DEDENT
167−37:1 DEDENT
168−37:1 NEWLINE
169−37:1 glyph ++
170−37:4 name weld
171−37:9 glyph |=
172−37:12 name args
173−37:16 tight glyph =
174−37:17 tight glyph [
175−37:18 tight glyph (
176−37:19 tight name list
177−37:24 tvar A
178−37:25 tight glyph )
179−37:27 glyph (
180−37:28 tight name list
181−37:33 tvar A
182−37:34 tight glyph )
183−37:35 tight glyph ]
184−38:3 INDENT
185−38:3 glyph ?-
186−38:6 name args
187−39:5 INDENT
188−39:5 glyph [
189−39:6 tight name xs
190−39:9 name ys
191−39:11 tight glyph ]
192−40:7 INDENT
193−40:7 glyph ^-
194−40:10 glyph (
195−40:11 tight name list
196−40:16 tvar A
197−40:17 tight glyph )
198−41:9 INDENT
199−41:9 glyph ?-
200−41:12 name xs
201−42:11 INDENT
202−42:11 lit ~
203−42:13 name ys
204−43:11 NEWLINE
205−43:11 glyph [
206−43:12 tight name item
207−43:17 name rest
208−43:21 tight glyph ]
209−43:23 glyph [
210−43:24 tight name item
211−43:29 glyph (
212−43:30 tight name weld
213−43:35 name rest
214−43:40 name ys
215−43:42 tight glyph )
216−43:43 tight glyph ]
217−45:1 DEDENT
218−45:1 DEDENT
219−45:1 DEDENT
220−45:1 DEDENT
221−45:1 DEDENT
222−45:1 NEWLINE
223−45:1 glyph ++
224−45:4 name turn
225−45:9 glyph |=
226−45:12 name args
227−45:16 tight glyph =
228−45:17 tight glyph [
229−45:18 tight glyph (
230−45:19 tight name list
231−45:24 tvar A
232−45:25 tight glyph )
233−45:27 glyph $-(
234−45:30 tight tvar A
235−45:32 tvar B
236−45:33 tight glyph )
237−45:34 tight glyph ]
238−46:3 INDENT
239−46:3 glyph ?-
240−46:6 name args
241−47:5 INDENT
242−47:5 glyph [
243−47:6 tight name xs
244−47:9 name f
245−47:10 tight glyph ]
246−48:7 INDENT
247−48:7 glyph ^-
248−48:10 glyph (
249−48:11 tight name list
250−48:16 tvar B
251−48:17 tight glyph )
252−49:9 INDENT
253−49:9 glyph ?-
254−49:12 name xs
255−50:11 INDENT
256−50:11 lit ~
257−50:13 lit ~
258−51:11 NEWLINE
259−51:11 glyph [
260−51:12 tight name item
261−51:17 name rest
262−51:21 tight glyph ]
263−51:23 glyph [
264−51:24 tight glyph (
265−51:25 tight name f
266−51:27 name item
267−51:31 tight glyph )
268−51:33 glyph (
269−51:34 tight name turn
270−51:39 name rest
271−51:44 name f
272−51:45 tight glyph )
273−51:46 tight glyph ]
274−53:1 DEDENT
275−53:1 DEDENT
276−53:1 DEDENT
277−53:1 DEDENT
278−53:1 DEDENT
279−53:1 NEWLINE
280−53:1 glyph +$
281−53:4 name dime
282−53:9 glyph [
283−53:10 tight name p
284−53:11 tight glyph =
285−53:12 tight aura @ta
286−53:16 name q
287−53:17 tight glyph =
288−53:18 tight aura @
289−53:19 tight glyph ]
290−55:1 NEWLINE
291−55:1 glyph +$
292−55:4 name hair
293−55:9 glyph [
294−55:10 tight name p
295−55:11 tight glyph =
296−55:12 tight aura @ud
297−55:16 name q
298−55:17 tight glyph =
299−55:18 tight aura @ud
300−55:21 tight glyph ]
301−57:1 NEWLINE
302−57:1 glyph +$
303−57:4 name pint
304−57:9 glyph [
305−57:10 tight name p
306−57:11 tight glyph =
307−57:12 tight glyph [
308−57:13 tight name p
309−57:14 tight glyph =
310−57:15 tight aura @
311−57:17 name q
312−57:18 tight glyph =
313−57:19 tight aura @
314−57:20 tight glyph ]
315−57:22 name q
316−57:23 tight glyph =
317−57:24 tight glyph [
318−57:25 tight name p
319−57:26 tight glyph =
320−57:27 tight aura @
321−57:29 name q
322−57:30 tight glyph =
323−57:31 tight aura @
324−57:32 tight glyph ]
325−57:33 tight glyph ]
326−59:1 NEWLINE
327−59:1 glyph +$
328−59:4 name coin
329−60:3 INDENT
330−60:3 glyph [
331−60:4 tight lit %$
332−60:7 name p
333−60:8 tight glyph =
334−60:9 tight name dime
335−60:13 tight glyph ]
336−61:3 NEWLINE
337−61:3 glyph [
338−61:4 tight lit %blob
339−61:10 name p
340−61:11 tight glyph =
341−61:12 tight glyph *
342−61:13 tight glyph ]
343−62:3 NEWLINE
344−62:3 glyph [
345−62:4 tight lit %many
346−62:10 name p
347−62:11 tight glyph =
348−62:12 tight glyph (
349−62:13 tight name list
350−62:18 name coin
351−62:22 tight glyph )
352−62:23 tight glyph ]
353−64:1 DEDENT
354−64:1 NEWLINE
355−64:1 glyph +$
356−64:4 name pair
357−64:9 glyph |$
358−64:12 glyph [
359−64:13 tight tvar A
360−64:15 tvar B
361−64:16 tight glyph ]
362−64:18 glyph [
363−64:19 tight name p
364−64:20 tight glyph =
365−64:21 tight tvar A
366−64:23 name q
367−64:24 tight glyph =
368−64:25 tight tvar B
369−64:26 tight glyph ]
370−66:1 NEWLINE
371−66:1 glyph +$
372−66:4 name trel
373−66:9 glyph |$
374−66:12 glyph [
375−66:13 tight tvar A
376−66:15 tvar B
377−66:17 tvar C
378−66:18 tight glyph ]
379−66:20 glyph [
380−66:21 tight name p
381−66:22 tight glyph =
382−66:23 tight tvar A
383−66:25 name q
384−66:26 tight glyph =
385−66:27 tight tvar B
386−66:29 name r
387−66:30 tight glyph =
388−66:31 tight tvar C
389−66:32 tight glyph ]
390−68:1 NEWLINE
391−68:1 glyph +$
392−68:4 name qual
393−68:9 glyph |$
394−68:12 glyph [
395−68:13 tight tvar A
396−68:15 tvar B
397−68:17 tvar C
398−68:19 tvar D
399−68:20 tight glyph ]
400−68:22 glyph [
401−68:23 tight name p
402−68:24 tight glyph =
403−68:25 tight tvar A
404−68:27 name q
405−68:28 tight glyph =
406−68:29 tight tvar B
407−68:31 name r
408−68:32 tight glyph =
409−68:33 tight tvar C
410−68:35 name s
411−68:36 tight glyph =
412−68:37 tight tvar D
413−68:38 tight glyph ]
414−70:1 NEWLINE
415−70:1 glyph +$
416−70:4 name cord
417−70:9 aura @t
418−72:1 NEWLINE
419−72:1 glyph +$
420−72:4 name knot
421−72:9 aura @ta
422−74:1 NEWLINE
423−74:1 glyph +$
424−74:4 name tape
425−74:9 glyph (
426−74:10 tight name list
427−74:15 aura @tD
428−74:18 tight glyph )
429−76:1 NEWLINE
430−76:1 glyph +$
431−76:4 name path
432−76:9 glyph (
433−76:10 tight name list
434−76:15 name knot
435−76:19 tight glyph )
436−78:1 NEWLINE
437−78:1 glyph +$
438−78:4 name tank
439−79:3 INDENT
440−79:3 name cord
441−80:3 NEWLINE
442−80:3 glyph [
443−80:4 tight lit %leaf
444−80:10 name p
445−80:11 tight glyph =
446−80:12 tight name tape
447−80:16 tight glyph ]
448−81:3 NEWLINE
449−81:3 glyph [
450−81:4 tight lit %palm
451−81:10 name p
452−81:11 tight glyph =
453−81:12 tight glyph (
454−81:13 tight name qual
455−81:18 name tape
456−81:23 name tape
457−81:28 name tape
458−81:33 name tape
459−81:37 tight glyph )
460−81:39 name q
461−81:40 tight glyph =
462−81:41 tight glyph (
463−81:42 tight name list
464−81:47 name tank
465−81:51 tight glyph )
466−81:52 tight glyph ]
467−82:3 NEWLINE
468−82:3 glyph [
469−82:4 tight lit %rose
470−82:10 name p
471−82:11 tight glyph =
472−82:12 tight glyph (
473−82:13 tight name trel
474−82:18 name tape
475−82:23 name tape
476−82:28 name tape
477−82:32 tight glyph )
478−82:34 name q
479−82:35 tight glyph =
480−82:36 tight glyph (
481−82:37 tight name list
482−82:42 name tank
483−82:46 tight glyph )
484−82:47 tight glyph ]
485−84:1 DEDENT
486−84:1 NEWLINE
487−84:1 glyph +$
488−84:4 name nail
489−84:9 glyph [
490−84:10 tight name p
491−84:11 tight glyph =
492−84:12 tight name hair
493−84:17 name q
494−84:18 tight glyph =
495−84:19 tight name tape
496−84:23 tight glyph ]
497−86:1 NEWLINE
498−86:1 glyph +$
499−86:4 name edge
500−86:9 glyph [
501−86:10 tight name p
502−86:11 tight glyph =
503−86:12 tight name hair
504−86:17 name q
505−86:18 tight glyph =
506−86:19 tight glyph (
507−86:20 tight name unit
508−86:25 glyph [
509−86:26 tight name p
510−86:27 tight glyph =
511−86:28 tight glyph *
512−86:30 name q
513−86:31 tight glyph =
514−86:32 tight name nail
515−86:36 tight glyph ]
516−86:37 tight glyph )
517−86:38 tight glyph ]
518−88:1 NEWLINE
519−88:1 glyph +$
520−88:4 name rule
521−88:9 glyph $-(
522−88:12 tight name nail
523−88:17 name edge
524−88:21 tight glyph )
525−90:1 NEWLINE
526−90:1 glyph +$
527−90:4 name spot
528−90:9 glyph [
529−90:10 tight name p
530−90:11 tight glyph =
531−90:12 tight name path
532−90:17 name q
533−90:18 tight glyph =
534−90:19 tight name pint
535−90:23 tight glyph ]
536−92:1 NEWLINE
537−92:1 glyph +$
538−92:4 name toon
539−93:3 INDENT
540−93:3 glyph [
541−93:4 tight lit %0
542−93:7 name p
543−93:8 tight glyph =
544−93:9 tight glyph *
545−93:10 tight glyph ]
546−94:3 NEWLINE
547−94:3 glyph [
548−94:4 tight lit %1
549−94:7 name p
550−94:8 tight glyph =
551−94:9 tight glyph *
552−94:10 tight glyph ]
553−95:3 NEWLINE
554−95:3 glyph [
555−95:4 tight lit %2
556−95:7 name p
557−95:8 tight glyph =
558−95:9 tight glyph (
559−95:10 tight name list
560−95:15 name tank
561−95:19 tight glyph )
562−95:20 tight glyph ]
563−97:1 DEDENT
564−97:1 NEWLINE
565−97:1 glyph +$
566−97:4 name like
567−97:9 glyph |$
568−97:12 glyph [
569−97:13 tight tvar A
570−97:14 tight glyph ]
571−97:16 glyph [
572−97:17 tight name p
573−97:18 tight glyph =
574−97:19 tight name hair
575−97:24 name q
576−97:25 tight glyph =
577−97:26 tight glyph (
578−97:27 tight name unit
579−97:32 glyph [
580−97:33 tight name p
581−97:34 tight glyph =
582−97:35 tight tvar A
583−97:37 name q
584−97:38 tight glyph =
585−97:39 tight name nail
586−97:43 tight glyph ]
587−97:44 tight glyph )
588−97:45 tight glyph ]
589−99:1 NEWLINE
590−99:1 glyph ++
591−99:4 name wonk
592−99:9 glyph |=
593−99:12 name veq
594−99:15 tight glyph =
595−99:16 tight glyph (
596−99:17 tight name like
597−99:22 tvar A
598−99:23 tight glyph )
599−100:3 INDENT
600−100:3 glyph ?-
601−100:6 wing q.veq
602−101:5 INDENT
603−101:5 lit ~
604−101:7 glyph !!
605−102:5 NEWLINE
606−102:5 glyph [
607−102:6 tight lit ~
608−102:8 name product
609−102:15 tight glyph ]
610−102:17 wing p.product
611−102:26 DEDENT
612−102:26 DEDENT
613−102:26 NEWLINE
tests/golden/prelude-3g-like/tree.txtdeleted−248
@@ -1,248 +0,0 @@
1−(module
2− (value 2:1 same
3− (gate 2:9
4− (face 2:12 x (tvar 2:14 A))
5− (wing 2:16 x)))
6− (value 4:1 head
7− (gate 4:9
8− (face 4:12 p
9− (cell 4:14 (tvar 4:15 A) (tvar 4:17 B)))
10− (body 5:3
11− (branch 5:3
12− (wing 5:6 p)
13− (arm 6:5
14− (cell 6:5 (bind 6:6 a) (bind 6:8 b))
15− (wing 6:11 a))))))
16− (value 8:1 tail
17− (gate 8:9
18− (face 8:12 p
19− (cell 8:14 (tvar 8:15 A) (tvar 8:17 B)))
20− (body 9:3
21− (branch 9:3
22− (wing 9:6 p)
23− (arm 10:5
24− (cell 10:5 (bind 10:6 a) (bind 10:8 b))
25− (wing 10:11 b))))))
26− (value 12:1 not
27− (gate 12:8
28− (face 12:11 b (flag 12:13))
29− (body 13:3
30− (branch 13:3
31− (wing 13:6 b)
32− (arm 14:5 (lit 14:5 %.y) (lit 14:9 %.n))
33− (arm 15:5 (lit 15:5 %.n) (lit 15:9 %.y))))))
34− (mold 17:1 list
35− (generic 17:9 A
36− (union 18:3
37− (const 18:3 ~)
38− (cell 19:3
39− (face 19:4 i (tvar 19:6 A))
40− (face 19:8 t
41− (apply 19:10 list (tvar 19:16 A)))))))
42− (mold 21:1 unit
43− (generic 21:9 A
44− (union 22:3
45− (const 22:3 ~)
46− (cell 23:3
47− (const 23:4 ~)
48− (face 23:6 u (tvar 23:8 A))))))
49− (value 25:1 fall
50− (gate 25:9
51− (face 25:12 args
52− (cell 25:17
53− (apply 25:18 unit (tvar 25:24 A))
54− (tvar 25:27 A)))
55− (body 26:3
56− (branch 26:3
57− (wing 26:6 args)
58− (arm 27:5
59− (cell 27:5 (bind 27:6 maybe) (bind 27:12 fallback))
60− (body 28:7
61− (branch 28:7
62− (wing 28:10 maybe)
63− (arm 29:9 (lit 29:9 ~) (wing 29:11 fallback))
64− (arm 30:9
65− (cell 30:9 (lit 30:10 ~) (bind 30:12 value))
66− (wing 30:19 value)))))))))
67− (value 32:1 need
68− (gate 32:9
69− (face 32:12 maybe
70− (apply 32:18 unit (tvar 32:24 A)))
71− (body 33:3
72− (branch 33:3
73− (wing 33:6 maybe)
74− (arm 34:5 (lit 34:5 ~) (crash 34:7))
75− (arm 35:5
76− (cell 35:5 (lit 35:6 ~) (bind 35:8 value))
77− (wing 35:15 value))))))
78− (value 37:1 weld
79− (gate 37:9
80− (face 37:12 args
81− (cell 37:17
82− (apply 37:18 list (tvar 37:24 A))
83− (apply 37:27 list (tvar 37:33 A))))
84− (body 38:3
85− (branch 38:3
86− (wing 38:6 args)
87− (arm 39:5
88− (cell 39:5 (bind 39:6 xs) (bind 39:9 ys))
89− (body 40:7
90− (cast 40:7
91− (apply 40:10 list (tvar 40:16 A))
92− (body 41:9
93− (branch 41:9
94− (wing 41:12 xs)
95− (arm 42:11 (lit 42:11 ~) (wing 42:13 ys))
96− (arm 43:11
97− (cell 43:11 (bind 43:12 item) (bind 43:17 rest))
98− (tuple 43:23
99− (wing 43:24 item)
100− (group 43:29
101− (call 43:30 (wing 43:30 weld) (wing 43:35 rest) (wing 43:40 ys))))))))))))))
102− (value 45:1 turn
103− (gate 45:9
104− (face 45:12 args
105− (cell 45:17
106− (apply 45:18 list (tvar 45:24 A))
107− (fn 45:27 (tvar 45:30 A) (tvar 45:32 B))))
108− (body 46:3
109− (branch 46:3
110− (wing 46:6 args)
111− (arm 47:5
112− (cell 47:5 (bind 47:6 xs) (bind 47:9 f))
113− (body 48:7
114− (cast 48:7
115− (apply 48:10 list (tvar 48:16 B))
116− (body 49:9
117− (branch 49:9
118− (wing 49:12 xs)
119− (arm 50:11 (lit 50:11 ~) (lit 50:13 ~))
120− (arm 51:11
121− (cell 51:11 (bind 51:12 item) (bind 51:17 rest))
122− (tuple 51:23
123− (group 51:24
124− (call 51:25 (wing 51:25 f) (wing 51:27 item)))
125− (group 51:33
126− (call 51:34 (wing 51:34 turn) (wing 51:39 rest) (wing 51:44 f))))))))))))))
127− (mold 53:1 dime
128− (cell 53:9
129− (face 53:10 p (aura 53:12 @ta))
130− (face 53:16 q (aura 53:18 @))))
131− (mold 55:1 hair
132− (cell 55:9
133− (face 55:10 p (aura 55:12 @ud))
134− (face 55:16 q (aura 55:18 @ud))))
135− (mold 57:1 pint
136− (cell 57:9
137− (face 57:10 p
138− (cell 57:12
139− (face 57:13 p (aura 57:15 @))
140− (face 57:17 q (aura 57:19 @))))
141− (face 57:22 q
142− (cell 57:24
143− (face 57:25 p (aura 57:27 @))
144− (face 57:29 q (aura 57:31 @))))))
145− (mold 59:1 coin
146− (union 60:3
147− (cell 60:3
148− (const 60:4 %$)
149− (face 60:7 p (ref 60:9 dime)))
150− (cell 61:3
151− (const 61:4 %blob)
152− (face 61:10 p (noun 61:12)))
153− (cell 62:3
154− (const 62:4 %many)
155− (face 62:10 p
156− (apply 62:12 list (ref 62:18 coin))))))
157− (mold 64:1 pair
158− (generic 64:9 A B
159− (cell 64:18
160− (face 64:19 p (tvar 64:21 A))
161− (face 64:23 q (tvar 64:25 B)))))
162− (mold 66:1 trel
163− (generic 66:9 A B C
164− (cell 66:20
165− (face 66:21 p (tvar 66:23 A))
166− (face 66:25 q (tvar 66:27 B))
167− (face 66:29 r (tvar 66:31 C)))))
168− (mold 68:1 qual
169− (generic 68:9 A B C D
170− (cell 68:22
171− (face 68:23 p (tvar 68:25 A))
172− (face 68:27 q (tvar 68:29 B))
173− (face 68:31 r (tvar 68:33 C))
174− (face 68:35 s (tvar 68:37 D)))))
175− (mold 70:1 cord (aura 70:9 @t))
176− (mold 72:1 knot (aura 72:9 @ta))
177− (mold 74:1 tape
178− (apply 74:9 list (aura 74:15 @tD)))
179− (mold 76:1 path
180− (apply 76:9 list (ref 76:15 knot)))
181− (mold 78:1 tank
182− (union 79:3
183− (ref 79:3 cord)
184− (cell 80:3
185− (const 80:4 %leaf)
186− (face 80:10 p (ref 80:12 tape)))
187− (cell 81:3
188− (const 81:4 %palm)
189− (face 81:10 p
190− (apply 81:12 qual (ref 81:18 tape) (ref 81:23 tape) (ref 81:28 tape) (ref 81:33 tape)))
191− (face 81:39 q
192− (apply 81:41 list (ref 81:47 tank))))
193− (cell 82:3
194− (const 82:4 %rose)
195− (face 82:10 p
196− (apply 82:12 trel (ref 82:18 tape) (ref 82:23 tape) (ref 82:28 tape)))
197− (face 82:34 q
198− (apply 82:36 list (ref 82:42 tank))))))
199− (mold 84:1 nail
200− (cell 84:9
201− (face 84:10 p (ref 84:12 hair))
202− (face 84:17 q (ref 84:19 tape))))
203− (mold 86:1 edge
204− (cell 86:9
205− (face 86:10 p (ref 86:12 hair))
206− (face 86:17 q
207− (apply 86:19 unit
208− (cell 86:25
209− (face 86:26 p (noun 86:28))
210− (face 86:30 q (ref 86:32 nail)))))))
211− (mold 88:1 rule
212− (fn 88:9 (ref 88:12 nail) (ref 88:17 edge)))
213− (mold 90:1 spot
214− (cell 90:9
215− (face 90:10 p (ref 90:12 path))
216− (face 90:17 q (ref 90:19 pint))))
217− (mold 92:1 toon
218− (union 93:3
219− (cell 93:3
220− (const 93:4 %0)
221− (face 93:7 p (noun 93:9)))
222− (cell 94:3
223− (const 94:4 %1)
224− (face 94:7 p (noun 94:9)))
225− (cell 95:3
226− (const 95:4 %2)
227− (face 95:7 p
228− (apply 95:9 list (ref 95:15 tank))))))
229− (mold 97:1 like
230− (generic 97:9 A
231− (cell 97:16
232− (face 97:17 p (ref 97:19 hair))
233− (face 97:24 q
234− (apply 97:26 unit
235− (cell 97:32
236− (face 97:33 p (tvar 97:35 A))
237− (face 97:37 q (ref 97:39 nail))))))))
238− (value 99:1 wonk
239− (gate 99:9
240− (face 99:12 veq
241− (apply 99:16 like (tvar 99:22 A)))
242− (body 100:3
243− (branch 100:3
244− (wing 100:6 q.veq)
245− (arm 101:5 (lit 101:5 ~) (crash 101:7))
246− (arm 102:5
247− (cell 102:5 (lit 102:6 ~) (bind 102:8 product))
248− (wing 102:17 p.product)))))))
tests/golden/prelude-3g-like/types.txtdeleted−30
@@ -1,30 +0,0 @@
1−partial inference; module not checked
2−++ same: $-(A A)
3−++ head: $-([A B] A)
4−++ tail: $-([A B] B)
5−++ not: $-(? ?)
6−+$ list: cases proven disjoint; mold not checked
7−+$ unit: cases proven disjoint; mold not checked
8−++ fall: $-([(unit A) A] A)
9−++ need: $-((unit A) A)
10−++ weld: sample mold is not supported by partial inference
11−++ turn: sample mold is not supported by partial inference
12−+$ dime: not checked
13−+$ hair: not checked
14−+$ pint: not checked
15−+$ coin: cases proven disjoint; mold not checked
16−+$ pair: not checked
17−+$ trel: not checked
18−+$ qual: not checked
19−+$ cord: not checked
20−+$ knot: not checked
21−+$ tape: not checked
22−+$ path: not checked
23−+$ tank: cases proven disjoint; mold not checked
24−+$ nail: not checked
25−+$ edge: not checked
26−+$ rule: not checked
27−+$ spot: not checked
28−+$ toon: cases proven disjoint; mold not checked
29−+$ like: not checked
30−++ wonk: sample mold is not supported by partial inference
tests/golden/prelude-3g-structural/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Overview, Prelude: "The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out"; 1c, 2q and 3g include `pair`, `trel`, `qual`, `cord`, `knot`, `tape`, `path`, `tank`, `nail`, `edge`, `rule`, `spot` and `toon`.
2−tests: The prelude's structural mold declarations, including the byte aura in `tape`, the recursive `tank` union and the `toon` union; source contains the prelude definitions through `toon`.
3−expect: parses
4−expect-types: a partial inference report, not a checked module; it checks supported union-case disjointness but not the molds as a whole
tests/golden/prelude-3g-structural/source.jibbdeleted−95
@@ -1,95 +0,0 @@
1−:: Initial prelude functions. The rest of the inventory is still to come.
2−++ same |= x=A x
3−
4−++ head |= p=[A B]
5− ?- p
6− [a b] a
7−
8−++ tail |= p=[A B]
9− ?- p
10− [a b] b
11−
12−++ not |= b=?
13− ?- b
14− %.y %.n
15− %.n %.y
16−
17−+$ list |$ [A]
18− ~
19− [i=A t=(list A)]
20−
21−+$ unit |$ [A]
22− ~
23− [~ u=A]
24−
25−++ fall |= args=[(unit A) A]
26− ?- args
27− [maybe fallback]
28− ?- maybe
29− ~ fallback
30− [~ value] value
31−
32−++ need |= maybe=(unit A)
33− ?- maybe
34− ~ !!
35− [~ value] value
36−
37−++ weld |= args=[(list A) (list A)]
38− ?- args
39− [xs ys]
40− ^- (list A)
41− ?- xs
42− ~ ys
43− [item rest] [item (weld rest ys)]
44−
45−++ turn |= args=[(list A) $-(A B)]
46− ?- args
47− [xs f]
48− ^- (list B)
49− ?- xs
50− ~ ~
51− [item rest] [(f item) (turn rest f)]
52−
53−+$ dime [p=@ta q=@]
54−
55−+$ hair [p=@ud q=@ud]
56−
57−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
58−
59−+$ coin
60− [%$ p=dime]
61− [%blob p=*]
62− [%many p=(list coin)]
63−
64−+$ pair |$ [A B] [p=A q=B]
65−
66−+$ trel |$ [A B C] [p=A q=B r=C]
67−
68−+$ qual |$ [A B C D] [p=A q=B r=C s=D]
69−
70−+$ cord @t
71−
72−+$ knot @ta
73−
74−+$ tape (list @tD)
75−
76−+$ path (list knot)
77−
78−+$ tank
79− cord
80− [%leaf p=tape]
81− [%palm p=(qual tape tape tape tape) q=(list tank)]
82− [%rose p=(trel tape tape tape) q=(list tank)]
83−
84−+$ nail [p=hair q=tape]
85−
86−+$ edge [p=hair q=(unit [p=* q=nail])]
87−
88−+$ rule $-(nail edge)
89−
90−+$ spot [p=path q=pint]
91−
92−+$ toon
93− [%0 p=*]
94− [%1 p=*]
95− [%2 p=(list tank)]
tests/golden/prelude-3g-structural/tokens.txtdeleted−564
@@ -1,564 +0,0 @@
1−2:1 glyph ++
2−2:4 name same
3−2:9 glyph |=
4−2:12 name x
5−2:13 tight glyph =
6−2:14 tight tvar A
7−2:16 name x
8−4:1 NEWLINE
9−4:1 glyph ++
10−4:4 name head
11−4:9 glyph |=
12−4:12 name p
13−4:13 tight glyph =
14−4:14 tight glyph [
15−4:15 tight tvar A
16−4:17 tvar B
17−4:18 tight glyph ]
18−5:3 INDENT
19−5:3 glyph ?-
20−5:6 name p
21−6:5 INDENT
22−6:5 glyph [
23−6:6 tight name a
24−6:8 name b
25−6:9 tight glyph ]
26−6:11 name a
27−8:1 DEDENT
28−8:1 DEDENT
29−8:1 NEWLINE
30−8:1 glyph ++
31−8:4 name tail
32−8:9 glyph |=
33−8:12 name p
34−8:13 tight glyph =
35−8:14 tight glyph [
36−8:15 tight tvar A
37−8:17 tvar B
38−8:18 tight glyph ]
39−9:3 INDENT
40−9:3 glyph ?-
41−9:6 name p
42−10:5 INDENT
43−10:5 glyph [
44−10:6 tight name a
45−10:8 name b
46−10:9 tight glyph ]
47−10:11 name b
48−12:1 DEDENT
49−12:1 DEDENT
50−12:1 NEWLINE
51−12:1 glyph ++
52−12:4 name not
53−12:8 glyph |=
54−12:11 name b
55−12:12 tight glyph =
56−12:13 tight glyph ?
57−13:3 INDENT
58−13:3 glyph ?-
59−13:6 name b
60−14:5 INDENT
61−14:5 lit %.y
62−14:9 lit %.n
63−15:5 NEWLINE
64−15:5 lit %.n
65−15:9 lit %.y
66−17:1 DEDENT
67−17:1 DEDENT
68−17:1 NEWLINE
69−17:1 glyph +$
70−17:4 name list
71−17:9 glyph |$
72−17:12 glyph [
73−17:13 tight tvar A
74−17:14 tight glyph ]
75−18:3 INDENT
76−18:3 lit ~
77−19:3 NEWLINE
78−19:3 glyph [
79−19:4 tight name i
80−19:5 tight glyph =
81−19:6 tight tvar A
82−19:8 name t
83−19:9 tight glyph =
84−19:10 tight glyph (
85−19:11 tight name list
86−19:16 tvar A
87−19:17 tight glyph )
88−19:18 tight glyph ]
89−21:1 DEDENT
90−21:1 NEWLINE
91−21:1 glyph +$
92−21:4 name unit
93−21:9 glyph |$
94−21:12 glyph [
95−21:13 tight tvar A
96−21:14 tight glyph ]
97−22:3 INDENT
98−22:3 lit ~
99−23:3 NEWLINE
100−23:3 glyph [
101−23:4 tight lit ~
102−23:6 name u
103−23:7 tight glyph =
104−23:8 tight tvar A
105−23:9 tight glyph ]
106−25:1 DEDENT
107−25:1 NEWLINE
108−25:1 glyph ++
109−25:4 name fall
110−25:9 glyph |=
111−25:12 name args
112−25:16 tight glyph =
113−25:17 tight glyph [
114−25:18 tight glyph (
115−25:19 tight name unit
116−25:24 tvar A
117−25:25 tight glyph )
118−25:27 tvar A
119−25:28 tight glyph ]
120−26:3 INDENT
121−26:3 glyph ?-
122−26:6 name args
123−27:5 INDENT
124−27:5 glyph [
125−27:6 tight name maybe
126−27:12 name fallback
127−27:20 tight glyph ]
128−28:7 INDENT
129−28:7 glyph ?-
130−28:10 name maybe
131−29:9 INDENT
132−29:9 lit ~
133−29:11 name fallback
134−30:9 NEWLINE
135−30:9 glyph [
136−30:10 tight lit ~
137−30:12 name value
138−30:17 tight glyph ]
139−30:19 name value
140−32:1 DEDENT
141−32:1 DEDENT
142−32:1 DEDENT
143−32:1 DEDENT
144−32:1 NEWLINE
145−32:1 glyph ++
146−32:4 name need
147−32:9 glyph |=
148−32:12 name maybe
149−32:17 tight glyph =
150−32:18 tight glyph (
151−32:19 tight name unit
152−32:24 tvar A
153−32:25 tight glyph )
154−33:3 INDENT
155−33:3 glyph ?-
156−33:6 name maybe
157−34:5 INDENT
158−34:5 lit ~
159−34:7 glyph !!
160−35:5 NEWLINE
161−35:5 glyph [
162−35:6 tight lit ~
163−35:8 name value
164−35:13 tight glyph ]
165−35:15 name value
166−37:1 DEDENT
167−37:1 DEDENT
168−37:1 NEWLINE
169−37:1 glyph ++
170−37:4 name weld
171−37:9 glyph |=
172−37:12 name args
173−37:16 tight glyph =
174−37:17 tight glyph [
175−37:18 tight glyph (
176−37:19 tight name list
177−37:24 tvar A
178−37:25 tight glyph )
179−37:27 glyph (
180−37:28 tight name list
181−37:33 tvar A
182−37:34 tight glyph )
183−37:35 tight glyph ]
184−38:3 INDENT
185−38:3 glyph ?-
186−38:6 name args
187−39:5 INDENT
188−39:5 glyph [
189−39:6 tight name xs
190−39:9 name ys
191−39:11 tight glyph ]
192−40:7 INDENT
193−40:7 glyph ^-
194−40:10 glyph (
195−40:11 tight name list
196−40:16 tvar A
197−40:17 tight glyph )
198−41:9 INDENT
199−41:9 glyph ?-
200−41:12 name xs
201−42:11 INDENT
202−42:11 lit ~
203−42:13 name ys
204−43:11 NEWLINE
205−43:11 glyph [
206−43:12 tight name item
207−43:17 name rest
208−43:21 tight glyph ]
209−43:23 glyph [
210−43:24 tight name item
211−43:29 glyph (
212−43:30 tight name weld
213−43:35 name rest
214−43:40 name ys
215−43:42 tight glyph )
216−43:43 tight glyph ]
217−45:1 DEDENT
218−45:1 DEDENT
219−45:1 DEDENT
220−45:1 DEDENT
221−45:1 DEDENT
222−45:1 NEWLINE
223−45:1 glyph ++
224−45:4 name turn
225−45:9 glyph |=
226−45:12 name args
227−45:16 tight glyph =
228−45:17 tight glyph [
229−45:18 tight glyph (
230−45:19 tight name list
231−45:24 tvar A
232−45:25 tight glyph )
233−45:27 glyph $-(
234−45:30 tight tvar A
235−45:32 tvar B
236−45:33 tight glyph )
237−45:34 tight glyph ]
238−46:3 INDENT
239−46:3 glyph ?-
240−46:6 name args
241−47:5 INDENT
242−47:5 glyph [
243−47:6 tight name xs
244−47:9 name f
245−47:10 tight glyph ]
246−48:7 INDENT
247−48:7 glyph ^-
248−48:10 glyph (
249−48:11 tight name list
250−48:16 tvar B
251−48:17 tight glyph )
252−49:9 INDENT
253−49:9 glyph ?-
254−49:12 name xs
255−50:11 INDENT
256−50:11 lit ~
257−50:13 lit ~
258−51:11 NEWLINE
259−51:11 glyph [
260−51:12 tight name item
261−51:17 name rest
262−51:21 tight glyph ]
263−51:23 glyph [
264−51:24 tight glyph (
265−51:25 tight name f
266−51:27 name item
267−51:31 tight glyph )
268−51:33 glyph (
269−51:34 tight name turn
270−51:39 name rest
271−51:44 name f
272−51:45 tight glyph )
273−51:46 tight glyph ]
274−53:1 DEDENT
275−53:1 DEDENT
276−53:1 DEDENT
277−53:1 DEDENT
278−53:1 DEDENT
279−53:1 NEWLINE
280−53:1 glyph +$
281−53:4 name dime
282−53:9 glyph [
283−53:10 tight name p
284−53:11 tight glyph =
285−53:12 tight aura @ta
286−53:16 name q
287−53:17 tight glyph =
288−53:18 tight aura @
289−53:19 tight glyph ]
290−55:1 NEWLINE
291−55:1 glyph +$
292−55:4 name hair
293−55:9 glyph [
294−55:10 tight name p
295−55:11 tight glyph =
296−55:12 tight aura @ud
297−55:16 name q
298−55:17 tight glyph =
299−55:18 tight aura @ud
300−55:21 tight glyph ]
301−57:1 NEWLINE
302−57:1 glyph +$
303−57:4 name pint
304−57:9 glyph [
305−57:10 tight name p
306−57:11 tight glyph =
307−57:12 tight glyph [
308−57:13 tight name p
309−57:14 tight glyph =
310−57:15 tight aura @
311−57:17 name q
312−57:18 tight glyph =
313−57:19 tight aura @
314−57:20 tight glyph ]
315−57:22 name q
316−57:23 tight glyph =
317−57:24 tight glyph [
318−57:25 tight name p
319−57:26 tight glyph =
320−57:27 tight aura @
321−57:29 name q
322−57:30 tight glyph =
323−57:31 tight aura @
324−57:32 tight glyph ]
325−57:33 tight glyph ]
326−59:1 NEWLINE
327−59:1 glyph +$
328−59:4 name coin
329−60:3 INDENT
330−60:3 glyph [
331−60:4 tight lit %$
332−60:7 name p
333−60:8 tight glyph =
334−60:9 tight name dime
335−60:13 tight glyph ]
336−61:3 NEWLINE
337−61:3 glyph [
338−61:4 tight lit %blob
339−61:10 name p
340−61:11 tight glyph =
341−61:12 tight glyph *
342−61:13 tight glyph ]
343−62:3 NEWLINE
344−62:3 glyph [
345−62:4 tight lit %many
346−62:10 name p
347−62:11 tight glyph =
348−62:12 tight glyph (
349−62:13 tight name list
350−62:18 name coin
351−62:22 tight glyph )
352−62:23 tight glyph ]
353−64:1 DEDENT
354−64:1 NEWLINE
355−64:1 glyph +$
356−64:4 name pair
357−64:9 glyph |$
358−64:12 glyph [
359−64:13 tight tvar A
360−64:15 tvar B
361−64:16 tight glyph ]
362−64:18 glyph [
363−64:19 tight name p
364−64:20 tight glyph =
365−64:21 tight tvar A
366−64:23 name q
367−64:24 tight glyph =
368−64:25 tight tvar B
369−64:26 tight glyph ]
370−66:1 NEWLINE
371−66:1 glyph +$
372−66:4 name trel
373−66:9 glyph |$
374−66:12 glyph [
375−66:13 tight tvar A
376−66:15 tvar B
377−66:17 tvar C
378−66:18 tight glyph ]
379−66:20 glyph [
380−66:21 tight name p
381−66:22 tight glyph =
382−66:23 tight tvar A
383−66:25 name q
384−66:26 tight glyph =
385−66:27 tight tvar B
386−66:29 name r
387−66:30 tight glyph =
388−66:31 tight tvar C
389−66:32 tight glyph ]
390−68:1 NEWLINE
391−68:1 glyph +$
392−68:4 name qual
393−68:9 glyph |$
394−68:12 glyph [
395−68:13 tight tvar A
396−68:15 tvar B
397−68:17 tvar C
398−68:19 tvar D
399−68:20 tight glyph ]
400−68:22 glyph [
401−68:23 tight name p
402−68:24 tight glyph =
403−68:25 tight tvar A
404−68:27 name q
405−68:28 tight glyph =
406−68:29 tight tvar B
407−68:31 name r
408−68:32 tight glyph =
409−68:33 tight tvar C
410−68:35 name s
411−68:36 tight glyph =
412−68:37 tight tvar D
413−68:38 tight glyph ]
414−70:1 NEWLINE
415−70:1 glyph +$
416−70:4 name cord
417−70:9 aura @t
418−72:1 NEWLINE
419−72:1 glyph +$
420−72:4 name knot
421−72:9 aura @ta
422−74:1 NEWLINE
423−74:1 glyph +$
424−74:4 name tape
425−74:9 glyph (
426−74:10 tight name list
427−74:15 aura @tD
428−74:18 tight glyph )
429−76:1 NEWLINE
430−76:1 glyph +$
431−76:4 name path
432−76:9 glyph (
433−76:10 tight name list
434−76:15 name knot
435−76:19 tight glyph )
436−78:1 NEWLINE
437−78:1 glyph +$
438−78:4 name tank
439−79:3 INDENT
440−79:3 name cord
441−80:3 NEWLINE
442−80:3 glyph [
443−80:4 tight lit %leaf
444−80:10 name p
445−80:11 tight glyph =
446−80:12 tight name tape
447−80:16 tight glyph ]
448−81:3 NEWLINE
449−81:3 glyph [
450−81:4 tight lit %palm
451−81:10 name p
452−81:11 tight glyph =
453−81:12 tight glyph (
454−81:13 tight name qual
455−81:18 name tape
456−81:23 name tape
457−81:28 name tape
458−81:33 name tape
459−81:37 tight glyph )
460−81:39 name q
461−81:40 tight glyph =
462−81:41 tight glyph (
463−81:42 tight name list
464−81:47 name tank
465−81:51 tight glyph )
466−81:52 tight glyph ]
467−82:3 NEWLINE
468−82:3 glyph [
469−82:4 tight lit %rose
470−82:10 name p
471−82:11 tight glyph =
472−82:12 tight glyph (
473−82:13 tight name trel
474−82:18 name tape
475−82:23 name tape
476−82:28 name tape
477−82:32 tight glyph )
478−82:34 name q
479−82:35 tight glyph =
480−82:36 tight glyph (
481−82:37 tight name list
482−82:42 name tank
483−82:46 tight glyph )
484−82:47 tight glyph ]
485−84:1 DEDENT
486−84:1 NEWLINE
487−84:1 glyph +$
488−84:4 name nail
489−84:9 glyph [
490−84:10 tight name p
491−84:11 tight glyph =
492−84:12 tight name hair
493−84:17 name q
494−84:18 tight glyph =
495−84:19 tight name tape
496−84:23 tight glyph ]
497−86:1 NEWLINE
498−86:1 glyph +$
499−86:4 name edge
500−86:9 glyph [
501−86:10 tight name p
502−86:11 tight glyph =
503−86:12 tight name hair
504−86:17 name q
505−86:18 tight glyph =
506−86:19 tight glyph (
507−86:20 tight name unit
508−86:25 glyph [
509−86:26 tight name p
510−86:27 tight glyph =
511−86:28 tight glyph *
512−86:30 name q
513−86:31 tight glyph =
514−86:32 tight name nail
515−86:36 tight glyph ]
516−86:37 tight glyph )
517−86:38 tight glyph ]
518−88:1 NEWLINE
519−88:1 glyph +$
520−88:4 name rule
521−88:9 glyph $-(
522−88:12 tight name nail
523−88:17 name edge
524−88:21 tight glyph )
525−90:1 NEWLINE
526−90:1 glyph +$
527−90:4 name spot
528−90:9 glyph [
529−90:10 tight name p
530−90:11 tight glyph =
531−90:12 tight name path
532−90:17 name q
533−90:18 tight glyph =
534−90:19 tight name pint
535−90:23 tight glyph ]
536−92:1 NEWLINE
537−92:1 glyph +$
538−92:4 name toon
539−93:3 INDENT
540−93:3 glyph [
541−93:4 tight lit %0
542−93:7 name p
543−93:8 tight glyph =
544−93:9 tight glyph *
545−93:10 tight glyph ]
546−94:3 NEWLINE
547−94:3 glyph [
548−94:4 tight lit %1
549−94:7 name p
550−94:8 tight glyph =
551−94:9 tight glyph *
552−94:10 tight glyph ]
553−95:3 NEWLINE
554−95:3 glyph [
555−95:4 tight lit %2
556−95:7 name p
557−95:8 tight glyph =
558−95:9 tight glyph (
559−95:10 tight name list
560−95:15 name tank
561−95:19 tight glyph )
562−95:20 tight glyph ]
563−95:21 DEDENT
564−95:21 NEWLINE
tests/golden/prelude-3g-structural/tree.txtdeleted−228
@@ -1,228 +0,0 @@
1−(module
2− (value 2:1 same
3− (gate 2:9
4− (face 2:12 x (tvar 2:14 A))
5− (wing 2:16 x)))
6− (value 4:1 head
7− (gate 4:9
8− (face 4:12 p
9− (cell 4:14 (tvar 4:15 A) (tvar 4:17 B)))
10− (body 5:3
11− (branch 5:3
12− (wing 5:6 p)
13− (arm 6:5
14− (cell 6:5 (bind 6:6 a) (bind 6:8 b))
15− (wing 6:11 a))))))
16− (value 8:1 tail
17− (gate 8:9
18− (face 8:12 p
19− (cell 8:14 (tvar 8:15 A) (tvar 8:17 B)))
20− (body 9:3
21− (branch 9:3
22− (wing 9:6 p)
23− (arm 10:5
24− (cell 10:5 (bind 10:6 a) (bind 10:8 b))
25− (wing 10:11 b))))))
26− (value 12:1 not
27− (gate 12:8
28− (face 12:11 b (flag 12:13))
29− (body 13:3
30− (branch 13:3
31− (wing 13:6 b)
32− (arm 14:5 (lit 14:5 %.y) (lit 14:9 %.n))
33− (arm 15:5 (lit 15:5 %.n) (lit 15:9 %.y))))))
34− (mold 17:1 list
35− (generic 17:9 A
36− (union 18:3
37− (const 18:3 ~)
38− (cell 19:3
39− (face 19:4 i (tvar 19:6 A))
40− (face 19:8 t
41− (apply 19:10 list (tvar 19:16 A)))))))
42− (mold 21:1 unit
43− (generic 21:9 A
44− (union 22:3
45− (const 22:3 ~)
46− (cell 23:3
47− (const 23:4 ~)
48− (face 23:6 u (tvar 23:8 A))))))
49− (value 25:1 fall
50− (gate 25:9
51− (face 25:12 args
52− (cell 25:17
53− (apply 25:18 unit (tvar 25:24 A))
54− (tvar 25:27 A)))
55− (body 26:3
56− (branch 26:3
57− (wing 26:6 args)
58− (arm 27:5
59− (cell 27:5 (bind 27:6 maybe) (bind 27:12 fallback))
60− (body 28:7
61− (branch 28:7
62− (wing 28:10 maybe)
63− (arm 29:9 (lit 29:9 ~) (wing 29:11 fallback))
64− (arm 30:9
65− (cell 30:9 (lit 30:10 ~) (bind 30:12 value))
66− (wing 30:19 value)))))))))
67− (value 32:1 need
68− (gate 32:9
69− (face 32:12 maybe
70− (apply 32:18 unit (tvar 32:24 A)))
71− (body 33:3
72− (branch 33:3
73− (wing 33:6 maybe)
74− (arm 34:5 (lit 34:5 ~) (crash 34:7))
75− (arm 35:5
76− (cell 35:5 (lit 35:6 ~) (bind 35:8 value))
77− (wing 35:15 value))))))
78− (value 37:1 weld
79− (gate 37:9
80− (face 37:12 args
81− (cell 37:17
82− (apply 37:18 list (tvar 37:24 A))
83− (apply 37:27 list (tvar 37:33 A))))
84− (body 38:3
85− (branch 38:3
86− (wing 38:6 args)
87− (arm 39:5
88− (cell 39:5 (bind 39:6 xs) (bind 39:9 ys))
89− (body 40:7
90− (cast 40:7
91− (apply 40:10 list (tvar 40:16 A))
92− (body 41:9
93− (branch 41:9
94− (wing 41:12 xs)
95− (arm 42:11 (lit 42:11 ~) (wing 42:13 ys))
96− (arm 43:11
97− (cell 43:11 (bind 43:12 item) (bind 43:17 rest))
98− (tuple 43:23
99− (wing 43:24 item)
100− (group 43:29
101− (call 43:30 (wing 43:30 weld) (wing 43:35 rest) (wing 43:40 ys))))))))))))))
102− (value 45:1 turn
103− (gate 45:9
104− (face 45:12 args
105− (cell 45:17
106− (apply 45:18 list (tvar 45:24 A))
107− (fn 45:27 (tvar 45:30 A) (tvar 45:32 B))))
108− (body 46:3
109− (branch 46:3
110− (wing 46:6 args)
111− (arm 47:5
112− (cell 47:5 (bind 47:6 xs) (bind 47:9 f))
113− (body 48:7
114− (cast 48:7
115− (apply 48:10 list (tvar 48:16 B))
116− (body 49:9
117− (branch 49:9
118− (wing 49:12 xs)
119− (arm 50:11 (lit 50:11 ~) (lit 50:13 ~))
120− (arm 51:11
121− (cell 51:11 (bind 51:12 item) (bind 51:17 rest))
122− (tuple 51:23
123− (group 51:24
124− (call 51:25 (wing 51:25 f) (wing 51:27 item)))
125− (group 51:33
126− (call 51:34 (wing 51:34 turn) (wing 51:39 rest) (wing 51:44 f))))))))))))))
127− (mold 53:1 dime
128− (cell 53:9
129− (face 53:10 p (aura 53:12 @ta))
130− (face 53:16 q (aura 53:18 @))))
131− (mold 55:1 hair
132− (cell 55:9
133− (face 55:10 p (aura 55:12 @ud))
134− (face 55:16 q (aura 55:18 @ud))))
135− (mold 57:1 pint
136− (cell 57:9
137− (face 57:10 p
138− (cell 57:12
139− (face 57:13 p (aura 57:15 @))
140− (face 57:17 q (aura 57:19 @))))
141− (face 57:22 q
142− (cell 57:24
143− (face 57:25 p (aura 57:27 @))
144− (face 57:29 q (aura 57:31 @))))))
145− (mold 59:1 coin
146− (union 60:3
147− (cell 60:3
148− (const 60:4 %$)
149− (face 60:7 p (ref 60:9 dime)))
150− (cell 61:3
151− (const 61:4 %blob)
152− (face 61:10 p (noun 61:12)))
153− (cell 62:3
154− (const 62:4 %many)
155− (face 62:10 p
156− (apply 62:12 list (ref 62:18 coin))))))
157− (mold 64:1 pair
158− (generic 64:9 A B
159− (cell 64:18
160− (face 64:19 p (tvar 64:21 A))
161− (face 64:23 q (tvar 64:25 B)))))
162− (mold 66:1 trel
163− (generic 66:9 A B C
164− (cell 66:20
165− (face 66:21 p (tvar 66:23 A))
166− (face 66:25 q (tvar 66:27 B))
167− (face 66:29 r (tvar 66:31 C)))))
168− (mold 68:1 qual
169− (generic 68:9 A B C D
170− (cell 68:22
171− (face 68:23 p (tvar 68:25 A))
172− (face 68:27 q (tvar 68:29 B))
173− (face 68:31 r (tvar 68:33 C))
174− (face 68:35 s (tvar 68:37 D)))))
175− (mold 70:1 cord (aura 70:9 @t))
176− (mold 72:1 knot (aura 72:9 @ta))
177− (mold 74:1 tape
178− (apply 74:9 list (aura 74:15 @tD)))
179− (mold 76:1 path
180− (apply 76:9 list (ref 76:15 knot)))
181− (mold 78:1 tank
182− (union 79:3
183− (ref 79:3 cord)
184− (cell 80:3
185− (const 80:4 %leaf)
186− (face 80:10 p (ref 80:12 tape)))
187− (cell 81:3
188− (const 81:4 %palm)
189− (face 81:10 p
190− (apply 81:12 qual (ref 81:18 tape) (ref 81:23 tape) (ref 81:28 tape) (ref 81:33 tape)))
191− (face 81:39 q
192− (apply 81:41 list (ref 81:47 tank))))
193− (cell 82:3
194− (const 82:4 %rose)
195− (face 82:10 p
196− (apply 82:12 trel (ref 82:18 tape) (ref 82:23 tape) (ref 82:28 tape)))
197− (face 82:34 q
198− (apply 82:36 list (ref 82:42 tank))))))
199− (mold 84:1 nail
200− (cell 84:9
201− (face 84:10 p (ref 84:12 hair))
202− (face 84:17 q (ref 84:19 tape))))
203− (mold 86:1 edge
204− (cell 86:9
205− (face 86:10 p (ref 86:12 hair))
206− (face 86:17 q
207− (apply 86:19 unit
208− (cell 86:25
209− (face 86:26 p (noun 86:28))
210− (face 86:30 q (ref 86:32 nail)))))))
211− (mold 88:1 rule
212− (fn 88:9 (ref 88:12 nail) (ref 88:17 edge)))
213− (mold 90:1 spot
214− (cell 90:9
215− (face 90:10 p (ref 90:12 path))
216− (face 90:17 q (ref 90:19 pint))))
217− (mold 92:1 toon
218− (union 93:3
219− (cell 93:3
220− (const 93:4 %0)
221− (face 93:7 p (noun 93:9)))
222− (cell 94:3
223− (const 94:4 %1)
224− (face 94:7 p (noun 94:9)))
225− (cell 95:3
226− (const 95:4 %2)
227− (face 95:7 p
228− (apply 95:9 list (ref 95:15 tank)))))))
tests/golden/prelude-3g-structural/types.txtdeleted−28
@@ -1,28 +0,0 @@
1−partial inference; module not checked
2−++ same: $-(A A)
3−++ head: $-([A B] A)
4−++ tail: $-([A B] B)
5−++ not: $-(? ?)
6−+$ list: cases proven disjoint; mold not checked
7−+$ unit: cases proven disjoint; mold not checked
8−++ fall: $-([(unit A) A] A)
9−++ need: $-((unit A) A)
10−++ weld: sample mold is not supported by partial inference
11−++ turn: sample mold is not supported by partial inference
12−+$ dime: not checked
13−+$ hair: not checked
14−+$ pint: not checked
15−+$ coin: cases proven disjoint; mold not checked
16−+$ pair: not checked
17−+$ trel: not checked
18−+$ qual: not checked
19−+$ cord: not checked
20−+$ knot: not checked
21−+$ tape: not checked
22−+$ path: not checked
23−+$ tank: cases proven disjoint; mold not checked
24−+$ nail: not checked
25−+$ edge: not checked
26−+$ rule: not checked
27−+$ spot: not checked
28−+$ toon: cases proven disjoint; mold not checked
tests/golden/prelude-list-helpers/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Overview, Prelude: "The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out"; Hoon 2a and 2b include `some`, `lure`, `snoc` and `flop`.
2−tests: The prelude through its unit constructor, singleton list, append-one gate and tail-recursive list reversal; the local reversal helper shares the enclosing type variable.
3−expect: parses
4−expect-types: a partial inference report, not a checked module; unit, list and recursive helper typing is not complete
tests/golden/prelude-list-helpers/source.jibbdeleted−140
@@ -1,140 +0,0 @@
1−:: Initial prelude functions. The rest of the inventory is still to come.
2−++ same |= x=A x
3−
4−++ head |= p=[A B]
5− ?- p
6− [a b] a
7−
8−++ tail |= p=[A B]
9− ?- p
10− [a b] b
11−
12−++ not |= b=?
13− ?- b
14− %.y %.n
15− %.n %.y
16−
17−+$ list |$ [A]
18− ~
19− [i=A t=(list A)]
20−
21−+$ unit |$ [A]
22− ~
23− [~ u=A]
24−
25−++ fall |= args=[(unit A) A]
26− ?- args
27− [maybe fallback]
28− ?- maybe
29− ~ fallback
30− [~ value] value
31−
32−++ need |= maybe=(unit A)
33− ?- maybe
34− ~ !!
35− [~ value] value
36−
37−++ weld |= args=[(list A) (list A)]
38− ?- args
39− [xs ys]
40− ^- (list A)
41− ?- xs
42− ~ ys
43− [item rest] [item (weld rest ys)]
44−
45−++ turn |= args=[(list A) $-(A B)]
46− ?- args
47− [xs f]
48− ^- (list B)
49− ?- xs
50− ~ ~
51− [item rest] [(f item) (turn rest f)]
52−
53−+$ dime [p=@ta q=@]
54−
55−+$ hair [p=@ud q=@ud]
56−
57−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
58−
59−+$ coin
60− [%$ p=dime]
61− [%blob p=*]
62− [%many p=(list coin)]
63−
64−+$ pair |$ [A B] [p=A q=B]
65−
66−+$ trel |$ [A B C] [p=A q=B r=C]
67−
68−+$ qual |$ [A B C D] [p=A q=B r=C s=D]
69−
70−+$ cord @t
71−
72−+$ knot @ta
73−
74−+$ tape (list @tD)
75−
76−+$ path (list knot)
77−
78−+$ tank
79− cord
80− [%leaf p=tape]
81− [%palm p=(qual tape tape tape tape) q=(list tank)]
82− [%rose p=(trel tape tape tape) q=(list tank)]
83−
84−+$ nail [p=hair q=tape]
85−
86−+$ edge [p=hair q=(unit [p=* q=nail])]
87−
88−+$ rule $-(nail edge)
89−
90−+$ spot [p=path q=pint]
91−
92−+$ toon
93− [%0 p=*]
94− [%1 p=*]
95− [%2 p=(list tank)]
96−
97−+$ like |$ [A] [p=hair q=(unit [p=A q=nail])]
98−
99−++ wonk |= veq=(like A)
100− ?- q.veq
101− ~ !!
102− [~ product] p.product
103−
104−+$ lone |$ [A] [p=A]
105−
106−+$ lest |$ [A] [i=A t=(list A)]
107−
108−+$ pole |$ [A]
109− ~
110− [A (pole A)]
111−
112−+$ quip |$ [A B] [(list A) B]
113−
114−+$ tree |$ [A]
115− ~
116− [n=A l=(tree A) r=(tree A)]
117−
118−+$ each |$ [A B]
119− [%| p=B]
120− [%& p=A]
121−
122−+$ bloq @
123−
124−++ some |= item=A `item
125−
126−++ lure |= item=A
127− ^- (list A) [item ~]
128−
129−++ snoc |= args=[(list A) A]
130− ?- args
131− [xs item] (weld xs [item ~])
132−
133−++ flop |= xs=(list A)
134− ++ reverse-into |= args=[(list A) (list A)]
135− ?- args
136− [rest acc]
137− ?- rest
138− ~ acc
139− [item more] (reverse-into more [item acc])
140− (reverse-into xs ~)
tests/golden/prelude-list-helpers/tokens.txtdeleted−853
@@ -1,853 +0,0 @@
1−2:1 glyph ++
2−2:4 name same
3−2:9 glyph |=
4−2:12 name x
5−2:13 tight glyph =
6−2:14 tight tvar A
7−2:16 name x
8−4:1 NEWLINE
9−4:1 glyph ++
10−4:4 name head
11−4:9 glyph |=
12−4:12 name p
13−4:13 tight glyph =
14−4:14 tight glyph [
15−4:15 tight tvar A
16−4:17 tvar B
17−4:18 tight glyph ]
18−5:3 INDENT
19−5:3 glyph ?-
20−5:6 name p
21−6:5 INDENT
22−6:5 glyph [
23−6:6 tight name a
24−6:8 name b
25−6:9 tight glyph ]
26−6:11 name a
27−8:1 DEDENT
28−8:1 DEDENT
29−8:1 NEWLINE
30−8:1 glyph ++
31−8:4 name tail
32−8:9 glyph |=
33−8:12 name p
34−8:13 tight glyph =
35−8:14 tight glyph [
36−8:15 tight tvar A
37−8:17 tvar B
38−8:18 tight glyph ]
39−9:3 INDENT
40−9:3 glyph ?-
41−9:6 name p
42−10:5 INDENT
43−10:5 glyph [
44−10:6 tight name a
45−10:8 name b
46−10:9 tight glyph ]
47−10:11 name b
48−12:1 DEDENT
49−12:1 DEDENT
50−12:1 NEWLINE
51−12:1 glyph ++
52−12:4 name not
53−12:8 glyph |=
54−12:11 name b
55−12:12 tight glyph =
56−12:13 tight glyph ?
57−13:3 INDENT
58−13:3 glyph ?-
59−13:6 name b
60−14:5 INDENT
61−14:5 lit %.y
62−14:9 lit %.n
63−15:5 NEWLINE
64−15:5 lit %.n
65−15:9 lit %.y
66−17:1 DEDENT
67−17:1 DEDENT
68−17:1 NEWLINE
69−17:1 glyph +$
70−17:4 name list
71−17:9 glyph |$
72−17:12 glyph [
73−17:13 tight tvar A
74−17:14 tight glyph ]
75−18:3 INDENT
76−18:3 lit ~
77−19:3 NEWLINE
78−19:3 glyph [
79−19:4 tight name i
80−19:5 tight glyph =
81−19:6 tight tvar A
82−19:8 name t
83−19:9 tight glyph =
84−19:10 tight glyph (
85−19:11 tight name list
86−19:16 tvar A
87−19:17 tight glyph )
88−19:18 tight glyph ]
89−21:1 DEDENT
90−21:1 NEWLINE
91−21:1 glyph +$
92−21:4 name unit
93−21:9 glyph |$
94−21:12 glyph [
95−21:13 tight tvar A
96−21:14 tight glyph ]
97−22:3 INDENT
98−22:3 lit ~
99−23:3 NEWLINE
100−23:3 glyph [
101−23:4 tight lit ~
102−23:6 name u
103−23:7 tight glyph =
104−23:8 tight tvar A
105−23:9 tight glyph ]
106−25:1 DEDENT
107−25:1 NEWLINE
108−25:1 glyph ++
109−25:4 name fall
110−25:9 glyph |=
111−25:12 name args
112−25:16 tight glyph =
113−25:17 tight glyph [
114−25:18 tight glyph (
115−25:19 tight name unit
116−25:24 tvar A
117−25:25 tight glyph )
118−25:27 tvar A
119−25:28 tight glyph ]
120−26:3 INDENT
121−26:3 glyph ?-
122−26:6 name args
123−27:5 INDENT
124−27:5 glyph [
125−27:6 tight name maybe
126−27:12 name fallback
127−27:20 tight glyph ]
128−28:7 INDENT
129−28:7 glyph ?-
130−28:10 name maybe
131−29:9 INDENT
132−29:9 lit ~
133−29:11 name fallback
134−30:9 NEWLINE
135−30:9 glyph [
136−30:10 tight lit ~
137−30:12 name value
138−30:17 tight glyph ]
139−30:19 name value
140−32:1 DEDENT
141−32:1 DEDENT
142−32:1 DEDENT
143−32:1 DEDENT
144−32:1 NEWLINE
145−32:1 glyph ++
146−32:4 name need
147−32:9 glyph |=
148−32:12 name maybe
149−32:17 tight glyph =
150−32:18 tight glyph (
151−32:19 tight name unit
152−32:24 tvar A
153−32:25 tight glyph )
154−33:3 INDENT
155−33:3 glyph ?-
156−33:6 name maybe
157−34:5 INDENT
158−34:5 lit ~
159−34:7 glyph !!
160−35:5 NEWLINE
161−35:5 glyph [
162−35:6 tight lit ~
163−35:8 name value
164−35:13 tight glyph ]
165−35:15 name value
166−37:1 DEDENT
167−37:1 DEDENT
168−37:1 NEWLINE
169−37:1 glyph ++
170−37:4 name weld
171−37:9 glyph |=
172−37:12 name args
173−37:16 tight glyph =
174−37:17 tight glyph [
175−37:18 tight glyph (
176−37:19 tight name list
177−37:24 tvar A
178−37:25 tight glyph )
179−37:27 glyph (
180−37:28 tight name list
181−37:33 tvar A
182−37:34 tight glyph )
183−37:35 tight glyph ]
184−38:3 INDENT
185−38:3 glyph ?-
186−38:6 name args
187−39:5 INDENT
188−39:5 glyph [
189−39:6 tight name xs
190−39:9 name ys
191−39:11 tight glyph ]
192−40:7 INDENT
193−40:7 glyph ^-
194−40:10 glyph (
195−40:11 tight name list
196−40:16 tvar A
197−40:17 tight glyph )
198−41:9 INDENT
199−41:9 glyph ?-
200−41:12 name xs
201−42:11 INDENT
202−42:11 lit ~
203−42:13 name ys
204−43:11 NEWLINE
205−43:11 glyph [
206−43:12 tight name item
207−43:17 name rest
208−43:21 tight glyph ]
209−43:23 glyph [
210−43:24 tight name item
211−43:29 glyph (
212−43:30 tight name weld
213−43:35 name rest
214−43:40 name ys
215−43:42 tight glyph )
216−43:43 tight glyph ]
217−45:1 DEDENT
218−45:1 DEDENT
219−45:1 DEDENT
220−45:1 DEDENT
221−45:1 DEDENT
222−45:1 NEWLINE
223−45:1 glyph ++
224−45:4 name turn
225−45:9 glyph |=
226−45:12 name args
227−45:16 tight glyph =
228−45:17 tight glyph [
229−45:18 tight glyph (
230−45:19 tight name list
231−45:24 tvar A
232−45:25 tight glyph )
233−45:27 glyph $-(
234−45:30 tight tvar A
235−45:32 tvar B
236−45:33 tight glyph )
237−45:34 tight glyph ]
238−46:3 INDENT
239−46:3 glyph ?-
240−46:6 name args
241−47:5 INDENT
242−47:5 glyph [
243−47:6 tight name xs
244−47:9 name f
245−47:10 tight glyph ]
246−48:7 INDENT
247−48:7 glyph ^-
248−48:10 glyph (
249−48:11 tight name list
250−48:16 tvar B
251−48:17 tight glyph )
252−49:9 INDENT
253−49:9 glyph ?-
254−49:12 name xs
255−50:11 INDENT
256−50:11 lit ~
257−50:13 lit ~
258−51:11 NEWLINE
259−51:11 glyph [
260−51:12 tight name item
261−51:17 name rest
262−51:21 tight glyph ]
263−51:23 glyph [
264−51:24 tight glyph (
265−51:25 tight name f
266−51:27 name item
267−51:31 tight glyph )
268−51:33 glyph (
269−51:34 tight name turn
270−51:39 name rest
271−51:44 name f
272−51:45 tight glyph )
273−51:46 tight glyph ]
274−53:1 DEDENT
275−53:1 DEDENT
276−53:1 DEDENT
277−53:1 DEDENT
278−53:1 DEDENT
279−53:1 NEWLINE
280−53:1 glyph +$
281−53:4 name dime
282−53:9 glyph [
283−53:10 tight name p
284−53:11 tight glyph =
285−53:12 tight aura @ta
286−53:16 name q
287−53:17 tight glyph =
288−53:18 tight aura @
289−53:19 tight glyph ]
290−55:1 NEWLINE
291−55:1 glyph +$
292−55:4 name hair
293−55:9 glyph [
294−55:10 tight name p
295−55:11 tight glyph =
296−55:12 tight aura @ud
297−55:16 name q
298−55:17 tight glyph =
299−55:18 tight aura @ud
300−55:21 tight glyph ]
301−57:1 NEWLINE
302−57:1 glyph +$
303−57:4 name pint
304−57:9 glyph [
305−57:10 tight name p
306−57:11 tight glyph =
307−57:12 tight glyph [
308−57:13 tight name p
309−57:14 tight glyph =
310−57:15 tight aura @
311−57:17 name q
312−57:18 tight glyph =
313−57:19 tight aura @
314−57:20 tight glyph ]
315−57:22 name q
316−57:23 tight glyph =
317−57:24 tight glyph [
318−57:25 tight name p
319−57:26 tight glyph =
320−57:27 tight aura @
321−57:29 name q
322−57:30 tight glyph =
323−57:31 tight aura @
324−57:32 tight glyph ]
325−57:33 tight glyph ]
326−59:1 NEWLINE
327−59:1 glyph +$
328−59:4 name coin
329−60:3 INDENT
330−60:3 glyph [
331−60:4 tight lit %$
332−60:7 name p
333−60:8 tight glyph =
334−60:9 tight name dime
335−60:13 tight glyph ]
336−61:3 NEWLINE
337−61:3 glyph [
338−61:4 tight lit %blob
339−61:10 name p
340−61:11 tight glyph =
341−61:12 tight glyph *
342−61:13 tight glyph ]
343−62:3 NEWLINE
344−62:3 glyph [
345−62:4 tight lit %many
346−62:10 name p
347−62:11 tight glyph =
348−62:12 tight glyph (
349−62:13 tight name list
350−62:18 name coin
351−62:22 tight glyph )
352−62:23 tight glyph ]
353−64:1 DEDENT
354−64:1 NEWLINE
355−64:1 glyph +$
356−64:4 name pair
357−64:9 glyph |$
358−64:12 glyph [
359−64:13 tight tvar A
360−64:15 tvar B
361−64:16 tight glyph ]
362−64:18 glyph [
363−64:19 tight name p
364−64:20 tight glyph =
365−64:21 tight tvar A
366−64:23 name q
367−64:24 tight glyph =
368−64:25 tight tvar B
369−64:26 tight glyph ]
370−66:1 NEWLINE
371−66:1 glyph +$
372−66:4 name trel
373−66:9 glyph |$
374−66:12 glyph [
375−66:13 tight tvar A
376−66:15 tvar B
377−66:17 tvar C
378−66:18 tight glyph ]
379−66:20 glyph [
380−66:21 tight name p
381−66:22 tight glyph =
382−66:23 tight tvar A
383−66:25 name q
384−66:26 tight glyph =
385−66:27 tight tvar B
386−66:29 name r
387−66:30 tight glyph =
388−66:31 tight tvar C
389−66:32 tight glyph ]
390−68:1 NEWLINE
391−68:1 glyph +$
392−68:4 name qual
393−68:9 glyph |$
394−68:12 glyph [
395−68:13 tight tvar A
396−68:15 tvar B
397−68:17 tvar C
398−68:19 tvar D
399−68:20 tight glyph ]
400−68:22 glyph [
401−68:23 tight name p
402−68:24 tight glyph =
403−68:25 tight tvar A
404−68:27 name q
405−68:28 tight glyph =
406−68:29 tight tvar B
407−68:31 name r
408−68:32 tight glyph =
409−68:33 tight tvar C
410−68:35 name s
411−68:36 tight glyph =
412−68:37 tight tvar D
413−68:38 tight glyph ]
414−70:1 NEWLINE
415−70:1 glyph +$
416−70:4 name cord
417−70:9 aura @t
418−72:1 NEWLINE
419−72:1 glyph +$
420−72:4 name knot
421−72:9 aura @ta
422−74:1 NEWLINE
423−74:1 glyph +$
424−74:4 name tape
425−74:9 glyph (
426−74:10 tight name list
427−74:15 aura @tD
428−74:18 tight glyph )
429−76:1 NEWLINE
430−76:1 glyph +$
431−76:4 name path
432−76:9 glyph (
433−76:10 tight name list
434−76:15 name knot
435−76:19 tight glyph )
436−78:1 NEWLINE
437−78:1 glyph +$
438−78:4 name tank
439−79:3 INDENT
440−79:3 name cord
441−80:3 NEWLINE
442−80:3 glyph [
443−80:4 tight lit %leaf
444−80:10 name p
445−80:11 tight glyph =
446−80:12 tight name tape
447−80:16 tight glyph ]
448−81:3 NEWLINE
449−81:3 glyph [
450−81:4 tight lit %palm
451−81:10 name p
452−81:11 tight glyph =
453−81:12 tight glyph (
454−81:13 tight name qual
455−81:18 name tape
456−81:23 name tape
457−81:28 name tape
458−81:33 name tape
459−81:37 tight glyph )
460−81:39 name q
461−81:40 tight glyph =
462−81:41 tight glyph (
463−81:42 tight name list
464−81:47 name tank
465−81:51 tight glyph )
466−81:52 tight glyph ]
467−82:3 NEWLINE
468−82:3 glyph [
469−82:4 tight lit %rose
470−82:10 name p
471−82:11 tight glyph =
472−82:12 tight glyph (
473−82:13 tight name trel
474−82:18 name tape
475−82:23 name tape
476−82:28 name tape
477−82:32 tight glyph )
478−82:34 name q
479−82:35 tight glyph =
480−82:36 tight glyph (
481−82:37 tight name list
482−82:42 name tank
483−82:46 tight glyph )
484−82:47 tight glyph ]
485−84:1 DEDENT
486−84:1 NEWLINE
487−84:1 glyph +$
488−84:4 name nail
489−84:9 glyph [
490−84:10 tight name p
491−84:11 tight glyph =
492−84:12 tight name hair
493−84:17 name q
494−84:18 tight glyph =
495−84:19 tight name tape
496−84:23 tight glyph ]
497−86:1 NEWLINE
498−86:1 glyph +$
499−86:4 name edge
500−86:9 glyph [
501−86:10 tight name p
502−86:11 tight glyph =
503−86:12 tight name hair
504−86:17 name q
505−86:18 tight glyph =
506−86:19 tight glyph (
507−86:20 tight name unit
508−86:25 glyph [
509−86:26 tight name p
510−86:27 tight glyph =
511−86:28 tight glyph *
512−86:30 name q
513−86:31 tight glyph =
514−86:32 tight name nail
515−86:36 tight glyph ]
516−86:37 tight glyph )
517−86:38 tight glyph ]
518−88:1 NEWLINE
519−88:1 glyph +$
520−88:4 name rule
521−88:9 glyph $-(
522−88:12 tight name nail
523−88:17 name edge
524−88:21 tight glyph )
525−90:1 NEWLINE
526−90:1 glyph +$
527−90:4 name spot
528−90:9 glyph [
529−90:10 tight name p
530−90:11 tight glyph =
531−90:12 tight name path
532−90:17 name q
533−90:18 tight glyph =
534−90:19 tight name pint
535−90:23 tight glyph ]
536−92:1 NEWLINE
537−92:1 glyph +$
538−92:4 name toon
539−93:3 INDENT
540−93:3 glyph [
541−93:4 tight lit %0
542−93:7 name p
543−93:8 tight glyph =
544−93:9 tight glyph *
545−93:10 tight glyph ]
546−94:3 NEWLINE
547−94:3 glyph [
548−94:4 tight lit %1
549−94:7 name p
550−94:8 tight glyph =
551−94:9 tight glyph *
552−94:10 tight glyph ]
553−95:3 NEWLINE
554−95:3 glyph [
555−95:4 tight lit %2
556−95:7 name p
557−95:8 tight glyph =
558−95:9 tight glyph (
559−95:10 tight name list
560−95:15 name tank
561−95:19 tight glyph )
562−95:20 tight glyph ]
563−97:1 DEDENT
564−97:1 NEWLINE
565−97:1 glyph +$
566−97:4 name like
567−97:9 glyph |$
568−97:12 glyph [
569−97:13 tight tvar A
570−97:14 tight glyph ]
571−97:16 glyph [
572−97:17 tight name p
573−97:18 tight glyph =
574−97:19 tight name hair
575−97:24 name q
576−97:25 tight glyph =
577−97:26 tight glyph (
578−97:27 tight name unit
579−97:32 glyph [
580−97:33 tight name p
581−97:34 tight glyph =
582−97:35 tight tvar A
583−97:37 name q
584−97:38 tight glyph =
585−97:39 tight name nail
586−97:43 tight glyph ]
587−97:44 tight glyph )
588−97:45 tight glyph ]
589−99:1 NEWLINE
590−99:1 glyph ++
591−99:4 name wonk
592−99:9 glyph |=
593−99:12 name veq
594−99:15 tight glyph =
595−99:16 tight glyph (
596−99:17 tight name like
597−99:22 tvar A
598−99:23 tight glyph )
599−100:3 INDENT
600−100:3 glyph ?-
601−100:6 wing q.veq
602−101:5 INDENT
603−101:5 lit ~
604−101:7 glyph !!
605−102:5 NEWLINE
606−102:5 glyph [
607−102:6 tight lit ~
608−102:8 name product
609−102:15 tight glyph ]
610−102:17 wing p.product
611−104:1 DEDENT
612−104:1 DEDENT
613−104:1 NEWLINE
614−104:1 glyph +$
615−104:4 name lone
616−104:9 glyph |$
617−104:12 glyph [
618−104:13 tight tvar A
619−104:14 tight glyph ]
620−104:16 glyph [
621−104:17 tight name p
622−104:18 tight glyph =
623−104:19 tight tvar A
624−104:20 tight glyph ]
625−106:1 NEWLINE
626−106:1 glyph +$
627−106:4 name lest
628−106:9 glyph |$
629−106:12 glyph [
630−106:13 tight tvar A
631−106:14 tight glyph ]
632−106:16 glyph [
633−106:17 tight name i
634−106:18 tight glyph =
635−106:19 tight tvar A
636−106:21 name t
637−106:22 tight glyph =
638−106:23 tight glyph (
639−106:24 tight name list
640−106:29 tvar A
641−106:30 tight glyph )
642−106:31 tight glyph ]
643−108:1 NEWLINE
644−108:1 glyph +$
645−108:4 name pole
646−108:9 glyph |$
647−108:12 glyph [
648−108:13 tight tvar A
649−108:14 tight glyph ]
650−109:3 INDENT
651−109:3 lit ~
652−110:3 NEWLINE
653−110:3 glyph [
654−110:4 tight tvar A
655−110:6 glyph (
656−110:7 tight name pole
657−110:12 tvar A
658−110:13 tight glyph )
659−110:14 tight glyph ]
660−112:1 DEDENT
661−112:1 NEWLINE
662−112:1 glyph +$
663−112:4 name quip
664−112:9 glyph |$
665−112:12 glyph [
666−112:13 tight tvar A
667−112:15 tvar B
668−112:16 tight glyph ]
669−112:18 glyph [
670−112:19 tight glyph (
671−112:20 tight name list
672−112:25 tvar A
673−112:26 tight glyph )
674−112:28 tvar B
675−112:29 tight glyph ]
676−114:1 NEWLINE
677−114:1 glyph +$
678−114:4 name tree
679−114:9 glyph |$
680−114:12 glyph [
681−114:13 tight tvar A
682−114:14 tight glyph ]
683−115:3 INDENT
684−115:3 lit ~
685−116:3 NEWLINE
686−116:3 glyph [
687−116:4 tight name n
688−116:5 tight glyph =
689−116:6 tight tvar A
690−116:8 name l
691−116:9 tight glyph =
692−116:10 tight glyph (
693−116:11 tight name tree
694−116:16 tvar A
695−116:17 tight glyph )
696−116:19 name r
697−116:20 tight glyph =
698−116:21 tight glyph (
699−116:22 tight name tree
700−116:27 tvar A
701−116:28 tight glyph )
702−116:29 tight glyph ]
703−118:1 DEDENT
704−118:1 NEWLINE
705−118:1 glyph +$
706−118:4 name each
707−118:9 glyph |$
708−118:12 glyph [
709−118:13 tight tvar A
710−118:15 tvar B
711−118:16 tight glyph ]
712−119:3 INDENT
713−119:3 glyph [
714−119:4 tight lit %|
715−119:7 name p
716−119:8 tight glyph =
717−119:9 tight tvar B
718−119:10 tight glyph ]
719−120:3 NEWLINE
720−120:3 glyph [
721−120:4 tight lit %&
722−120:7 name p
723−120:8 tight glyph =
724−120:9 tight tvar A
725−120:10 tight glyph ]
726−122:1 DEDENT
727−122:1 NEWLINE
728−122:1 glyph +$
729−122:4 name bloq
730−122:9 aura @
731−124:1 NEWLINE
732−124:1 glyph ++
733−124:4 name some
734−124:9 glyph |=
735−124:12 name item
736−124:16 tight glyph =
737−124:17 tight tvar A
738−124:19 glyph `
739−124:20 tight name item
740−126:1 NEWLINE
741−126:1 glyph ++
742−126:4 name lure
743−126:9 glyph |=
744−126:12 name item
745−126:16 tight glyph =
746−126:17 tight tvar A
747−127:3 INDENT
748−127:3 glyph ^-
749−127:6 glyph (
750−127:7 tight name list
751−127:12 tvar A
752−127:13 tight glyph )
753−127:15 glyph [
754−127:16 tight name item
755−127:21 lit ~
756−127:22 tight glyph ]
757−129:1 DEDENT
758−129:1 NEWLINE
759−129:1 glyph ++
760−129:4 name snoc
761−129:9 glyph |=
762−129:12 name args
763−129:16 tight glyph =
764−129:17 tight glyph [
765−129:18 tight glyph (
766−129:19 tight name list
767−129:24 tvar A
768−129:25 tight glyph )
769−129:27 tvar A
770−129:28 tight glyph ]
771−130:3 INDENT
772−130:3 glyph ?-
773−130:6 name args
774−131:5 INDENT
775−131:5 glyph [
776−131:6 tight name xs
777−131:9 name item
778−131:13 tight glyph ]
779−131:15 glyph (
780−131:16 tight name weld
781−131:21 name xs
782−131:24 glyph [
783−131:25 tight name item
784−131:30 lit ~
785−131:31 tight glyph ]
786−131:32 tight glyph )
787−133:1 DEDENT
788−133:1 DEDENT
789−133:1 NEWLINE
790−133:1 glyph ++
791−133:4 name flop
792−133:9 glyph |=
793−133:12 name xs
794−133:14 tight glyph =
795−133:15 tight glyph (
796−133:16 tight name list
797−133:21 tvar A
798−133:22 tight glyph )
799−134:3 INDENT
800−134:3 glyph ++
801−134:6 name reverse-into
802−134:19 glyph |=
803−134:22 name args
804−134:26 tight glyph =
805−134:27 tight glyph [
806−134:28 tight glyph (
807−134:29 tight name list
808−134:34 tvar A
809−134:35 tight glyph )
810−134:37 glyph (
811−134:38 tight name list
812−134:43 tvar A
813−134:44 tight glyph )
814−134:45 tight glyph ]
815−135:5 INDENT
816−135:5 glyph ?-
817−135:8 name args
818−136:7 INDENT
819−136:7 glyph [
820−136:8 tight name rest
821−136:13 name acc
822−136:16 tight glyph ]
823−137:9 INDENT
824−137:9 glyph ?-
825−137:12 name rest
826−138:11 INDENT
827−138:11 lit ~
828−138:13 name acc
829−139:11 NEWLINE
830−139:11 glyph [
831−139:12 tight name item
832−139:17 name more
833−139:21 tight glyph ]
834−139:23 glyph (
835−139:24 tight name reverse-into
836−139:37 name more
837−139:42 glyph [
838−139:43 tight name item
839−139:48 name acc
840−139:51 tight glyph ]
841−139:52 tight glyph )
842−140:3 DEDENT
843−140:3 DEDENT
844−140:3 DEDENT
845−140:3 DEDENT
846−140:3 NEWLINE
847−140:3 glyph (
848−140:4 tight name reverse-into
849−140:17 name xs
850−140:20 lit ~
851−140:21 tight glyph )
852−140:22 DEDENT
853−140:22 NEWLINE
tests/golden/prelude-list-helpers/tree.txtdeleted−346
@@ -1,346 +0,0 @@
1−(module
2− (value 2:1 same
3− (gate 2:9
4− (face 2:12 x (tvar 2:14 A))
5− (wing 2:16 x)))
6− (value 4:1 head
7− (gate 4:9
8− (face 4:12 p
9− (cell 4:14 (tvar 4:15 A) (tvar 4:17 B)))
10− (body 5:3
11− (branch 5:3
12− (wing 5:6 p)
13− (arm 6:5
14− (cell 6:5 (bind 6:6 a) (bind 6:8 b))
15− (wing 6:11 a))))))
16− (value 8:1 tail
17− (gate 8:9
18− (face 8:12 p
19− (cell 8:14 (tvar 8:15 A) (tvar 8:17 B)))
20− (body 9:3
21− (branch 9:3
22− (wing 9:6 p)
23− (arm 10:5
24− (cell 10:5 (bind 10:6 a) (bind 10:8 b))
25− (wing 10:11 b))))))
26− (value 12:1 not
27− (gate 12:8
28− (face 12:11 b (flag 12:13))
29− (body 13:3
30− (branch 13:3
31− (wing 13:6 b)
32− (arm 14:5 (lit 14:5 %.y) (lit 14:9 %.n))
33− (arm 15:5 (lit 15:5 %.n) (lit 15:9 %.y))))))
34− (mold 17:1 list
35− (generic 17:9 A
36− (union 18:3
37− (const 18:3 ~)
38− (cell 19:3
39− (face 19:4 i (tvar 19:6 A))
40− (face 19:8 t
41− (apply 19:10 list (tvar 19:16 A)))))))
42− (mold 21:1 unit
43− (generic 21:9 A
44− (union 22:3
45− (const 22:3 ~)
46− (cell 23:3
47− (const 23:4 ~)
48− (face 23:6 u (tvar 23:8 A))))))
49− (value 25:1 fall
50− (gate 25:9
51− (face 25:12 args
52− (cell 25:17
53− (apply 25:18 unit (tvar 25:24 A))
54− (tvar 25:27 A)))
55− (body 26:3
56− (branch 26:3
57− (wing 26:6 args)
58− (arm 27:5
59− (cell 27:5 (bind 27:6 maybe) (bind 27:12 fallback))
60− (body 28:7
61− (branch 28:7
62− (wing 28:10 maybe)
63− (arm 29:9 (lit 29:9 ~) (wing 29:11 fallback))
64− (arm 30:9
65− (cell 30:9 (lit 30:10 ~) (bind 30:12 value))
66− (wing 30:19 value)))))))))
67− (value 32:1 need
68− (gate 32:9
69− (face 32:12 maybe
70− (apply 32:18 unit (tvar 32:24 A)))
71− (body 33:3
72− (branch 33:3
73− (wing 33:6 maybe)
74− (arm 34:5 (lit 34:5 ~) (crash 34:7))
75− (arm 35:5
76− (cell 35:5 (lit 35:6 ~) (bind 35:8 value))
77− (wing 35:15 value))))))
78− (value 37:1 weld
79− (gate 37:9
80− (face 37:12 args
81− (cell 37:17
82− (apply 37:18 list (tvar 37:24 A))
83− (apply 37:27 list (tvar 37:33 A))))
84− (body 38:3
85− (branch 38:3
86− (wing 38:6 args)
87− (arm 39:5
88− (cell 39:5 (bind 39:6 xs) (bind 39:9 ys))
89− (body 40:7
90− (cast 40:7
91− (apply 40:10 list (tvar 40:16 A))
92− (body 41:9
93− (branch 41:9
94− (wing 41:12 xs)
95− (arm 42:11 (lit 42:11 ~) (wing 42:13 ys))
96− (arm 43:11
97− (cell 43:11 (bind 43:12 item) (bind 43:17 rest))
98− (tuple 43:23
99− (wing 43:24 item)
100− (group 43:29
101− (call 43:30 (wing 43:30 weld) (wing 43:35 rest) (wing 43:40 ys))))))))))))))
102− (value 45:1 turn
103− (gate 45:9
104− (face 45:12 args
105− (cell 45:17
106− (apply 45:18 list (tvar 45:24 A))
107− (fn 45:27 (tvar 45:30 A) (tvar 45:32 B))))
108− (body 46:3
109− (branch 46:3
110− (wing 46:6 args)
111− (arm 47:5
112− (cell 47:5 (bind 47:6 xs) (bind 47:9 f))
113− (body 48:7
114− (cast 48:7
115− (apply 48:10 list (tvar 48:16 B))
116− (body 49:9
117− (branch 49:9
118− (wing 49:12 xs)
119− (arm 50:11 (lit 50:11 ~) (lit 50:13 ~))
120− (arm 51:11
121− (cell 51:11 (bind 51:12 item) (bind 51:17 rest))
122− (tuple 51:23
123− (group 51:24
124− (call 51:25 (wing 51:25 f) (wing 51:27 item)))
125− (group 51:33
126− (call 51:34 (wing 51:34 turn) (wing 51:39 rest) (wing 51:44 f))))))))))))))
127− (mold 53:1 dime
128− (cell 53:9
129− (face 53:10 p (aura 53:12 @ta))
130− (face 53:16 q (aura 53:18 @))))
131− (mold 55:1 hair
132− (cell 55:9
133− (face 55:10 p (aura 55:12 @ud))
134− (face 55:16 q (aura 55:18 @ud))))
135− (mold 57:1 pint
136− (cell 57:9
137− (face 57:10 p
138− (cell 57:12
139− (face 57:13 p (aura 57:15 @))
140− (face 57:17 q (aura 57:19 @))))
141− (face 57:22 q
142− (cell 57:24
143− (face 57:25 p (aura 57:27 @))
144− (face 57:29 q (aura 57:31 @))))))
145− (mold 59:1 coin
146− (union 60:3
147− (cell 60:3
148− (const 60:4 %$)
149− (face 60:7 p (ref 60:9 dime)))
150− (cell 61:3
151− (const 61:4 %blob)
152− (face 61:10 p (noun 61:12)))
153− (cell 62:3
154− (const 62:4 %many)
155− (face 62:10 p
156− (apply 62:12 list (ref 62:18 coin))))))
157− (mold 64:1 pair
158− (generic 64:9 A B
159− (cell 64:18
160− (face 64:19 p (tvar 64:21 A))
161− (face 64:23 q (tvar 64:25 B)))))
162− (mold 66:1 trel
163− (generic 66:9 A B C
164− (cell 66:20
165− (face 66:21 p (tvar 66:23 A))
166− (face 66:25 q (tvar 66:27 B))
167− (face 66:29 r (tvar 66:31 C)))))
168− (mold 68:1 qual
169− (generic 68:9 A B C D
170− (cell 68:22
171− (face 68:23 p (tvar 68:25 A))
172− (face 68:27 q (tvar 68:29 B))
173− (face 68:31 r (tvar 68:33 C))
174− (face 68:35 s (tvar 68:37 D)))))
175− (mold 70:1 cord (aura 70:9 @t))
176− (mold 72:1 knot (aura 72:9 @ta))
177− (mold 74:1 tape
178− (apply 74:9 list (aura 74:15 @tD)))
179− (mold 76:1 path
180− (apply 76:9 list (ref 76:15 knot)))
181− (mold 78:1 tank
182− (union 79:3
183− (ref 79:3 cord)
184− (cell 80:3
185− (const 80:4 %leaf)
186− (face 80:10 p (ref 80:12 tape)))
187− (cell 81:3
188− (const 81:4 %palm)
189− (face 81:10 p
190− (apply 81:12 qual (ref 81:18 tape) (ref 81:23 tape) (ref 81:28 tape) (ref 81:33 tape)))
191− (face 81:39 q
192− (apply 81:41 list (ref 81:47 tank))))
193− (cell 82:3
194− (const 82:4 %rose)
195− (face 82:10 p
196− (apply 82:12 trel (ref 82:18 tape) (ref 82:23 tape) (ref 82:28 tape)))
197− (face 82:34 q
198− (apply 82:36 list (ref 82:42 tank))))))
199− (mold 84:1 nail
200− (cell 84:9
201− (face 84:10 p (ref 84:12 hair))
202− (face 84:17 q (ref 84:19 tape))))
203− (mold 86:1 edge
204− (cell 86:9
205− (face 86:10 p (ref 86:12 hair))
206− (face 86:17 q
207− (apply 86:19 unit
208− (cell 86:25
209− (face 86:26 p (noun 86:28))
210− (face 86:30 q (ref 86:32 nail)))))))
211− (mold 88:1 rule
212− (fn 88:9 (ref 88:12 nail) (ref 88:17 edge)))
213− (mold 90:1 spot
214− (cell 90:9
215− (face 90:10 p (ref 90:12 path))
216− (face 90:17 q (ref 90:19 pint))))
217− (mold 92:1 toon
218− (union 93:3
219− (cell 93:3
220− (const 93:4 %0)
221− (face 93:7 p (noun 93:9)))
222− (cell 94:3
223− (const 94:4 %1)
224− (face 94:7 p (noun 94:9)))
225− (cell 95:3
226− (const 95:4 %2)
227− (face 95:7 p
228− (apply 95:9 list (ref 95:15 tank))))))
229− (mold 97:1 like
230− (generic 97:9 A
231− (cell 97:16
232− (face 97:17 p (ref 97:19 hair))
233− (face 97:24 q
234− (apply 97:26 unit
235− (cell 97:32
236− (face 97:33 p (tvar 97:35 A))
237− (face 97:37 q (ref 97:39 nail))))))))
238− (value 99:1 wonk
239− (gate 99:9
240− (face 99:12 veq
241− (apply 99:16 like (tvar 99:22 A)))
242− (body 100:3
243− (branch 100:3
244− (wing 100:6 q.veq)
245− (arm 101:5 (lit 101:5 ~) (crash 101:7))
246− (arm 102:5
247− (cell 102:5 (lit 102:6 ~) (bind 102:8 product))
248− (wing 102:17 p.product))))))
249− (mold 104:1 lone
250− (generic 104:9 A
251− (cell 104:16
252− (face 104:17 p (tvar 104:19 A)))))
253− (mold 106:1 lest
254− (generic 106:9 A
255− (cell 106:16
256− (face 106:17 i (tvar 106:19 A))
257− (face 106:21 t
258− (apply 106:23 list (tvar 106:29 A))))))
259− (mold 108:1 pole
260− (generic 108:9 A
261− (union 109:3
262− (const 109:3 ~)
263− (cell 110:3
264− (tvar 110:4 A)
265− (apply 110:6 pole (tvar 110:12 A))))))
266− (mold 112:1 quip
267− (generic 112:9 A B
268− (cell 112:18
269− (apply 112:19 list (tvar 112:25 A))
270− (tvar 112:28 B))))
271− (mold 114:1 tree
272− (generic 114:9 A
273− (union 115:3
274− (const 115:3 ~)
275− (cell 116:3
276− (face 116:4 n (tvar 116:6 A))
277− (face 116:8 l
278− (apply 116:10 tree (tvar 116:16 A)))
279− (face 116:19 r
280− (apply 116:21 tree (tvar 116:27 A)))))))
281− (mold 118:1 each
282− (generic 118:9 A B
283− (union 119:3
284− (cell 119:3
285− (const 119:4 %|)
286− (face 119:7 p (tvar 119:9 B)))
287− (cell 120:3
288− (const 120:4 %&)
289− (face 120:7 p (tvar 120:9 A))))))
290− (mold 122:1 bloq (aura 122:9 @))
291− (value 124:1 some
292− (gate 124:9
293− (face 124:12 item (tvar 124:17 A))
294− (unit 124:19 (wing 124:20 item))))
295− (value 126:1 lure
296− (gate 126:9
297− (face 126:12 item (tvar 126:17 A))
298− (body 127:3
299− (cast 127:3
300− (apply 127:6 list (tvar 127:12 A))
301− (tuple 127:15 (wing 127:16 item) (lit 127:21 ~))))))
302− (value 129:1 snoc
303− (gate 129:9
304− (face 129:12 args
305− (cell 129:17
306− (apply 129:18 list (tvar 129:24 A))
307− (tvar 129:27 A)))
308− (body 130:3
309− (branch 130:3
310− (wing 130:6 args)
311− (arm 131:5
312− (cell 131:5 (bind 131:6 xs) (bind 131:9 item))
313− (group 131:15
314− (call 131:16
315− (wing 131:16 weld)
316− (wing 131:21 xs)
317− (tuple 131:24 (wing 131:25 item) (lit 131:30 ~)))))))))
318− (value 133:1 flop
319− (gate 133:9
320− (face 133:12 xs
321− (apply 133:15 list (tvar 133:21 A)))
322− (body 134:3
323− (value 134:3 reverse-into
324− (gate 134:19
325− (face 134:22 args
326− (cell 134:27
327− (apply 134:28 list (tvar 134:34 A))
328− (apply 134:37 list (tvar 134:43 A))))
329− (body 135:5
330− (branch 135:5
331− (wing 135:8 args)
332− (arm 136:7
333− (cell 136:7 (bind 136:8 rest) (bind 136:13 acc))
334− (body 137:9
335− (branch 137:9
336− (wing 137:12 rest)
337− (arm 138:11 (lit 138:11 ~) (wing 138:13 acc))
338− (arm 139:11
339− (cell 139:11 (bind 139:12 item) (bind 139:17 more))
340− (group 139:23
341− (call 139:24
342− (wing 139:24 reverse-into)
343− (wing 139:37 more)
344− (tuple 139:42 (wing 139:43 item) (wing 139:48 acc))))))))))))
345− (group 140:3
346− (call 140:4 (wing 140:4 reverse-into) (wing 140:17 xs) (lit 140:20 ~)))))))
tests/golden/prelude-list-helpers/types.txtdeleted−41
@@ -1,41 +0,0 @@
1−partial inference; module not checked
2−++ same: $-(A A)
3−++ head: $-([A B] A)
4−++ tail: $-([A B] B)
5−++ not: $-(? ?)
6−+$ list: cases proven disjoint; mold not checked
7−+$ unit: cases proven disjoint; mold not checked
8−++ fall: $-([(unit A) A] A)
9−++ need: $-((unit A) A)
10−++ weld: sample mold is not supported by partial inference
11−++ turn: sample mold is not supported by partial inference
12−+$ dime: not checked
13−+$ hair: not checked
14−+$ pint: not checked
15−+$ coin: cases proven disjoint; mold not checked
16−+$ pair: not checked
17−+$ trel: not checked
18−+$ qual: not checked
19−+$ cord: not checked
20−+$ knot: not checked
21−+$ tape: not checked
22−+$ path: not checked
23−+$ tank: cases proven disjoint; mold not checked
24−+$ nail: not checked
25−+$ edge: not checked
26−+$ rule: not checked
27−+$ spot: not checked
28−+$ toon: cases proven disjoint; mold not checked
29−+$ like: not checked
30−++ wonk: sample mold is not supported by partial inference
31−+$ lone: not checked
32−+$ lest: not checked
33−+$ pole: cases proven disjoint; mold not checked
34−+$ quip: not checked
35−+$ tree: cases proven disjoint; mold not checked
36−+$ each: cases proven disjoint; mold not checked
37−+$ bloq: not checked
38−++ some: unit construction needs the standard prelude in partial inference
39−++ lure: cast mold is not supported by partial inference
40−++ snoc: sample mold is not supported by partial inference
41−++ flop: sample mold is not supported by partial inference
tests/golden/prelude-list-unit/about.txt+1−1
@@ -1,4 +1,4 @@
11source: Overview, Prelude: "Hoon's standard library regrouped, written in Jibb"; its data molds include `unit` and `list`, its unit helpers include `fall` and `need`, and its list helpers include `weld` and `turn`.
2−tests: The prelude's generic recursive list and unit molds and its Jibb-written helpers; the partial inference report does not yet resolve these molds or check recursive gates.
2+tests: The current prelude's generic recursive list and unit molds and its Jibb-written helpers; the partial inference report does not yet resolve these molds or check recursive gates.
33expect: parses
44expect-types: a partial inference report, not a checked module
tests/golden/prelude-list-unit/source.jibb+6−8
@@ -37,15 +37,13 @@
3737++ weld |= args=[(list A) (list A)]
3838 ?- args
3939 [xs ys]
40− ^- (list A)
41− ?- xs
42− ~ ys
43− [item rest] [item (weld rest ys)]
40+ ?- xs
41+ ~ ys
42+ [item rest] [item (weld rest ys)]
4443
4544++ turn |= args=[(list A) $-(A B)]
4645 ?- args
4746 [xs f]
48− ^- (list B)
49− ?- xs
50− ~ ~
51− [item rest] [(f item) (turn rest f)]
47+ ?- xs
48+ ~ ~
49+ [item rest] [(f item) (turn rest f)]
tests/golden/prelude-list-unit/tokens.txt+72−86
@@ -190,90 +190,76 @@
19019039:9 name ys
19119139:11 tight glyph ]
19219240:7 INDENT
193−40:7 glyph ^-
194−40:10 glyph (
195−40:11 tight name list
196−40:16 tvar A
197−40:17 tight glyph )
193+40:7 glyph ?-
194+40:10 name xs
19819541:9 INDENT
199−41:9 glyph ?-
200−41:12 name xs
201−42:11 INDENT
202−42:11 lit ~
203−42:13 name ys
204−43:11 NEWLINE
205−43:11 glyph [
206−43:12 tight name item
207−43:17 name rest
208−43:21 tight glyph ]
209−43:23 glyph [
210−43:24 tight name item
211−43:29 glyph (
212−43:30 tight name weld
213−43:35 name rest
214−43:40 name ys
215−43:42 tight glyph )
216−43:43 tight glyph ]
217−45:1 DEDENT
218−45:1 DEDENT
219−45:1 DEDENT
220−45:1 DEDENT
221−45:1 DEDENT
222−45:1 NEWLINE
223−45:1 glyph ++
224−45:4 name turn
225−45:9 glyph |=
226−45:12 name args
227−45:16 tight glyph =
228−45:17 tight glyph [
229−45:18 tight glyph (
230−45:19 tight name list
231−45:24 tvar A
232−45:25 tight glyph )
233−45:27 glyph $-(
234−45:30 tight tvar A
235−45:32 tvar B
236−45:33 tight glyph )
237−45:34 tight glyph ]
238−46:3 INDENT
239−46:3 glyph ?-
240−46:6 name args
241−47:5 INDENT
242−47:5 glyph [
243−47:6 tight name xs
244−47:9 name f
245−47:10 tight glyph ]
246−48:7 INDENT
247−48:7 glyph ^-
248−48:10 glyph (
249−48:11 tight name list
250−48:16 tvar B
251−48:17 tight glyph )
252−49:9 INDENT
253−49:9 glyph ?-
254−49:12 name xs
255−50:11 INDENT
256−50:11 lit ~
257−50:13 lit ~
258−51:11 NEWLINE
259−51:11 glyph [
260−51:12 tight name item
261−51:17 name rest
262−51:21 tight glyph ]
263−51:23 glyph [
264−51:24 tight glyph (
265−51:25 tight name f
266−51:27 name item
267−51:31 tight glyph )
268−51:33 glyph (
269−51:34 tight name turn
270−51:39 name rest
271−51:44 name f
272−51:45 tight glyph )
273−51:46 tight glyph ]
274−51:47 DEDENT
275−51:47 DEDENT
276−51:47 DEDENT
277−51:47 DEDENT
278−51:47 DEDENT
279−51:47 NEWLINE
196+41:9 lit ~
197+41:11 name ys
198+42:9 NEWLINE
199+42:9 glyph [
200+42:10 tight name item
201+42:15 name rest
202+42:19 tight glyph ]
203+42:21 glyph [
204+42:22 tight name item
205+42:27 glyph (
206+42:28 tight name weld
207+42:33 name rest
208+42:38 name ys
209+42:40 tight glyph )
210+42:41 tight glyph ]
211+44:1 DEDENT
212+44:1 DEDENT
213+44:1 DEDENT
214+44:1 DEDENT
215+44:1 NEWLINE
216+44:1 glyph ++
217+44:4 name turn
218+44:9 glyph |=
219+44:12 name args
220+44:16 tight glyph =
221+44:17 tight glyph [
222+44:18 tight glyph (
223+44:19 tight name list
224+44:24 tvar A
225+44:25 tight glyph )
226+44:27 glyph $-(
227+44:30 tight tvar A
228+44:32 tvar B
229+44:33 tight glyph )
230+44:34 tight glyph ]
231+45:3 INDENT
232+45:3 glyph ?-
233+45:6 name args
234+46:5 INDENT
235+46:5 glyph [
236+46:6 tight name xs
237+46:9 name f
238+46:10 tight glyph ]
239+47:7 INDENT
240+47:7 glyph ?-
241+47:10 name xs
242+48:9 INDENT
243+48:9 lit ~
244+48:11 lit ~
245+49:9 NEWLINE
246+49:9 glyph [
247+49:10 tight name item
248+49:15 name rest
249+49:19 tight glyph ]
250+49:21 glyph [
251+49:22 tight glyph (
252+49:23 tight name f
253+49:25 name item
254+49:29 tight glyph )
255+49:31 glyph (
256+49:32 tight name turn
257+49:37 name rest
258+49:42 name f
259+49:43 tight glyph )
260+49:44 tight glyph ]
261+49:45 DEDENT
262+49:45 DEDENT
263+49:45 DEDENT
264+49:45 DEDENT
265+49:45 NEWLINE
tests/golden/prelude-list-unit/tree.txt+31−37
@@ -87,40 +87,34 @@
8787 (arm 39:5
8888 (cell 39:5 (bind 39:6 xs) (bind 39:9 ys))
8989 (body 40:7
90− (cast 40:7
91− (apply 40:10 list (tvar 40:16 A))
92− (body 41:9
93− (branch 41:9
94− (wing 41:12 xs)
95− (arm 42:11 (lit 42:11 ~) (wing 42:13 ys))
96− (arm 43:11
97− (cell 43:11 (bind 43:12 item) (bind 43:17 rest))
98− (tuple 43:23
99− (wing 43:24 item)
100− (group 43:29
101− (call 43:30 (wing 43:30 weld) (wing 43:35 rest) (wing 43:40 ys))))))))))))))
102− (value 45:1 turn
103− (gate 45:9
104− (face 45:12 args
105− (cell 45:17
106− (apply 45:18 list (tvar 45:24 A))
107− (fn 45:27 (tvar 45:30 A) (tvar 45:32 B))))
108− (body 46:3
109− (branch 46:3
110− (wing 46:6 args)
111− (arm 47:5
112− (cell 47:5 (bind 47:6 xs) (bind 47:9 f))
113− (body 48:7
114− (cast 48:7
115− (apply 48:10 list (tvar 48:16 B))
116− (body 49:9
117− (branch 49:9
118− (wing 49:12 xs)
119− (arm 50:11 (lit 50:11 ~) (lit 50:13 ~))
120− (arm 51:11
121− (cell 51:11 (bind 51:12 item) (bind 51:17 rest))
122− (tuple 51:23
123− (group 51:24
124− (call 51:25 (wing 51:25 f) (wing 51:27 item)))
125− (group 51:33
126− (call 51:34 (wing 51:34 turn) (wing 51:39 rest) (wing 51:44 f)))))))))))))))
90+ (branch 40:7
91+ (wing 40:10 xs)
92+ (arm 41:9 (lit 41:9 ~) (wing 41:11 ys))
93+ (arm 42:9
94+ (cell 42:9 (bind 42:10 item) (bind 42:15 rest))
95+ (tuple 42:21
96+ (wing 42:22 item)
97+ (group 42:27
98+ (call 42:28 (wing 42:28 weld) (wing 42:33 rest) (wing 42:38 ys))))))))))))
99+ (value 44:1 turn
100+ (gate 44:9
101+ (face 44:12 args
102+ (cell 44:17
103+ (apply 44:18 list (tvar 44:24 A))
104+ (fn 44:27 (tvar 44:30 A) (tvar 44:32 B))))
105+ (body 45:3
106+ (branch 45:3
107+ (wing 45:6 args)
108+ (arm 46:5
109+ (cell 46:5 (bind 46:6 xs) (bind 46:9 f))
110+ (body 47:7
111+ (branch 47:7
112+ (wing 47:10 xs)
113+ (arm 48:9 (lit 48:9 ~) (lit 48:11 ~))
114+ (arm 49:9
115+ (cell 49:9 (bind 49:10 item) (bind 49:15 rest))
116+ (tuple 49:21
117+ (group 49:22
118+ (call 49:23 (wing 49:23 f) (wing 49:25 item)))
119+ (group 49:31
120+ (call 49:32 (wing 49:32 turn) (wing 49:37 rest) (wing 49:42 f)))))))))))))
tests/golden/prelude-list-unit/types.txt+2−2
@@ -5,7 +5,7 @@ partial inference; module not checked
55++ not: $-(? ?)
66+$ list: cases proven disjoint; mold not checked
77+$ unit: cases proven disjoint; mold not checked
8−++ fall: $-([(unit A) A] A)
9−++ need: $-((unit A) A)
8+++ fall: sample mold is not supported by partial inference
9+++ need: sample mold is not supported by partial inference
1010++ weld: sample mold is not supported by partial inference
1111++ turn: sample mold is not supported by partial inference
tests/golden/prelude-unit-list-transforms/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Overview, Prelude: "The exported inventory includes all names from the Hoon library sections listed below, excluding the groups explicitly left out"; Hoon 2a includes `drop`, `bind`, `biff`, `flit`, `both`, `clap` and `clef`, and 2b includes `join`, `murn`, `rear`, `snip`, `skim`, `skip`, `levy`, `lien`, `roll` and `reel`. Folds take an explicit start.
2−tests: The complete current prelude parses, including unit-to-list conversion, unit mapping and flat mapping, a curried unit-producing filter, three ways to combine units, including `clap` with one shared value type, complementary list filters, present-product mapping, joining, last-item operations, all/any predicates, and left and right folds. The filters retain the order of their selected items.
3−expect: parses
4−expect-types: a partial inference report, not a checked module; unit and list gate typing is not complete
tests/golden/prelude-unit-list-transforms/source.jibbdeleted−319
@@ -1,319 +0,0 @@
1−/= internal /lib/jibb/internal
2−+$ poke poke.internal
3−
4−:: Initial prelude functions. The rest of the inventory is still to come.
5−
6−++ same |= x=A x
7−
8−++ head |= p=[A B]
9− ?- p
10− [a b] a
11−
12−++ tail |= p=[A B]
13− ?- p
14− [a b] b
15−
16−++ not |= b=?
17− ?- b
18− %.y %.n
19− %.n %.y
20−
21−+$ list |$ [A]
22− ~
23− [i=A t=(list A)]
24−
25−+$ unit |$ [A]
26− ~
27− [~ u=A]
28−
29−++ fall |= args=[(unit A) A]
30− ?- args
31− [maybe fallback]
32− ?- maybe
33− ~ fallback
34− [~ value] value
35−
36−++ need |= maybe=(unit A)
37− ?- maybe
38− ~ !!
39− [~ value] value
40−
41−++ weld |= args=[(list A) (list A)]
42− ?- args
43− [xs ys]
44− ^- (list A)
45− ?- xs
46− ~ ys
47− [item rest] [item (weld rest ys)]
48−
49−++ turn |= args=[(list A) $-(A B)]
50− ?- args
51− [xs f]
52− ^- (list B)
53− ?- xs
54− ~ ~
55− [item rest] [(f item) (turn rest f)]
56−
57−+$ dime [p=@ta q=@]
58−
59−+$ hair [p=@ud q=@ud]
60−
61−+$ pint [p=[p=@ q=@] q=[p=@ q=@]]
62−
63−+$ coin
64− [%$ p=dime]
65− [%blob p=*]
66− [%many p=(list coin)]
67−
68−+$ pair |$ [A B] [p=A q=B]
69−
70−+$ trel |$ [A B C] [p=A q=B r=C]
71−
72−+$ qual |$ [A B C D] [p=A q=B r=C s=D]
73−
74−+$ cord @t
75−
76−+$ knot @ta
77−
78−+$ tape (list @tD)
79−
80−+$ path (list knot)
81−
82−+$ tank
83− cord
84− [%leaf p=tape]
85− [%palm p=(qual tape tape tape tape) q=(list tank)]
86− [%rose p=(trel tape tape tape) q=(list tank)]
87−
88−+$ nail [p=hair q=tape]
89−
90−+$ edge [p=hair q=(unit [p=* q=nail])]
91−
92−+$ rule $-(nail edge)
93−
94−+$ spot [p=path q=pint]
95−
96−+$ toon
97− [%0 p=*]
98− [%1 p=*]
99− [%2 p=(list tank)]
100−
101−+$ like |$ [A] [p=hair q=(unit [p=A q=nail])]
102−
103−++ wonk |= veq=(like A)
104− ?- q.veq
105− ~ !!
106− [~ product] p.product
107−
108−+$ lone |$ [A] [p=A]
109−
110−+$ lest |$ [A] [i=A t=(list A)]
111−
112−+$ pole |$ [A]
113− ~
114− [A (pole A)]
115−
116−+$ quip |$ [A B] [(list A) B]
117−
118−+$ tree |$ [A]
119− ~
120− [n=A l=(tree A) r=(tree A)]
121−
122−+$ each |$ [A B]
123− [%| p=B]
124− [%& p=A]
125−
126−+$ bloq @
127−
128−++ some |= item=A `item
129−
130−++ lure |= item=A
131− ^- (list A) [item ~]
132−
133−++ snoc |= args=[(list A) A]
134− ?- args
135− [xs item] (weld xs [item ~])
136−
137−++ flop |= xs=(list A)
138− ++ reverse-into |= args=[(list A) (list A)]
139− ?- args
140− [rest acc]
141− ?- rest
142− ~ acc
143− [item more] (reverse-into more [item acc])
144− (reverse-into xs ~)
145−
146−++ drop |= maybe=(unit A)
147− ^- (list A)
148− ?- maybe
149− ~ ~
150− [~ value] [value ~]
151−
152−++ bind |= args=[(unit A) $-(A B)]
153− ?- args
154− [maybe f] ^- (unit B)
155− ?- maybe
156− ~ ~
157− [~ value] `(f value)
158−
159−++ biff |= args=[(unit A) $-(A (unit B))]
160− ?- args
161− [maybe f] ^- (unit B)
162− ?- maybe
163− ~ ~
164− [~ value] (f value)
165−
166−++ both |= args=[(unit A) (unit B)]
167− ?- args
168− [first second] ^- (unit [A B])
169− ?- first
170− ~ ~
171− [~ a]
172− ?- second
173− ~ ~
174− [~ b] `[a b]
175−
176−++ clap |= args=[(unit A) (unit A) $-([A A] A)]
177− ?- args
178− [first second combine] ^- (unit A)
179− ?- first
180− ~ second
181− [~ a]
182− ?- second
183− ~ first
184− [~ b] `(combine a b)
185−
186−++ clef |= args=[(unit A) (unit B) $-([A B] (unit C))]
187− ?- args
188− [first second combine] ^- (unit C)
189− ?- first
190− ~ ~
191− [~ a]
192− ?- second
193− ~ ~
194− [~ b] (combine a b)
195−
196−++ skim |= args=[(list A) $-(A ?)]
197− ?- args
198− [xs predicate] ^- (list A)
199− ?- xs
200− ~ ~
201− [item rest]
202− ?- (predicate item)
203− %.y [item (skim rest predicate)]
204− %.n (skim rest predicate)
205−
206−++ skip |= args=[(list A) $-(A ?)]
207− ?- args
208− [xs predicate] ^- (list A)
209− ?- xs
210− ~ ~
211− [item rest]
212− ?- (predicate item)
213− %.y (skip rest predicate)
214− %.n [item (skip rest predicate)]
215−
216−++ levy |= args=[(list A) $-(A ?)]
217− ^- ?
218− ?- args
219− [xs predicate]
220− ?- xs
221− ~ %.y
222− [item rest]
223− ?- (predicate item)
224− %.y (levy rest predicate)
225− %.n %.n
226−
227−++ lien |= args=[(list A) $-(A ?)]
228− ^- ?
229− ?- args
230− [xs predicate]
231− ?- xs
232− ~ %.n
233− [item rest]
234− ?- (predicate item)
235− %.y %.y
236− %.n (lien rest predicate)
237−
238−++ roll |= args=[(list A) B $-([A B] B)]
239− ?- args
240− [xs start combine]
241− ?- xs
242− ~ start
243− [item rest] (roll rest (combine item start) combine)
244−
245−++ reel |= args=[(list A) B $-([A B] B)]
246− ?- args
247− [xs start combine]
248− ?- xs
249− ~ start
250− [item rest] (combine item (reel rest start combine))
251−
252−++ flit |= predicate=$-(A ?)
253− |= value=A
254− ^- (unit A)
255− ?- (predicate value)
256− %.y `value
257− %.n ~
258−
259−++ murn |= args=[(list A) $-(A (unit B))]
260− ?- args
261− [xs f] ^- (list B)
262− ?- xs
263− ~ ~
264− [item rest]
265− ?- (f item)
266− ~ (murn rest f)
267− [~ value] [value (murn rest f)]
268−
269−++ join |= args=[A (list A)]
270− ?- args
271− [separator xs] ^- (list A)
272− ?- xs
273− ~ ~
274− [item rest]
275− ?- rest
276− ~ [item ~]
277− [next more] [item [separator (join separator rest)]]
278−
279−++ snip |= xs=(list A)
280− ^- (list A)
281− ?- xs
282− ~ ~
283− [item rest]
284− ?- rest
285− ~ ~
286− [next more] [item (snip rest)]
287−
288−++ rear |= xs=(list A)
289− ?- xs
290− ~ !!
291− [item rest]
292− ?- rest
293− ~ item
294− [next more] (rear rest)
295−
296−++ cork |= gates=[$-(A B) $-(B C)]
297− ?- gates
298− [f g] |= x=A (g (f x))
299−
300−++ corl |= gates=[$-(B C) $-(A B)]
301− ?- gates
302− [f g] |= x=A (f (g x))
303−
304−++ cury |= args=[$-([A B] C) A]
305− ?- args
306− [f a] |= b=B (f a b)
307−
308−++ curr |= args=[$-([A B] C) B]
309− ?- args
310− [f b] |= a=A (f a b)
311−
312−+$ cmd |$ [M]
313− [%poke p=poke reply=$-((unit @t) M)]
314− [%go url=@t]
315− [%wait gap=@dr msg=M]
316− [%now reply=$-(@da M)]
317− [%who reply=$-(@p M)]
318−
319−++ gth |= args=[A A] (gth-atom.internal args)
tests/golden/prelude-unit-list-transforms/tokens.txtdeleted−2067
@@ -1,2067 +0,0 @@
1−1:1 glyph /=
2−1:4 name internal
3−1:13 glyph /
4−1:14 tight knot lib
5−1:17 tight glyph /
6−1:18 tight knot jibb
7−1:22 tight glyph /
8−1:23 tight knot internal
9−2:1 NEWLINE
10−2:1 glyph +$
11−2:4 name poke
12−2:9 wing poke.internal
13−6:1 NEWLINE
14−6:1 glyph ++
15−6:4 name same
16−6:9 glyph |=
17−6:12 name x
18−6:13 tight glyph =
19−6:14 tight tvar A
20−6:16 name x
21−8:1 NEWLINE
22−8:1 glyph ++
23−8:4 name head
24−8:9 glyph |=
25−8:12 name p
26−8:13 tight glyph =
27−8:14 tight glyph [
28−8:15 tight tvar A
29−8:17 tvar B
30−8:18 tight glyph ]
31−9:3 INDENT
32−9:3 glyph ?-
33−9:6 name p
34−10:5 INDENT
35−10:5 glyph [
36−10:6 tight name a
37−10:8 name b
38−10:9 tight glyph ]
39−10:11 name a
40−12:1 DEDENT
41−12:1 DEDENT
42−12:1 NEWLINE
43−12:1 glyph ++
44−12:4 name tail
45−12:9 glyph |=
46−12:12 name p
47−12:13 tight glyph =
48−12:14 tight glyph [
49−12:15 tight tvar A
50−12:17 tvar B
51−12:18 tight glyph ]
52−13:3 INDENT
53−13:3 glyph ?-
54−13:6 name p
55−14:5 INDENT
56−14:5 glyph [
57−14:6 tight name a
58−14:8 name b
59−14:9 tight glyph ]
60−14:11 name b
61−16:1 DEDENT
62−16:1 DEDENT
63−16:1 NEWLINE
64−16:1 glyph ++
65−16:4 name not
66−16:8 glyph |=
67−16:11 name b
68−16:12 tight glyph =
69−16:13 tight glyph ?
70−17:3 INDENT
71−17:3 glyph ?-
72−17:6 name b
73−18:5 INDENT
74−18:5 lit %.y
75−18:9 lit %.n
76−19:5 NEWLINE
77−19:5 lit %.n
78−19:9 lit %.y
79−21:1 DEDENT
80−21:1 DEDENT
81−21:1 NEWLINE
82−21:1 glyph +$
83−21:4 name list
84−21:9 glyph |$
85−21:12 glyph [
86−21:13 tight tvar A
87−21:14 tight glyph ]
88−22:3 INDENT
89−22:3 lit ~
90−23:3 NEWLINE
91−23:3 glyph [
92−23:4 tight name i
93−23:5 tight glyph =
94−23:6 tight tvar A
95−23:8 name t
96−23:9 tight glyph =
97−23:10 tight glyph (
98−23:11 tight name list
99−23:16 tvar A
100−23:17 tight glyph )
101−23:18 tight glyph ]
102−25:1 DEDENT
103−25:1 NEWLINE
104−25:1 glyph +$
105−25:4 name unit
106−25:9 glyph |$
107−25:12 glyph [
108−25:13 tight tvar A
109−25:14 tight glyph ]
110−26:3 INDENT
111−26:3 lit ~
112−27:3 NEWLINE
113−27:3 glyph [
114−27:4 tight lit ~
115−27:6 name u
116−27:7 tight glyph =
117−27:8 tight tvar A
118−27:9 tight glyph ]
119−29:1 DEDENT
120−29:1 NEWLINE
121−29:1 glyph ++
122−29:4 name fall
123−29:9 glyph |=
124−29:12 name args
125−29:16 tight glyph =
126−29:17 tight glyph [
127−29:18 tight glyph (
128−29:19 tight name unit
129−29:24 tvar A
130−29:25 tight glyph )
131−29:27 tvar A
132−29:28 tight glyph ]
133−30:3 INDENT
134−30:3 glyph ?-
135−30:6 name args
136−31:5 INDENT
137−31:5 glyph [
138−31:6 tight name maybe
139−31:12 name fallback
140−31:20 tight glyph ]
141−32:7 INDENT
142−32:7 glyph ?-
143−32:10 name maybe
144−33:9 INDENT
145−33:9 lit ~
146−33:11 name fallback
147−34:9 NEWLINE
148−34:9 glyph [
149−34:10 tight lit ~
150−34:12 name value
151−34:17 tight glyph ]
152−34:19 name value
153−36:1 DEDENT
154−36:1 DEDENT
155−36:1 DEDENT
156−36:1 DEDENT
157−36:1 NEWLINE
158−36:1 glyph ++
159−36:4 name need
160−36:9 glyph |=
161−36:12 name maybe
162−36:17 tight glyph =
163−36:18 tight glyph (
164−36:19 tight name unit
165−36:24 tvar A
166−36:25 tight glyph )
167−37:3 INDENT
168−37:3 glyph ?-
169−37:6 name maybe
170−38:5 INDENT
171−38:5 lit ~
172−38:7 glyph !!
173−39:5 NEWLINE
174−39:5 glyph [
175−39:6 tight lit ~
176−39:8 name value
177−39:13 tight glyph ]
178−39:15 name value
179−41:1 DEDENT
180−41:1 DEDENT
181−41:1 NEWLINE
182−41:1 glyph ++
183−41:4 name weld
184−41:9 glyph |=
185−41:12 name args
186−41:16 tight glyph =
187−41:17 tight glyph [
188−41:18 tight glyph (
189−41:19 tight name list
190−41:24 tvar A
191−41:25 tight glyph )
192−41:27 glyph (
193−41:28 tight name list
194−41:33 tvar A
195−41:34 tight glyph )
196−41:35 tight glyph ]
197−42:3 INDENT
198−42:3 glyph ?-
199−42:6 name args
200−43:5 INDENT
201−43:5 glyph [
202−43:6 tight name xs
203−43:9 name ys
204−43:11 tight glyph ]
205−44:7 INDENT
206−44:7 glyph ^-
207−44:10 glyph (
208−44:11 tight name list
209−44:16 tvar A
210−44:17 tight glyph )
211−45:9 INDENT
212−45:9 glyph ?-
213−45:12 name xs
214−46:11 INDENT
215−46:11 lit ~
216−46:13 name ys
217−47:11 NEWLINE
218−47:11 glyph [
219−47:12 tight name item
220−47:17 name rest
221−47:21 tight glyph ]
222−47:23 glyph [
223−47:24 tight name item
224−47:29 glyph (
225−47:30 tight name weld
226−47:35 name rest
227−47:40 name ys
228−47:42 tight glyph )
229−47:43 tight glyph ]
230−49:1 DEDENT
231−49:1 DEDENT
232−49:1 DEDENT
233−49:1 DEDENT
234−49:1 DEDENT
235−49:1 NEWLINE
236−49:1 glyph ++
237−49:4 name turn
238−49:9 glyph |=
239−49:12 name args
240−49:16 tight glyph =
241−49:17 tight glyph [
242−49:18 tight glyph (
243−49:19 tight name list
244−49:24 tvar A
245−49:25 tight glyph )
246−49:27 glyph $-(
247−49:30 tight tvar A
248−49:32 tvar B
249−49:33 tight glyph )
250−49:34 tight glyph ]
251−50:3 INDENT
252−50:3 glyph ?-
253−50:6 name args
254−51:5 INDENT
255−51:5 glyph [
256−51:6 tight name xs
257−51:9 name f
258−51:10 tight glyph ]
259−52:7 INDENT
260−52:7 glyph ^-
261−52:10 glyph (
262−52:11 tight name list
263−52:16 tvar B
264−52:17 tight glyph )
265−53:9 INDENT
266−53:9 glyph ?-
267−53:12 name xs
268−54:11 INDENT
269−54:11 lit ~
270−54:13 lit ~
271−55:11 NEWLINE
272−55:11 glyph [
273−55:12 tight name item
274−55:17 name rest
275−55:21 tight glyph ]
276−55:23 glyph [
277−55:24 tight glyph (
278−55:25 tight name f
279−55:27 name item
280−55:31 tight glyph )
281−55:33 glyph (
282−55:34 tight name turn
283−55:39 name rest
284−55:44 name f
285−55:45 tight glyph )
286−55:46 tight glyph ]
287−57:1 DEDENT
288−57:1 DEDENT
289−57:1 DEDENT
290−57:1 DEDENT
291−57:1 DEDENT
292−57:1 NEWLINE
293−57:1 glyph +$
294−57:4 name dime
295−57:9 glyph [
296−57:10 tight name p
297−57:11 tight glyph =
298−57:12 tight aura @ta
299−57:16 name q
300−57:17 tight glyph =
301−57:18 tight aura @
302−57:19 tight glyph ]
303−59:1 NEWLINE
304−59:1 glyph +$
305−59:4 name hair
306−59:9 glyph [
307−59:10 tight name p
308−59:11 tight glyph =
309−59:12 tight aura @ud
310−59:16 name q
311−59:17 tight glyph =
312−59:18 tight aura @ud
313−59:21 tight glyph ]
314−61:1 NEWLINE
315−61:1 glyph +$
316−61:4 name pint
317−61:9 glyph [
318−61:10 tight name p
319−61:11 tight glyph =
320−61:12 tight glyph [
321−61:13 tight name p
322−61:14 tight glyph =
323−61:15 tight aura @
324−61:17 name q
325−61:18 tight glyph =
326−61:19 tight aura @
327−61:20 tight glyph ]
328−61:22 name q
329−61:23 tight glyph =
330−61:24 tight glyph [
331−61:25 tight name p
332−61:26 tight glyph =
333−61:27 tight aura @
334−61:29 name q
335−61:30 tight glyph =
336−61:31 tight aura @
337−61:32 tight glyph ]
338−61:33 tight glyph ]
339−63:1 NEWLINE
340−63:1 glyph +$
341−63:4 name coin
342−64:3 INDENT
343−64:3 glyph [
344−64:4 tight lit %$
345−64:7 name p
346−64:8 tight glyph =
347−64:9 tight name dime
348−64:13 tight glyph ]
349−65:3 NEWLINE
350−65:3 glyph [
351−65:4 tight lit %blob
352−65:10 name p
353−65:11 tight glyph =
354−65:12 tight glyph *
355−65:13 tight glyph ]
356−66:3 NEWLINE
357−66:3 glyph [
358−66:4 tight lit %many
359−66:10 name p
360−66:11 tight glyph =
361−66:12 tight glyph (
362−66:13 tight name list
363−66:18 name coin
364−66:22 tight glyph )
365−66:23 tight glyph ]
366−68:1 DEDENT
367−68:1 NEWLINE
368−68:1 glyph +$
369−68:4 name pair
370−68:9 glyph |$
371−68:12 glyph [
372−68:13 tight tvar A
373−68:15 tvar B
374−68:16 tight glyph ]
375−68:18 glyph [
376−68:19 tight name p
377−68:20 tight glyph =
378−68:21 tight tvar A
379−68:23 name q
380−68:24 tight glyph =
381−68:25 tight tvar B
382−68:26 tight glyph ]
383−70:1 NEWLINE
384−70:1 glyph +$
385−70:4 name trel
386−70:9 glyph |$
387−70:12 glyph [
388−70:13 tight tvar A
389−70:15 tvar B
390−70:17 tvar C
391−70:18 tight glyph ]
392−70:20 glyph [
393−70:21 tight name p
394−70:22 tight glyph =
395−70:23 tight tvar A
396−70:25 name q
397−70:26 tight glyph =
398−70:27 tight tvar B
399−70:29 name r
400−70:30 tight glyph =
401−70:31 tight tvar C
402−70:32 tight glyph ]
403−72:1 NEWLINE
404−72:1 glyph +$
405−72:4 name qual
406−72:9 glyph |$
407−72:12 glyph [
408−72:13 tight tvar A
409−72:15 tvar B
410−72:17 tvar C
411−72:19 tvar D
412−72:20 tight glyph ]
413−72:22 glyph [
414−72:23 tight name p
415−72:24 tight glyph =
416−72:25 tight tvar A
417−72:27 name q
418−72:28 tight glyph =
419−72:29 tight tvar B
420−72:31 name r
421−72:32 tight glyph =
422−72:33 tight tvar C
423−72:35 name s
424−72:36 tight glyph =
425−72:37 tight tvar D
426−72:38 tight glyph ]
427−74:1 NEWLINE
428−74:1 glyph +$
429−74:4 name cord
430−74:9 aura @t
431−76:1 NEWLINE
432−76:1 glyph +$
433−76:4 name knot
434−76:9 aura @ta
435−78:1 NEWLINE
436−78:1 glyph +$
437−78:4 name tape
438−78:9 glyph (
439−78:10 tight name list
440−78:15 aura @tD
441−78:18 tight glyph )
442−80:1 NEWLINE
443−80:1 glyph +$
444−80:4 name path
445−80:9 glyph (
446−80:10 tight name list
447−80:15 name knot
448−80:19 tight glyph )
449−82:1 NEWLINE
450−82:1 glyph +$
451−82:4 name tank
452−83:3 INDENT
453−83:3 name cord
454−84:3 NEWLINE
455−84:3 glyph [
456−84:4 tight lit %leaf
457−84:10 name p
458−84:11 tight glyph =
459−84:12 tight name tape
460−84:16 tight glyph ]
461−85:3 NEWLINE
462−85:3 glyph [
463−85:4 tight lit %palm
464−85:10 name p
465−85:11 tight glyph =
466−85:12 tight glyph (
467−85:13 tight name qual
468−85:18 name tape
469−85:23 name tape
470−85:28 name tape
471−85:33 name tape
472−85:37 tight glyph )
473−85:39 name q
474−85:40 tight glyph =
475−85:41 tight glyph (
476−85:42 tight name list
477−85:47 name tank
478−85:51 tight glyph )
479−85:52 tight glyph ]
480−86:3 NEWLINE
481−86:3 glyph [
482−86:4 tight lit %rose
483−86:10 name p
484−86:11 tight glyph =
485−86:12 tight glyph (
486−86:13 tight name trel
487−86:18 name tape
488−86:23 name tape
489−86:28 name tape
490−86:32 tight glyph )
491−86:34 name q
492−86:35 tight glyph =
493−86:36 tight glyph (
494−86:37 tight name list
495−86:42 name tank
496−86:46 tight glyph )
497−86:47 tight glyph ]
498−88:1 DEDENT
499−88:1 NEWLINE
500−88:1 glyph +$
501−88:4 name nail
502−88:9 glyph [
503−88:10 tight name p
504−88:11 tight glyph =
505−88:12 tight name hair
506−88:17 name q
507−88:18 tight glyph =
508−88:19 tight name tape
509−88:23 tight glyph ]
510−90:1 NEWLINE
511−90:1 glyph +$
512−90:4 name edge
513−90:9 glyph [
514−90:10 tight name p
515−90:11 tight glyph =
516−90:12 tight name hair
517−90:17 name q
518−90:18 tight glyph =
519−90:19 tight glyph (
520−90:20 tight name unit
521−90:25 glyph [
522−90:26 tight name p
523−90:27 tight glyph =
524−90:28 tight glyph *
525−90:30 name q
526−90:31 tight glyph =
527−90:32 tight name nail
528−90:36 tight glyph ]
529−90:37 tight glyph )
530−90:38 tight glyph ]
531−92:1 NEWLINE
532−92:1 glyph +$
533−92:4 name rule
534−92:9 glyph $-(
535−92:12 tight name nail
536−92:17 name edge
537−92:21 tight glyph )
538−94:1 NEWLINE
539−94:1 glyph +$
540−94:4 name spot
541−94:9 glyph [
542−94:10 tight name p
543−94:11 tight glyph =
544−94:12 tight name path
545−94:17 name q
546−94:18 tight glyph =
547−94:19 tight name pint
548−94:23 tight glyph ]
549−96:1 NEWLINE
550−96:1 glyph +$
551−96:4 name toon
552−97:3 INDENT
553−97:3 glyph [
554−97:4 tight lit %0
555−97:7 name p
556−97:8 tight glyph =
557−97:9 tight glyph *
558−97:10 tight glyph ]
559−98:3 NEWLINE
560−98:3 glyph [
561−98:4 tight lit %1
562−98:7 name p
563−98:8 tight glyph =
564−98:9 tight glyph *
565−98:10 tight glyph ]
566−99:3 NEWLINE
567−99:3 glyph [
568−99:4 tight lit %2
569−99:7 name p
570−99:8 tight glyph =
571−99:9 tight glyph (
572−99:10 tight name list
573−99:15 name tank
574−99:19 tight glyph )
575−99:20 tight glyph ]
576−101:1 DEDENT
577−101:1 NEWLINE
578−101:1 glyph +$
579−101:4 name like
580−101:9 glyph |$
581−101:12 glyph [
582−101:13 tight tvar A
583−101:14 tight glyph ]
584−101:16 glyph [
585−101:17 tight name p
586−101:18 tight glyph =
587−101:19 tight name hair
588−101:24 name q
589−101:25 tight glyph =
590−101:26 tight glyph (
591−101:27 tight name unit
592−101:32 glyph [
593−101:33 tight name p
594−101:34 tight glyph =
595−101:35 tight tvar A
596−101:37 name q
597−101:38 tight glyph =
598−101:39 tight name nail
599−101:43 tight glyph ]
600−101:44 tight glyph )
601−101:45 tight glyph ]
602−103:1 NEWLINE
603−103:1 glyph ++
604−103:4 name wonk
605−103:9 glyph |=
606−103:12 name veq
607−103:15 tight glyph =
608−103:16 tight glyph (
609−103:17 tight name like
610−103:22 tvar A
611−103:23 tight glyph )
612−104:3 INDENT
613−104:3 glyph ?-
614−104:6 wing q.veq
615−105:5 INDENT
616−105:5 lit ~
617−105:7 glyph !!
618−106:5 NEWLINE
619−106:5 glyph [
620−106:6 tight lit ~
621−106:8 name product
622−106:15 tight glyph ]
623−106:17 wing p.product
624−108:1 DEDENT
625−108:1 DEDENT
626−108:1 NEWLINE
627−108:1 glyph +$
628−108:4 name lone
629−108:9 glyph |$
630−108:12 glyph [
631−108:13 tight tvar A
632−108:14 tight glyph ]
633−108:16 glyph [
634−108:17 tight name p
635−108:18 tight glyph =
636−108:19 tight tvar A
637−108:20 tight glyph ]
638−110:1 NEWLINE
639−110:1 glyph +$
640−110:4 name lest
641−110:9 glyph |$
642−110:12 glyph [
643−110:13 tight tvar A
644−110:14 tight glyph ]
645−110:16 glyph [
646−110:17 tight name i
647−110:18 tight glyph =
648−110:19 tight tvar A
649−110:21 name t
650−110:22 tight glyph =
651−110:23 tight glyph (
652−110:24 tight name list
653−110:29 tvar A
654−110:30 tight glyph )
655−110:31 tight glyph ]
656−112:1 NEWLINE
657−112:1 glyph +$
658−112:4 name pole
659−112:9 glyph |$
660−112:12 glyph [
661−112:13 tight tvar A
662−112:14 tight glyph ]
663−113:3 INDENT
664−113:3 lit ~
665−114:3 NEWLINE
666−114:3 glyph [
667−114:4 tight tvar A
668−114:6 glyph (
669−114:7 tight name pole
670−114:12 tvar A
671−114:13 tight glyph )
672−114:14 tight glyph ]
673−116:1 DEDENT
674−116:1 NEWLINE
675−116:1 glyph +$
676−116:4 name quip
677−116:9 glyph |$
678−116:12 glyph [
679−116:13 tight tvar A
680−116:15 tvar B
681−116:16 tight glyph ]
682−116:18 glyph [
683−116:19 tight glyph (
684−116:20 tight name list
685−116:25 tvar A
686−116:26 tight glyph )
687−116:28 tvar B
688−116:29 tight glyph ]
689−118:1 NEWLINE
690−118:1 glyph +$
691−118:4 name tree
692−118:9 glyph |$
693−118:12 glyph [
694−118:13 tight tvar A
695−118:14 tight glyph ]
696−119:3 INDENT
697−119:3 lit ~
698−120:3 NEWLINE
699−120:3 glyph [
700−120:4 tight name n
701−120:5 tight glyph =
702−120:6 tight tvar A
703−120:8 name l
704−120:9 tight glyph =
705−120:10 tight glyph (
706−120:11 tight name tree
707−120:16 tvar A
708−120:17 tight glyph )
709−120:19 name r
710−120:20 tight glyph =
711−120:21 tight glyph (
712−120:22 tight name tree
713−120:27 tvar A
714−120:28 tight glyph )
715−120:29 tight glyph ]
716−122:1 DEDENT
717−122:1 NEWLINE
718−122:1 glyph +$
719−122:4 name each
720−122:9 glyph |$
721−122:12 glyph [
722−122:13 tight tvar A
723−122:15 tvar B
724−122:16 tight glyph ]
725−123:3 INDENT
726−123:3 glyph [
727−123:4 tight lit %|
728−123:7 name p
729−123:8 tight glyph =
730−123:9 tight tvar B
731−123:10 tight glyph ]
732−124:3 NEWLINE
733−124:3 glyph [
734−124:4 tight lit %&
735−124:7 name p
736−124:8 tight glyph =
737−124:9 tight tvar A
738−124:10 tight glyph ]
739−126:1 DEDENT
740−126:1 NEWLINE
741−126:1 glyph +$
742−126:4 name bloq
743−126:9 aura @
744−128:1 NEWLINE
745−128:1 glyph ++
746−128:4 name some
747−128:9 glyph |=
748−128:12 name item
749−128:16 tight glyph =
750−128:17 tight tvar A
751−128:19 glyph `
752−128:20 tight name item
753−130:1 NEWLINE
754−130:1 glyph ++
755−130:4 name lure
756−130:9 glyph |=
757−130:12 name item
758−130:16 tight glyph =
759−130:17 tight tvar A
760−131:3 INDENT
761−131:3 glyph ^-
762−131:6 glyph (
763−131:7 tight name list
764−131:12 tvar A
765−131:13 tight glyph )
766−131:15 glyph [
767−131:16 tight name item
768−131:21 lit ~
769−131:22 tight glyph ]
770−133:1 DEDENT
771−133:1 NEWLINE
772−133:1 glyph ++
773−133:4 name snoc
774−133:9 glyph |=
775−133:12 name args
776−133:16 tight glyph =
777−133:17 tight glyph [
778−133:18 tight glyph (
779−133:19 tight name list
780−133:24 tvar A
781−133:25 tight glyph )
782−133:27 tvar A
783−133:28 tight glyph ]
784−134:3 INDENT
785−134:3 glyph ?-
786−134:6 name args
787−135:5 INDENT
788−135:5 glyph [
789−135:6 tight name xs
790−135:9 name item
791−135:13 tight glyph ]
792−135:15 glyph (
793−135:16 tight name weld
794−135:21 name xs
795−135:24 glyph [
796−135:25 tight name item
797−135:30 lit ~
798−135:31 tight glyph ]
799−135:32 tight glyph )
800−137:1 DEDENT
801−137:1 DEDENT
802−137:1 NEWLINE
803−137:1 glyph ++
804−137:4 name flop
805−137:9 glyph |=
806−137:12 name xs
807−137:14 tight glyph =
808−137:15 tight glyph (
809−137:16 tight name list
810−137:21 tvar A
811−137:22 tight glyph )
812−138:3 INDENT
813−138:3 glyph ++
814−138:6 name reverse-into
815−138:19 glyph |=
816−138:22 name args
817−138:26 tight glyph =
818−138:27 tight glyph [
819−138:28 tight glyph (
820−138:29 tight name list
821−138:34 tvar A
822−138:35 tight glyph )
823−138:37 glyph (
824−138:38 tight name list
825−138:43 tvar A
826−138:44 tight glyph )
827−138:45 tight glyph ]
828−139:5 INDENT
829−139:5 glyph ?-
830−139:8 name args
831−140:7 INDENT
832−140:7 glyph [
833−140:8 tight name rest
834−140:13 name acc
835−140:16 tight glyph ]
836−141:9 INDENT
837−141:9 glyph ?-
838−141:12 name rest
839−142:11 INDENT
840−142:11 lit ~
841−142:13 name acc
842−143:11 NEWLINE
843−143:11 glyph [
844−143:12 tight name item
845−143:17 name more
846−143:21 tight glyph ]
847−143:23 glyph (
848−143:24 tight name reverse-into
849−143:37 name more
850−143:42 glyph [
851−143:43 tight name item
852−143:48 name acc
853−143:51 tight glyph ]
854−143:52 tight glyph )
855−144:3 DEDENT
856−144:3 DEDENT
857−144:3 DEDENT
858−144:3 DEDENT
859−144:3 NEWLINE
860−144:3 glyph (
861−144:4 tight name reverse-into
862−144:17 name xs
863−144:20 lit ~
864−144:21 tight glyph )
865−146:1 DEDENT
866−146:1 NEWLINE
867−146:1 glyph ++
868−146:4 name drop
869−146:9 glyph |=
870−146:12 name maybe
871−146:17 tight glyph =
872−146:18 tight glyph (
873−146:19 tight name unit
874−146:24 tvar A
875−146:25 tight glyph )
876−147:3 INDENT
877−147:3 glyph ^-
878−147:6 glyph (
879−147:7 tight name list
880−147:12 tvar A
881−147:13 tight glyph )
882−148:5 INDENT
883−148:5 glyph ?-
884−148:8 name maybe
885−149:7 INDENT
886−149:7 lit ~
887−149:9 lit ~
888−150:7 NEWLINE
889−150:7 glyph [
890−150:8 tight lit ~
891−150:10 name value
892−150:15 tight glyph ]
893−150:17 glyph [
894−150:18 tight name value
895−150:24 lit ~
896−150:25 tight glyph ]
897−152:1 DEDENT
898−152:1 DEDENT
899−152:1 DEDENT
900−152:1 NEWLINE
901−152:1 glyph ++
902−152:4 name bind
903−152:9 glyph |=
904−152:12 name args
905−152:16 tight glyph =
906−152:17 tight glyph [
907−152:18 tight glyph (
908−152:19 tight name unit
909−152:24 tvar A
910−152:25 tight glyph )
911−152:27 glyph $-(
912−152:30 tight tvar A
913−152:32 tvar B
914−152:33 tight glyph )
915−152:34 tight glyph ]
916−153:3 INDENT
917−153:3 glyph ?-
918−153:6 name args
919−154:5 INDENT
920−154:5 glyph [
921−154:6 tight name maybe
922−154:12 name f
923−154:13 tight glyph ]
924−154:15 glyph ^-
925−154:18 glyph (
926−154:19 tight name unit
927−154:24 tvar B
928−154:25 tight glyph )
929−155:7 INDENT
930−155:7 glyph ?-
931−155:10 name maybe
932−156:9 INDENT
933−156:9 lit ~
934−156:11 lit ~
935−157:9 NEWLINE
936−157:9 glyph [
937−157:10 tight lit ~
938−157:12 name value
939−157:17 tight glyph ]
940−157:19 glyph `
941−157:20 tight glyph (
942−157:21 tight name f
943−157:23 name value
944−157:28 tight glyph )
945−159:1 DEDENT
946−159:1 DEDENT
947−159:1 DEDENT
948−159:1 DEDENT
949−159:1 NEWLINE
950−159:1 glyph ++
951−159:4 name biff
952−159:9 glyph |=
953−159:12 name args
954−159:16 tight glyph =
955−159:17 tight glyph [
956−159:18 tight glyph (
957−159:19 tight name unit
958−159:24 tvar A
959−159:25 tight glyph )
960−159:27 glyph $-(
961−159:30 tight tvar A
962−159:32 glyph (
963−159:33 tight name unit
964−159:38 tvar B
965−159:39 tight glyph )
966−159:40 tight glyph )
967−159:41 tight glyph ]
968−160:3 INDENT
969−160:3 glyph ?-
970−160:6 name args
971−161:5 INDENT
972−161:5 glyph [
973−161:6 tight name maybe
974−161:12 name f
975−161:13 tight glyph ]
976−161:15 glyph ^-
977−161:18 glyph (
978−161:19 tight name unit
979−161:24 tvar B
980−161:25 tight glyph )
981−162:7 INDENT
982−162:7 glyph ?-
983−162:10 name maybe
984−163:9 INDENT
985−163:9 lit ~
986−163:11 lit ~
987−164:9 NEWLINE
988−164:9 glyph [
989−164:10 tight lit ~
990−164:12 name value
991−164:17 tight glyph ]
992−164:19 glyph (
993−164:20 tight name f
994−164:22 name value
995−164:27 tight glyph )
996−166:1 DEDENT
997−166:1 DEDENT
998−166:1 DEDENT
999−166:1 DEDENT
1000−166:1 NEWLINE
1001−166:1 glyph ++
1002−166:4 name both
1003−166:9 glyph |=
1004−166:12 name args
1005−166:16 tight glyph =
1006−166:17 tight glyph [
1007−166:18 tight glyph (
1008−166:19 tight name unit
1009−166:24 tvar A
1010−166:25 tight glyph )
1011−166:27 glyph (
1012−166:28 tight name unit
1013−166:33 tvar B
1014−166:34 tight glyph )
1015−166:35 tight glyph ]
1016−167:3 INDENT
1017−167:3 glyph ?-
1018−167:6 name args
1019−168:5 INDENT
1020−168:5 glyph [
1021−168:6 tight name first
1022−168:12 name second
1023−168:18 tight glyph ]
1024−168:20 glyph ^-
1025−168:23 glyph (
1026−168:24 tight name unit
1027−168:29 glyph [
1028−168:30 tight tvar A
1029−168:32 tvar B
1030−168:33 tight glyph ]
1031−168:34 tight glyph )
1032−169:7 INDENT
1033−169:7 glyph ?-
1034−169:10 name first
1035−170:9 INDENT
1036−170:9 lit ~
1037−170:11 lit ~
1038−171:9 NEWLINE
1039−171:9 glyph [
1040−171:10 tight lit ~
1041−171:12 name a
1042−171:13 tight glyph ]
1043−172:11 INDENT
1044−172:11 glyph ?-
1045−172:14 name second
1046−173:13 INDENT
1047−173:13 lit ~
1048−173:15 lit ~
1049−174:13 NEWLINE
1050−174:13 glyph [
1051−174:14 tight lit ~
1052−174:16 name b
1053−174:17 tight glyph ]
1054−174:19 glyph `
1055−174:20 tight glyph [
1056−174:21 tight name a
1057−174:23 name b
1058−174:24 tight glyph ]
1059−176:1 DEDENT
1060−176:1 DEDENT
1061−176:1 DEDENT
1062−176:1 DEDENT
1063−176:1 DEDENT
1064−176:1 DEDENT
1065−176:1 NEWLINE
1066−176:1 glyph ++
1067−176:4 name clap
1068−176:9 glyph |=
1069−176:12 name args
1070−176:16 tight glyph =
1071−176:17 tight glyph [
1072−176:18 tight glyph (
1073−176:19 tight name unit
1074−176:24 tvar A
1075−176:25 tight glyph )
1076−176:27 glyph (
1077−176:28 tight name unit
1078−176:33 tvar A
1079−176:34 tight glyph )
1080−176:36 glyph $-(
1081−176:39 tight glyph [
1082−176:40 tight tvar A
1083−176:42 tvar A
1084−176:43 tight glyph ]
1085−176:45 tvar A
1086−176:46 tight glyph )
1087−176:47 tight glyph ]
1088−177:3 INDENT
1089−177:3 glyph ?-
1090−177:6 name args
1091−178:5 INDENT
1092−178:5 glyph [
1093−178:6 tight name first
1094−178:12 name second
1095−178:19 name combine
1096−178:26 tight glyph ]
1097−178:28 glyph ^-
1098−178:31 glyph (
1099−178:32 tight name unit
1100−178:37 tvar A
1101−178:38 tight glyph )
1102−179:7 INDENT
1103−179:7 glyph ?-
1104−179:10 name first
1105−180:9 INDENT
1106−180:9 lit ~
1107−180:11 name second
1108−181:9 NEWLINE
1109−181:9 glyph [
1110−181:10 tight lit ~
1111−181:12 name a
1112−181:13 tight glyph ]
1113−182:11 INDENT
1114−182:11 glyph ?-
1115−182:14 name second
1116−183:13 INDENT
1117−183:13 lit ~
1118−183:15 name first
1119−184:13 NEWLINE
1120−184:13 glyph [
1121−184:14 tight lit ~
1122−184:16 name b
1123−184:17 tight glyph ]
1124−184:19 glyph `
1125−184:20 tight glyph (
1126−184:21 tight name combine
1127−184:29 name a
1128−184:31 name b
1129−184:32 tight glyph )
1130−186:1 DEDENT
1131−186:1 DEDENT
1132−186:1 DEDENT
1133−186:1 DEDENT
1134−186:1 DEDENT
1135−186:1 DEDENT
1136−186:1 NEWLINE
1137−186:1 glyph ++
1138−186:4 name clef
1139−186:9 glyph |=
1140−186:12 name args
1141−186:16 tight glyph =
1142−186:17 tight glyph [
1143−186:18 tight glyph (
1144−186:19 tight name unit
1145−186:24 tvar A
1146−186:25 tight glyph )
1147−186:27 glyph (
1148−186:28 tight name unit
1149−186:33 tvar B
1150−186:34 tight glyph )
1151−186:36 glyph $-(
1152−186:39 tight glyph [
1153−186:40 tight tvar A
1154−186:42 tvar B
1155−186:43 tight glyph ]
1156−186:45 glyph (
1157−186:46 tight name unit
1158−186:51 tvar C
1159−186:52 tight glyph )
1160−186:53 tight glyph )
1161−186:54 tight glyph ]
1162−187:3 INDENT
1163−187:3 glyph ?-
1164−187:6 name args
1165−188:5 INDENT
1166−188:5 glyph [
1167−188:6 tight name first
1168−188:12 name second
1169−188:19 name combine
1170−188:26 tight glyph ]
1171−188:28 glyph ^-
1172−188:31 glyph (
1173−188:32 tight name unit
1174−188:37 tvar C
1175−188:38 tight glyph )
1176−189:7 INDENT
1177−189:7 glyph ?-
1178−189:10 name first
1179−190:9 INDENT
1180−190:9 lit ~
1181−190:11 lit ~
1182−191:9 NEWLINE
1183−191:9 glyph [
1184−191:10 tight lit ~
1185−191:12 name a
1186−191:13 tight glyph ]
1187−192:11 INDENT
1188−192:11 glyph ?-
1189−192:14 name second
1190−193:13 INDENT
1191−193:13 lit ~
1192−193:15 lit ~
1193−194:13 NEWLINE
1194−194:13 glyph [
1195−194:14 tight lit ~
1196−194:16 name b
1197−194:17 tight glyph ]
1198−194:19 glyph (
1199−194:20 tight name combine
1200−194:28 name a
1201−194:30 name b
1202−194:31 tight glyph )
1203−196:1 DEDENT
1204−196:1 DEDENT
1205−196:1 DEDENT
1206−196:1 DEDENT
1207−196:1 DEDENT
1208−196:1 DEDENT
1209−196:1 NEWLINE
1210−196:1 glyph ++
1211−196:4 name skim
1212−196:9 glyph |=
1213−196:12 name args
1214−196:16 tight glyph =
1215−196:17 tight glyph [
1216−196:18 tight glyph (
1217−196:19 tight name list
1218−196:24 tvar A
1219−196:25 tight glyph )
1220−196:27 glyph $-(
1221−196:30 tight tvar A
1222−196:32 glyph ?
1223−196:33 tight glyph )
1224−196:34 tight glyph ]
1225−197:3 INDENT
1226−197:3 glyph ?-
1227−197:6 name args
1228−198:5 INDENT
1229−198:5 glyph [
1230−198:6 tight name xs
1231−198:9 name predicate
1232−198:18 tight glyph ]
1233−198:20 glyph ^-
1234−198:23 glyph (
1235−198:24 tight name list
1236−198:29 tvar A
1237−198:30 tight glyph )
1238−199:9 INDENT
1239−199:9 glyph ?-
1240−199:12 name xs
1241−200:11 INDENT
1242−200:11 lit ~
1243−200:13 lit ~
1244−201:11 NEWLINE
1245−201:11 glyph [
1246−201:12 tight name item
1247−201:17 name rest
1248−201:21 tight glyph ]
1249−202:13 INDENT
1250−202:13 glyph ?-
1251−202:16 glyph (
1252−202:17 tight name predicate
1253−202:27 name item
1254−202:31 tight glyph )
1255−203:15 INDENT
1256−203:15 lit %.y
1257−203:19 glyph [
1258−203:20 tight name item
1259−203:25 glyph (
1260−203:26 tight name skim
1261−203:31 name rest
1262−203:36 name predicate
1263−203:45 tight glyph )
1264−203:46 tight glyph ]
1265−204:15 NEWLINE
1266−204:15 lit %.n
1267−204:19 glyph (
1268−204:20 tight name skim
1269−204:25 name rest
1270−204:30 name predicate
1271−204:39 tight glyph )
1272−206:1 DEDENT
1273−206:1 DEDENT
1274−206:1 DEDENT
1275−206:1 DEDENT
1276−206:1 DEDENT
1277−206:1 DEDENT
1278−206:1 NEWLINE
1279−206:1 glyph ++
1280−206:4 name skip
1281−206:9 glyph |=
1282−206:12 name args
1283−206:16 tight glyph =
1284−206:17 tight glyph [
1285−206:18 tight glyph (
1286−206:19 tight name list
1287−206:24 tvar A
1288−206:25 tight glyph )
1289−206:27 glyph $-(
1290−206:30 tight tvar A
1291−206:32 glyph ?
1292−206:33 tight glyph )
1293−206:34 tight glyph ]
1294−207:3 INDENT
1295−207:3 glyph ?-
1296−207:6 name args
1297−208:5 INDENT
1298−208:5 glyph [
1299−208:6 tight name xs
1300−208:9 name predicate
1301−208:18 tight glyph ]
1302−208:20 glyph ^-
1303−208:23 glyph (
1304−208:24 tight name list
1305−208:29 tvar A
1306−208:30 tight glyph )
1307−209:9 INDENT
1308−209:9 glyph ?-
1309−209:12 name xs
1310−210:11 INDENT
1311−210:11 lit ~
1312−210:13 lit ~
1313−211:11 NEWLINE
1314−211:11 glyph [
1315−211:12 tight name item
1316−211:17 name rest
1317−211:21 tight glyph ]
1318−212:13 INDENT
1319−212:13 glyph ?-
1320−212:16 glyph (
1321−212:17 tight name predicate
1322−212:27 name item
1323−212:31 tight glyph )
1324−213:15 INDENT
1325−213:15 lit %.y
1326−213:19 glyph (
1327−213:20 tight name skip
1328−213:25 name rest
1329−213:30 name predicate
1330−213:39 tight glyph )
1331−214:15 NEWLINE
1332−214:15 lit %.n
1333−214:19 glyph [
1334−214:20 tight name item
1335−214:25 glyph (
1336−214:26 tight name skip
1337−214:31 name rest
1338−214:36 name predicate
1339−214:45 tight glyph )
1340−214:46 tight glyph ]
1341−216:1 DEDENT
1342−216:1 DEDENT
1343−216:1 DEDENT
1344−216:1 DEDENT
1345−216:1 DEDENT
1346−216:1 DEDENT
1347−216:1 NEWLINE
1348−216:1 glyph ++
1349−216:4 name levy
1350−216:9 glyph |=
1351−216:12 name args
1352−216:16 tight glyph =
1353−216:17 tight glyph [
1354−216:18 tight glyph (
1355−216:19 tight name list
1356−216:24 tvar A
1357−216:25 tight glyph )
1358−216:27 glyph $-(
1359−216:30 tight tvar A
1360−216:32 glyph ?
1361−216:33 tight glyph )
1362−216:34 tight glyph ]
1363−217:3 INDENT
1364−217:3 glyph ^-
1365−217:6 glyph ?
1366−218:5 INDENT
1367−218:5 glyph ?-
1368−218:8 name args
1369−219:7 INDENT
1370−219:7 glyph [
1371−219:8 tight name xs
1372−219:11 name predicate
1373−219:20 tight glyph ]
1374−220:9 INDENT
1375−220:9 glyph ?-
1376−220:12 name xs
1377−221:11 INDENT
1378−221:11 lit ~
1379−221:13 lit %.y
1380−222:11 NEWLINE
1381−222:11 glyph [
1382−222:12 tight name item
1383−222:17 name rest
1384−222:21 tight glyph ]
1385−223:13 INDENT
1386−223:13 glyph ?-
1387−223:16 glyph (
1388−223:17 tight name predicate
1389−223:27 name item
1390−223:31 tight glyph )
1391−224:15 INDENT
1392−224:15 lit %.y
1393−224:19 glyph (
1394−224:20 tight name levy
1395−224:25 name rest
1396−224:30 name predicate
1397−224:39 tight glyph )
1398−225:15 NEWLINE
1399−225:15 lit %.n
1400−225:19 lit %.n
1401−227:1 DEDENT
1402−227:1 DEDENT
1403−227:1 DEDENT
1404−227:1 DEDENT
1405−227:1 DEDENT
1406−227:1 DEDENT
1407−227:1 DEDENT
1408−227:1 NEWLINE
1409−227:1 glyph ++
1410−227:4 name lien
1411−227:9 glyph |=
1412−227:12 name args
1413−227:16 tight glyph =
1414−227:17 tight glyph [
1415−227:18 tight glyph (
1416−227:19 tight name list
1417−227:24 tvar A
1418−227:25 tight glyph )
1419−227:27 glyph $-(
1420−227:30 tight tvar A
1421−227:32 glyph ?
1422−227:33 tight glyph )
1423−227:34 tight glyph ]
1424−228:3 INDENT
1425−228:3 glyph ^-
1426−228:6 glyph ?
1427−229:5 INDENT
1428−229:5 glyph ?-
1429−229:8 name args
1430−230:7 INDENT
1431−230:7 glyph [
1432−230:8 tight name xs
1433−230:11 name predicate
1434−230:20 tight glyph ]
1435−231:9 INDENT
1436−231:9 glyph ?-
1437−231:12 name xs
1438−232:11 INDENT
1439−232:11 lit ~
1440−232:13 lit %.n
1441−233:11 NEWLINE
1442−233:11 glyph [
1443−233:12 tight name item
1444−233:17 name rest
1445−233:21 tight glyph ]
1446−234:13 INDENT
1447−234:13 glyph ?-
1448−234:16 glyph (
1449−234:17 tight name predicate
1450−234:27 name item
1451−234:31 tight glyph )
1452−235:15 INDENT
1453−235:15 lit %.y
1454−235:19 lit %.y
1455−236:15 NEWLINE
1456−236:15 lit %.n
1457−236:19 glyph (
1458−236:20 tight name lien
1459−236:25 name rest
1460−236:30 name predicate
1461−236:39 tight glyph )
1462−238:1 DEDENT
1463−238:1 DEDENT
1464−238:1 DEDENT
1465−238:1 DEDENT
1466−238:1 DEDENT
1467−238:1 DEDENT
1468−238:1 DEDENT
1469−238:1 NEWLINE
1470−238:1 glyph ++
1471−238:4 name roll
1472−238:9 glyph |=
1473−238:12 name args
1474−238:16 tight glyph =
1475−238:17 tight glyph [
1476−238:18 tight glyph (
1477−238:19 tight name list
1478−238:24 tvar A
1479−238:25 tight glyph )
1480−238:27 tvar B
1481−238:29 glyph $-(
1482−238:32 tight glyph [
1483−238:33 tight tvar A
1484−238:35 tvar B
1485−238:36 tight glyph ]
1486−238:38 tvar B
1487−238:39 tight glyph )
1488−238:40 tight glyph ]
1489−239:3 INDENT
1490−239:3 glyph ?-
1491−239:6 name args
1492−240:5 INDENT
1493−240:5 glyph [
1494−240:6 tight name xs
1495−240:9 name start
1496−240:15 name combine
1497−240:22 tight glyph ]
1498−241:7 INDENT
1499−241:7 glyph ?-
1500−241:10 name xs
1501−242:9 INDENT
1502−242:9 lit ~
1503−242:11 name start
1504−243:9 NEWLINE
1505−243:9 glyph [
1506−243:10 tight name item
1507−243:15 name rest
1508−243:19 tight glyph ]
1509−243:21 glyph (
1510−243:22 tight name roll
1511−243:27 name rest
1512−243:32 glyph (
1513−243:33 tight name combine
1514−243:41 name item
1515−243:46 name start
1516−243:51 tight glyph )
1517−243:53 name combine
1518−243:60 tight glyph )
1519−245:1 DEDENT
1520−245:1 DEDENT
1521−245:1 DEDENT
1522−245:1 DEDENT
1523−245:1 NEWLINE
1524−245:1 glyph ++
1525−245:4 name reel
1526−245:9 glyph |=
1527−245:12 name args
1528−245:16 tight glyph =
1529−245:17 tight glyph [
1530−245:18 tight glyph (
1531−245:19 tight name list
1532−245:24 tvar A
1533−245:25 tight glyph )
1534−245:27 tvar B
1535−245:29 glyph $-(
1536−245:32 tight glyph [
1537−245:33 tight tvar A
1538−245:35 tvar B
1539−245:36 tight glyph ]
1540−245:38 tvar B
1541−245:39 tight glyph )
1542−245:40 tight glyph ]
1543−246:3 INDENT
1544−246:3 glyph ?-
1545−246:6 name args
1546−247:5 INDENT
1547−247:5 glyph [
1548−247:6 tight name xs
1549−247:9 name start
1550−247:15 name combine
1551−247:22 tight glyph ]
1552−248:7 INDENT
1553−248:7 glyph ?-
1554−248:10 name xs
1555−249:9 INDENT
1556−249:9 lit ~
1557−249:11 name start
1558−250:9 NEWLINE
1559−250:9 glyph [
1560−250:10 tight name item
1561−250:15 name rest
1562−250:19 tight glyph ]
1563−250:21 glyph (
1564−250:22 tight name combine
1565−250:30 name item
1566−250:35 glyph (
1567−250:36 tight name reel
1568−250:41 name rest
1569−250:46 name start
1570−250:52 name combine
1571−250:59 tight glyph )
1572−250:60 tight glyph )
1573−252:1 DEDENT
1574−252:1 DEDENT
1575−252:1 DEDENT
1576−252:1 DEDENT
1577−252:1 NEWLINE
1578−252:1 glyph ++
1579−252:4 name flit
1580−252:9 glyph |=
1581−252:12 name predicate
1582−252:21 tight glyph =
1583−252:22 tight glyph $-(
1584−252:25 tight tvar A
1585−252:27 glyph ?
1586−252:28 tight glyph )
1587−253:3 INDENT
1588−253:3 glyph |=
1589−253:6 name value
1590−253:11 tight glyph =
1591−253:12 tight tvar A
1592−254:5 INDENT
1593−254:5 glyph ^-
1594−254:8 glyph (
1595−254:9 tight name unit
1596−254:14 tvar A
1597−254:15 tight glyph )
1598−255:7 INDENT
1599−255:7 glyph ?-
1600−255:10 glyph (
1601−255:11 tight name predicate
1602−255:21 name value
1603−255:26 tight glyph )
1604−256:9 INDENT
1605−256:9 lit %.y
1606−256:13 glyph `
1607−256:14 tight name value
1608−257:9 NEWLINE
1609−257:9 lit %.n
1610−257:13 lit ~
1611−259:1 DEDENT
1612−259:1 DEDENT
1613−259:1 DEDENT
1614−259:1 DEDENT
1615−259:1 NEWLINE
1616−259:1 glyph ++
1617−259:4 name murn
1618−259:9 glyph |=
1619−259:12 name args
1620−259:16 tight glyph =
1621−259:17 tight glyph [
1622−259:18 tight glyph (
1623−259:19 tight name list
1624−259:24 tvar A
1625−259:25 tight glyph )
1626−259:27 glyph $-(
1627−259:30 tight tvar A
1628−259:32 glyph (
1629−259:33 tight name unit
1630−259:38 tvar B
1631−259:39 tight glyph )
1632−259:40 tight glyph )
1633−259:41 tight glyph ]
1634−260:3 INDENT
1635−260:3 glyph ?-
1636−260:6 name args
1637−261:5 INDENT
1638−261:5 glyph [
1639−261:6 tight name xs
1640−261:9 name f
1641−261:10 tight glyph ]
1642−261:12 glyph ^-
1643−261:15 glyph (
1644−261:16 tight name list
1645−261:21 tvar B
1646−261:22 tight glyph )
1647−262:9 INDENT
1648−262:9 glyph ?-
1649−262:12 name xs
1650−263:11 INDENT
1651−263:11 lit ~
1652−263:13 lit ~
1653−264:11 NEWLINE
1654−264:11 glyph [
1655−264:12 tight name item
1656−264:17 name rest
1657−264:21 tight glyph ]
1658−265:13 INDENT
1659−265:13 glyph ?-
1660−265:16 glyph (
1661−265:17 tight name f
1662−265:19 name item
1663−265:23 tight glyph )
1664−266:15 INDENT
1665−266:15 lit ~
1666−266:17 glyph (
1667−266:18 tight name murn
1668−266:23 name rest
1669−266:28 name f
1670−266:29 tight glyph )
1671−267:15 NEWLINE
1672−267:15 glyph [
1673−267:16 tight lit ~
1674−267:18 name value
1675−267:23 tight glyph ]
1676−267:25 glyph [
1677−267:26 tight name value
1678−267:32 glyph (
1679−267:33 tight name murn
1680−267:38 name rest
1681−267:43 name f
1682−267:44 tight glyph )
1683−267:45 tight glyph ]
1684−269:1 DEDENT
1685−269:1 DEDENT
1686−269:1 DEDENT
1687−269:1 DEDENT
1688−269:1 DEDENT
1689−269:1 DEDENT
1690−269:1 NEWLINE
1691−269:1 glyph ++
1692−269:4 name join
1693−269:9 glyph |=
1694−269:12 name args
1695−269:16 tight glyph =
1696−269:17 tight glyph [
1697−269:18 tight tvar A
1698−269:20 glyph (
1699−269:21 tight name list
1700−269:26 tvar A
1701−269:27 tight glyph )
1702−269:28 tight glyph ]
1703−270:3 INDENT
1704−270:3 glyph ?-
1705−270:6 name args
1706−271:5 INDENT
1707−271:5 glyph [
1708−271:6 tight name separator
1709−271:16 name xs
1710−271:18 tight glyph ]
1711−271:20 glyph ^-
1712−271:23 glyph (
1713−271:24 tight name list
1714−271:29 tvar A
1715−271:30 tight glyph )
1716−272:9 INDENT
1717−272:9 glyph ?-
1718−272:12 name xs
1719−273:11 INDENT
1720−273:11 lit ~
1721−273:13 lit ~
1722−274:11 NEWLINE
1723−274:11 glyph [
1724−274:12 tight name item
1725−274:17 name rest
1726−274:21 tight glyph ]
1727−275:13 INDENT
1728−275:13 glyph ?-
1729−275:16 name rest
1730−276:15 INDENT
1731−276:15 lit ~
1732−276:17 glyph [
1733−276:18 tight name item
1734−276:23 lit ~
1735−276:24 tight glyph ]
1736−277:15 NEWLINE
1737−277:15 glyph [
1738−277:16 tight name next
1739−277:21 name more
1740−277:25 tight glyph ]
1741−277:27 glyph [
1742−277:28 tight name item
1743−277:33 glyph [
1744−277:34 tight name separator
1745−277:44 glyph (
1746−277:45 tight name join
1747−277:50 name separator
1748−277:60 name rest
1749−277:64 tight glyph )
1750−277:65 tight glyph ]
1751−277:66 tight glyph ]
1752−279:1 DEDENT
1753−279:1 DEDENT
1754−279:1 DEDENT
1755−279:1 DEDENT
1756−279:1 DEDENT
1757−279:1 DEDENT
1758−279:1 NEWLINE
1759−279:1 glyph ++
1760−279:4 name snip
1761−279:9 glyph |=
1762−279:12 name xs
1763−279:14 tight glyph =
1764−279:15 tight glyph (
1765−279:16 tight name list
1766−279:21 tvar A
1767−279:22 tight glyph )
1768−280:3 INDENT
1769−280:3 glyph ^-
1770−280:6 glyph (
1771−280:7 tight name list
1772−280:12 tvar A
1773−280:13 tight glyph )
1774−281:5 INDENT
1775−281:5 glyph ?-
1776−281:8 name xs
1777−282:7 INDENT
1778−282:7 lit ~
1779−282:9 lit ~
1780−283:7 NEWLINE
1781−283:7 glyph [
1782−283:8 tight name item
1783−283:13 name rest
1784−283:17 tight glyph ]
1785−284:9 INDENT
1786−284:9 glyph ?-
1787−284:12 name rest
1788−285:11 INDENT
1789−285:11 lit ~
1790−285:13 lit ~
1791−286:11 NEWLINE
1792−286:11 glyph [
1793−286:12 tight name next
1794−286:17 name more
1795−286:21 tight glyph ]
1796−286:23 glyph [
1797−286:24 tight name item
1798−286:29 glyph (
1799−286:30 tight name snip
1800−286:35 name rest
1801−286:39 tight glyph )
1802−286:40 tight glyph ]
1803−288:1 DEDENT
1804−288:1 DEDENT
1805−288:1 DEDENT
1806−288:1 DEDENT
1807−288:1 DEDENT
1808−288:1 NEWLINE
1809−288:1 glyph ++
1810−288:4 name rear
1811−288:9 glyph |=
1812−288:12 name xs
1813−288:14 tight glyph =
1814−288:15 tight glyph (
1815−288:16 tight name list
1816−288:21 tvar A
1817−288:22 tight glyph )
1818−289:3 INDENT
1819−289:3 glyph ?-
1820−289:6 name xs
1821−290:5 INDENT
1822−290:5 lit ~
1823−290:7 glyph !!
1824−291:5 NEWLINE
1825−291:5 glyph [
1826−291:6 tight name item
1827−291:11 name rest
1828−291:15 tight glyph ]
1829−292:7 INDENT
1830−292:7 glyph ?-
1831−292:10 name rest
1832−293:9 INDENT
1833−293:9 lit ~
1834−293:11 name item
1835−294:9 NEWLINE
1836−294:9 glyph [
1837−294:10 tight name next
1838−294:15 name more
1839−294:19 tight glyph ]
1840−294:21 glyph (
1841−294:22 tight name rear
1842−294:27 name rest
1843−294:31 tight glyph )
1844−296:1 DEDENT
1845−296:1 DEDENT
1846−296:1 DEDENT
1847−296:1 DEDENT
1848−296:1 NEWLINE
1849−296:1 glyph ++
1850−296:4 name cork
1851−296:9 glyph |=
1852−296:12 name gates
1853−296:17 tight glyph =
1854−296:18 tight glyph [
1855−296:19 tight glyph $-(
1856−296:22 tight tvar A
1857−296:24 tvar B
1858−296:25 tight glyph )
1859−296:27 glyph $-(
1860−296:30 tight tvar B
1861−296:32 tvar C
1862−296:33 tight glyph )
1863−296:34 tight glyph ]
1864−297:3 INDENT
1865−297:3 glyph ?-
1866−297:6 name gates
1867−298:5 INDENT
1868−298:5 glyph [
1869−298:6 tight name f
1870−298:8 name g
1871−298:9 tight glyph ]
1872−298:11 glyph |=
1873−298:14 name x
1874−298:15 tight glyph =
1875−298:16 tight tvar A
1876−298:18 glyph (
1877−298:19 tight name g
1878−298:21 glyph (
1879−298:22 tight name f
1880−298:24 name x
1881−298:25 tight glyph )
1882−298:26 tight glyph )
1883−300:1 DEDENT
1884−300:1 DEDENT
1885−300:1 NEWLINE
1886−300:1 glyph ++
1887−300:4 name corl
1888−300:9 glyph |=
1889−300:12 name gates
1890−300:17 tight glyph =
1891−300:18 tight glyph [
1892−300:19 tight glyph $-(
1893−300:22 tight tvar B
1894−300:24 tvar C
1895−300:25 tight glyph )
1896−300:27 glyph $-(
1897−300:30 tight tvar A
1898−300:32 tvar B
1899−300:33 tight glyph )
1900−300:34 tight glyph ]
1901−301:3 INDENT
1902−301:3 glyph ?-
1903−301:6 name gates
1904−302:5 INDENT
1905−302:5 glyph [
1906−302:6 tight name f
1907−302:8 name g
1908−302:9 tight glyph ]
1909−302:11 glyph |=
1910−302:14 name x
1911−302:15 tight glyph =
1912−302:16 tight tvar A
1913−302:18 glyph (
1914−302:19 tight name f
1915−302:21 glyph (
1916−302:22 tight name g
1917−302:24 name x
1918−302:25 tight glyph )
1919−302:26 tight glyph )
1920−304:1 DEDENT
1921−304:1 DEDENT
1922−304:1 NEWLINE
1923−304:1 glyph ++
1924−304:4 name cury
1925−304:9 glyph |=
1926−304:12 name args
1927−304:16 tight glyph =
1928−304:17 tight glyph [
1929−304:18 tight glyph $-(
1930−304:21 tight glyph [
1931−304:22 tight tvar A
1932−304:24 tvar B
1933−304:25 tight glyph ]
1934−304:27 tvar C
1935−304:28 tight glyph )
1936−304:30 tvar A
1937−304:31 tight glyph ]
1938−305:3 INDENT
1939−305:3 glyph ?-
1940−305:6 name args
1941−306:5 INDENT
1942−306:5 glyph [
1943−306:6 tight name f
1944−306:8 name a
1945−306:9 tight glyph ]
1946−306:11 glyph |=
1947−306:14 name b
1948−306:15 tight glyph =
1949−306:16 tight tvar B
1950−306:18 glyph (
1951−306:19 tight name f
1952−306:21 name a
1953−306:23 name b
1954−306:24 tight glyph )
1955−308:1 DEDENT
1956−308:1 DEDENT
1957−308:1 NEWLINE
1958−308:1 glyph ++
1959−308:4 name curr
1960−308:9 glyph |=
1961−308:12 name args
1962−308:16 tight glyph =
1963−308:17 tight glyph [
1964−308:18 tight glyph $-(
1965−308:21 tight glyph [
1966−308:22 tight tvar A
1967−308:24 tvar B
1968−308:25 tight glyph ]
1969−308:27 tvar C
1970−308:28 tight glyph )
1971−308:30 tvar B
1972−308:31 tight glyph ]
1973−309:3 INDENT
1974−309:3 glyph ?-
1975−309:6 name args
1976−310:5 INDENT
1977−310:5 glyph [
1978−310:6 tight name f
1979−310:8 name b
1980−310:9 tight glyph ]
1981−310:11 glyph |=
1982−310:14 name a
1983−310:15 tight glyph =
1984−310:16 tight tvar A
1985−310:18 glyph (
1986−310:19 tight name f
1987−310:21 name a
1988−310:23 name b
1989−310:24 tight glyph )
1990−312:1 DEDENT
1991−312:1 DEDENT
1992−312:1 NEWLINE
1993−312:1 glyph +$
1994−312:4 name cmd
1995−312:8 glyph |$
1996−312:11 glyph [
1997−312:12 tight tvar M
1998−312:13 tight glyph ]
1999−313:3 INDENT
2000−313:3 glyph [
2001−313:4 tight lit %poke
2002−313:10 name p
2003−313:11 tight glyph =
2004−313:12 tight name poke
2005−313:17 name reply
2006−313:22 tight glyph =
2007−313:23 tight glyph $-(
2008−313:26 tight glyph (
2009−313:27 tight name unit
2010−313:32 aura @t
2011−313:34 tight glyph )
2012−313:36 tvar M
2013−313:37 tight glyph )
2014−313:38 tight glyph ]
2015−314:3 NEWLINE
2016−314:3 glyph [
2017−314:4 tight lit %go
2018−314:8 name url
2019−314:11 tight glyph =
2020−314:12 tight aura @t
2021−314:14 tight glyph ]
2022−315:3 NEWLINE
2023−315:3 glyph [
2024−315:4 tight lit %wait
2025−315:10 name gap
2026−315:13 tight glyph =
2027−315:14 tight aura @dr
2028−315:18 name msg
2029−315:21 tight glyph =
2030−315:22 tight tvar M
2031−315:23 tight glyph ]
2032−316:3 NEWLINE
2033−316:3 glyph [
2034−316:4 tight lit %now
2035−316:9 name reply
2036−316:14 tight glyph =
2037−316:15 tight glyph $-(
2038−316:18 tight aura @da
2039−316:22 tvar M
2040−316:23 tight glyph )
2041−316:24 tight glyph ]
2042−317:3 NEWLINE
2043−317:3 glyph [
2044−317:4 tight lit %who
2045−317:9 name reply
2046−317:14 tight glyph =
2047−317:15 tight glyph $-(
2048−317:18 tight aura @p
2049−317:21 tvar M
2050−317:22 tight glyph )
2051−317:23 tight glyph ]
2052−319:1 DEDENT
2053−319:1 NEWLINE
2054−319:1 glyph ++
2055−319:4 name gth
2056−319:8 glyph |=
2057−319:11 name args
2058−319:15 tight glyph =
2059−319:16 tight glyph [
2060−319:17 tight tvar A
2061−319:19 tvar A
2062−319:20 tight glyph ]
2063−319:22 glyph (
2064−319:23 tight wing gth-atom.internal
2065−319:41 name args
2066−319:45 tight glyph )
2067−319:46 NEWLINE
tests/golden/prelude-unit-list-transforms/tree.txtdeleted−901
@@ -1,901 +0,0 @@
1−(module
2− (jibb 1:1 internal /lib/jibb/internal)
3− (mold 2:1 poke (ref 2:9 poke.internal))
4− (value 6:1 same
5− (gate 6:9
6− (face 6:12 x (tvar 6:14 A))
7− (wing 6:16 x)))
8− (value 8:1 head
9− (gate 8:9
10− (face 8:12 p
11− (cell 8:14 (tvar 8:15 A) (tvar 8:17 B)))
12− (body 9:3
13− (branch 9:3
14− (wing 9:6 p)
15− (arm 10:5
16− (cell 10:5 (bind 10:6 a) (bind 10:8 b))
17− (wing 10:11 a))))))
18− (value 12:1 tail
19− (gate 12:9
20− (face 12:12 p
21− (cell 12:14 (tvar 12:15 A) (tvar 12:17 B)))
22− (body 13:3
23− (branch 13:3
24− (wing 13:6 p)
25− (arm 14:5
26− (cell 14:5 (bind 14:6 a) (bind 14:8 b))
27− (wing 14:11 b))))))
28− (value 16:1 not
29− (gate 16:8
30− (face 16:11 b (flag 16:13))
31− (body 17:3
32− (branch 17:3
33− (wing 17:6 b)
34− (arm 18:5 (lit 18:5 %.y) (lit 18:9 %.n))
35− (arm 19:5 (lit 19:5 %.n) (lit 19:9 %.y))))))
36− (mold 21:1 list
37− (generic 21:9 A
38− (union 22:3
39− (const 22:3 ~)
40− (cell 23:3
41− (face 23:4 i (tvar 23:6 A))
42− (face 23:8 t
43− (apply 23:10 list (tvar 23:16 A)))))))
44− (mold 25:1 unit
45− (generic 25:9 A
46− (union 26:3
47− (const 26:3 ~)
48− (cell 27:3
49− (const 27:4 ~)
50− (face 27:6 u (tvar 27:8 A))))))
51− (value 29:1 fall
52− (gate 29:9
53− (face 29:12 args
54− (cell 29:17
55− (apply 29:18 unit (tvar 29:24 A))
56− (tvar 29:27 A)))
57− (body 30:3
58− (branch 30:3
59− (wing 30:6 args)
60− (arm 31:5
61− (cell 31:5 (bind 31:6 maybe) (bind 31:12 fallback))
62− (body 32:7
63− (branch 32:7
64− (wing 32:10 maybe)
65− (arm 33:9 (lit 33:9 ~) (wing 33:11 fallback))
66− (arm 34:9
67− (cell 34:9 (lit 34:10 ~) (bind 34:12 value))
68− (wing 34:19 value)))))))))
69− (value 36:1 need
70− (gate 36:9
71− (face 36:12 maybe
72− (apply 36:18 unit (tvar 36:24 A)))
73− (body 37:3
74− (branch 37:3
75− (wing 37:6 maybe)
76− (arm 38:5 (lit 38:5 ~) (crash 38:7))
77− (arm 39:5
78− (cell 39:5 (lit 39:6 ~) (bind 39:8 value))
79− (wing 39:15 value))))))
80− (value 41:1 weld
81− (gate 41:9
82− (face 41:12 args
83− (cell 41:17
84− (apply 41:18 list (tvar 41:24 A))
85− (apply 41:27 list (tvar 41:33 A))))
86− (body 42:3
87− (branch 42:3
88− (wing 42:6 args)
89− (arm 43:5
90− (cell 43:5 (bind 43:6 xs) (bind 43:9 ys))
91− (body 44:7
92− (cast 44:7
93− (apply 44:10 list (tvar 44:16 A))
94− (body 45:9
95− (branch 45:9
96− (wing 45:12 xs)
97− (arm 46:11 (lit 46:11 ~) (wing 46:13 ys))
98− (arm 47:11
99− (cell 47:11 (bind 47:12 item) (bind 47:17 rest))
100− (tuple 47:23
101− (wing 47:24 item)
102− (group 47:29
103− (call 47:30 (wing 47:30 weld) (wing 47:35 rest) (wing 47:40 ys))))))))))))))
104− (value 49:1 turn
105− (gate 49:9
106− (face 49:12 args
107− (cell 49:17
108− (apply 49:18 list (tvar 49:24 A))
109− (fn 49:27 (tvar 49:30 A) (tvar 49:32 B))))
110− (body 50:3
111− (branch 50:3
112− (wing 50:6 args)
113− (arm 51:5
114− (cell 51:5 (bind 51:6 xs) (bind 51:9 f))
115− (body 52:7
116− (cast 52:7
117− (apply 52:10 list (tvar 52:16 B))
118− (body 53:9
119− (branch 53:9
120− (wing 53:12 xs)
121− (arm 54:11 (lit 54:11 ~) (lit 54:13 ~))
122− (arm 55:11
123− (cell 55:11 (bind 55:12 item) (bind 55:17 rest))
124− (tuple 55:23
125− (group 55:24
126− (call 55:25 (wing 55:25 f) (wing 55:27 item)))
127− (group 55:33
128− (call 55:34 (wing 55:34 turn) (wing 55:39 rest) (wing 55:44 f))))))))))))))
129− (mold 57:1 dime
130− (cell 57:9
131− (face 57:10 p (aura 57:12 @ta))
132− (face 57:16 q (aura 57:18 @))))
133− (mold 59:1 hair
134− (cell 59:9
135− (face 59:10 p (aura 59:12 @ud))
136− (face 59:16 q (aura 59:18 @ud))))
137− (mold 61:1 pint
138− (cell 61:9
139− (face 61:10 p
140− (cell 61:12
141− (face 61:13 p (aura 61:15 @))
142− (face 61:17 q (aura 61:19 @))))
143− (face 61:22 q
144− (cell 61:24
145− (face 61:25 p (aura 61:27 @))
146− (face 61:29 q (aura 61:31 @))))))
147− (mold 63:1 coin
148− (union 64:3
149− (cell 64:3
150− (const 64:4 %$)
151− (face 64:7 p (ref 64:9 dime)))
152− (cell 65:3
153− (const 65:4 %blob)
154− (face 65:10 p (noun 65:12)))
155− (cell 66:3
156− (const 66:4 %many)
157− (face 66:10 p
158− (apply 66:12 list (ref 66:18 coin))))))
159− (mold 68:1 pair
160− (generic 68:9 A B
161− (cell 68:18
162− (face 68:19 p (tvar 68:21 A))
163− (face 68:23 q (tvar 68:25 B)))))
164− (mold 70:1 trel
165− (generic 70:9 A B C
166− (cell 70:20
167− (face 70:21 p (tvar 70:23 A))
168− (face 70:25 q (tvar 70:27 B))
169− (face 70:29 r (tvar 70:31 C)))))
170− (mold 72:1 qual
171− (generic 72:9 A B C D
172− (cell 72:22
173− (face 72:23 p (tvar 72:25 A))
174− (face 72:27 q (tvar 72:29 B))
175− (face 72:31 r (tvar 72:33 C))
176− (face 72:35 s (tvar 72:37 D)))))
177− (mold 74:1 cord (aura 74:9 @t))
178− (mold 76:1 knot (aura 76:9 @ta))
179− (mold 78:1 tape
180− (apply 78:9 list (aura 78:15 @tD)))
181− (mold 80:1 path
182− (apply 80:9 list (ref 80:15 knot)))
183− (mold 82:1 tank
184− (union 83:3
185− (ref 83:3 cord)
186− (cell 84:3
187− (const 84:4 %leaf)
188− (face 84:10 p (ref 84:12 tape)))
189− (cell 85:3
190− (const 85:4 %palm)
191− (face 85:10 p
192− (apply 85:12 qual (ref 85:18 tape) (ref 85:23 tape) (ref 85:28 tape) (ref 85:33 tape)))
193− (face 85:39 q
194− (apply 85:41 list (ref 85:47 tank))))
195− (cell 86:3
196− (const 86:4 %rose)
197− (face 86:10 p
198− (apply 86:12 trel (ref 86:18 tape) (ref 86:23 tape) (ref 86:28 tape)))
199− (face 86:34 q
200− (apply 86:36 list (ref 86:42 tank))))))
201− (mold 88:1 nail
202− (cell 88:9
203− (face 88:10 p (ref 88:12 hair))
204− (face 88:17 q (ref 88:19 tape))))
205− (mold 90:1 edge
206− (cell 90:9
207− (face 90:10 p (ref 90:12 hair))
208− (face 90:17 q
209− (apply 90:19 unit
210− (cell 90:25
211− (face 90:26 p (noun 90:28))
212− (face 90:30 q (ref 90:32 nail)))))))
213− (mold 92:1 rule
214− (fn 92:9 (ref 92:12 nail) (ref 92:17 edge)))
215− (mold 94:1 spot
216− (cell 94:9
217− (face 94:10 p (ref 94:12 path))
218− (face 94:17 q (ref 94:19 pint))))
219− (mold 96:1 toon
220− (union 97:3
221− (cell 97:3
222− (const 97:4 %0)
223− (face 97:7 p (noun 97:9)))
224− (cell 98:3
225− (const 98:4 %1)
226− (face 98:7 p (noun 98:9)))
227− (cell 99:3
228− (const 99:4 %2)
229− (face 99:7 p
230− (apply 99:9 list (ref 99:15 tank))))))
231− (mold 101:1 like
232− (generic 101:9 A
233− (cell 101:16
234− (face 101:17 p (ref 101:19 hair))
235− (face 101:24 q
236− (apply 101:26 unit
237− (cell 101:32
238− (face 101:33 p (tvar 101:35 A))
239− (face 101:37 q (ref 101:39 nail))))))))
240− (value 103:1 wonk
241− (gate 103:9
242− (face 103:12 veq
243− (apply 103:16 like (tvar 103:22 A)))
244− (body 104:3
245− (branch 104:3
246− (wing 104:6 q.veq)
247− (arm 105:5 (lit 105:5 ~) (crash 105:7))
248− (arm 106:5
249− (cell 106:5 (lit 106:6 ~) (bind 106:8 product))
250− (wing 106:17 p.product))))))
251− (mold 108:1 lone
252− (generic 108:9 A
253− (cell 108:16
254− (face 108:17 p (tvar 108:19 A)))))
255− (mold 110:1 lest
256− (generic 110:9 A
257− (cell 110:16
258− (face 110:17 i (tvar 110:19 A))
259− (face 110:21 t
260− (apply 110:23 list (tvar 110:29 A))))))
261− (mold 112:1 pole
262− (generic 112:9 A
263− (union 113:3
264− (const 113:3 ~)
265− (cell 114:3
266− (tvar 114:4 A)
267− (apply 114:6 pole (tvar 114:12 A))))))
268− (mold 116:1 quip
269− (generic 116:9 A B
270− (cell 116:18
271− (apply 116:19 list (tvar 116:25 A))
272− (tvar 116:28 B))))
273− (mold 118:1 tree
274− (generic 118:9 A
275− (union 119:3
276− (const 119:3 ~)
277− (cell 120:3
278− (face 120:4 n (tvar 120:6 A))
279− (face 120:8 l
280− (apply 120:10 tree (tvar 120:16 A)))
281− (face 120:19 r
282− (apply 120:21 tree (tvar 120:27 A)))))))
283− (mold 122:1 each
284− (generic 122:9 A B
285− (union 123:3
286− (cell 123:3
287− (const 123:4 %|)
288− (face 123:7 p (tvar 123:9 B)))
289− (cell 124:3
290− (const 124:4 %&)
291− (face 124:7 p (tvar 124:9 A))))))
292− (mold 126:1 bloq (aura 126:9 @))
293− (value 128:1 some
294− (gate 128:9
295− (face 128:12 item (tvar 128:17 A))
296− (unit 128:19 (wing 128:20 item))))
297− (value 130:1 lure
298− (gate 130:9
299− (face 130:12 item (tvar 130:17 A))
300− (body 131:3
301− (cast 131:3
302− (apply 131:6 list (tvar 131:12 A))
303− (tuple 131:15 (wing 131:16 item) (lit 131:21 ~))))))
304− (value 133:1 snoc
305− (gate 133:9
306− (face 133:12 args
307− (cell 133:17
308− (apply 133:18 list (tvar 133:24 A))
309− (tvar 133:27 A)))
310− (body 134:3
311− (branch 134:3
312− (wing 134:6 args)
313− (arm 135:5
314− (cell 135:5 (bind 135:6 xs) (bind 135:9 item))
315− (group 135:15
316− (call 135:16
317− (wing 135:16 weld)
318− (wing 135:21 xs)
319− (tuple 135:24 (wing 135:25 item) (lit 135:30 ~)))))))))
320− (value 137:1 flop
321− (gate 137:9
322− (face 137:12 xs
323− (apply 137:15 list (tvar 137:21 A)))
324− (body 138:3
325− (value 138:3 reverse-into
326− (gate 138:19
327− (face 138:22 args
328− (cell 138:27
329− (apply 138:28 list (tvar 138:34 A))
330− (apply 138:37 list (tvar 138:43 A))))
331− (body 139:5
332− (branch 139:5
333− (wing 139:8 args)
334− (arm 140:7
335− (cell 140:7 (bind 140:8 rest) (bind 140:13 acc))
336− (body 141:9
337− (branch 141:9
338− (wing 141:12 rest)
339− (arm 142:11 (lit 142:11 ~) (wing 142:13 acc))
340− (arm 143:11
341− (cell 143:11 (bind 143:12 item) (bind 143:17 more))
342− (group 143:23
343− (call 143:24
344− (wing 143:24 reverse-into)
345− (wing 143:37 more)
346− (tuple 143:42 (wing 143:43 item) (wing 143:48 acc))))))))))))
347− (group 144:3
348− (call 144:4 (wing 144:4 reverse-into) (wing 144:17 xs) (lit 144:20 ~))))))
349− (value 146:1 drop
350− (gate 146:9
351− (face 146:12 maybe
352− (apply 146:18 unit (tvar 146:24 A)))
353− (body 147:3
354− (cast 147:3
355− (apply 147:6 list (tvar 147:12 A))
356− (body 148:5
357− (branch 148:5
358− (wing 148:8 maybe)
359− (arm 149:7 (lit 149:7 ~) (lit 149:9 ~))
360− (arm 150:7
361− (cell 150:7 (lit 150:8 ~) (bind 150:10 value))
362− (tuple 150:17 (wing 150:18 value) (lit 150:24 ~)))))))))
363− (value 152:1 bind
364− (gate 152:9
365− (face 152:12 args
366− (cell 152:17
367− (apply 152:18 unit (tvar 152:24 A))
368− (fn 152:27 (tvar 152:30 A) (tvar 152:32 B))))
369− (body 153:3
370− (branch 153:3
371− (wing 153:6 args)
372− (arm 154:5
373− (cell 154:5 (bind 154:6 maybe) (bind 154:12 f))
374− (cast 154:15
375− (apply 154:18 unit (tvar 154:24 B))
376− (body 155:7
377− (branch 155:7
378− (wing 155:10 maybe)
379− (arm 156:9 (lit 156:9 ~) (lit 156:11 ~))
380− (arm 157:9
381− (cell 157:9 (lit 157:10 ~) (bind 157:12 value))
382− (unit 157:19
383− (group 157:20
384− (call 157:21 (wing 157:21 f) (wing 157:23 value)))))))))))))
385− (value 159:1 biff
386− (gate 159:9
387− (face 159:12 args
388− (cell 159:17
389− (apply 159:18 unit (tvar 159:24 A))
390− (fn 159:27
391− (tvar 159:30 A)
392− (apply 159:32 unit (tvar 159:38 B)))))
393− (body 160:3
394− (branch 160:3
395− (wing 160:6 args)
396− (arm 161:5
397− (cell 161:5 (bind 161:6 maybe) (bind 161:12 f))
398− (cast 161:15
399− (apply 161:18 unit (tvar 161:24 B))
400− (body 162:7
401− (branch 162:7
402− (wing 162:10 maybe)
403− (arm 163:9 (lit 163:9 ~) (lit 163:11 ~))
404− (arm 164:9
405− (cell 164:9 (lit 164:10 ~) (bind 164:12 value))
406− (group 164:19
407− (call 164:20 (wing 164:20 f) (wing 164:22 value))))))))))))
408− (value 166:1 both
409− (gate 166:9
410− (face 166:12 args
411− (cell 166:17
412− (apply 166:18 unit (tvar 166:24 A))
413− (apply 166:27 unit (tvar 166:33 B))))
414− (body 167:3
415− (branch 167:3
416− (wing 167:6 args)
417− (arm 168:5
418− (cell 168:5 (bind 168:6 first) (bind 168:12 second))
419− (cast 168:20
420− (apply 168:23 unit
421− (cell 168:29 (tvar 168:30 A) (tvar 168:32 B)))
422− (body 169:7
423− (branch 169:7
424− (wing 169:10 first)
425− (arm 170:9 (lit 170:9 ~) (lit 170:11 ~))
426− (arm 171:9
427− (cell 171:9 (lit 171:10 ~) (bind 171:12 a))
428− (body 172:11
429− (branch 172:11
430− (wing 172:14 second)
431− (arm 173:13 (lit 173:13 ~) (lit 173:15 ~))
432− (arm 174:13
433− (cell 174:13 (lit 174:14 ~) (bind 174:16 b))
434− (unit 174:19
435− (tuple 174:20 (wing 174:21 a) (wing 174:23 b)))))))))))))))
436− (value 176:1 clap
437− (gate 176:9
438− (face 176:12 args
439− (cell 176:17
440− (apply 176:18 unit (tvar 176:24 A))
441− (apply 176:27 unit (tvar 176:33 A))
442− (fn 176:36
443− (cell 176:39 (tvar 176:40 A) (tvar 176:42 A))
444− (tvar 176:45 A))))
445− (body 177:3
446− (branch 177:3
447− (wing 177:6 args)
448− (arm 178:5
449− (cell 178:5 (bind 178:6 first) (bind 178:12 second) (bind 178:19 combine))
450− (cast 178:28
451− (apply 178:31 unit (tvar 178:37 A))
452− (body 179:7
453− (branch 179:7
454− (wing 179:10 first)
455− (arm 180:9 (lit 180:9 ~) (wing 180:11 second))
456− (arm 181:9
457− (cell 181:9 (lit 181:10 ~) (bind 181:12 a))
458− (body 182:11
459− (branch 182:11
460− (wing 182:14 second)
461− (arm 183:13 (lit 183:13 ~) (wing 183:15 first))
462− (arm 184:13
463− (cell 184:13 (lit 184:14 ~) (bind 184:16 b))
464− (unit 184:19
465− (group 184:20
466− (call 184:21 (wing 184:21 combine) (wing 184:29 a) (wing 184:31 b))))))))))))))))
467− (value 186:1 clef
468− (gate 186:9
469− (face 186:12 args
470− (cell 186:17
471− (apply 186:18 unit (tvar 186:24 A))
472− (apply 186:27 unit (tvar 186:33 B))
473− (fn 186:36
474− (cell 186:39 (tvar 186:40 A) (tvar 186:42 B))
475− (apply 186:45 unit (tvar 186:51 C)))))
476− (body 187:3
477− (branch 187:3
478− (wing 187:6 args)
479− (arm 188:5
480− (cell 188:5 (bind 188:6 first) (bind 188:12 second) (bind 188:19 combine))
481− (cast 188:28
482− (apply 188:31 unit (tvar 188:37 C))
483− (body 189:7
484− (branch 189:7
485− (wing 189:10 first)
486− (arm 190:9 (lit 190:9 ~) (lit 190:11 ~))
487− (arm 191:9
488− (cell 191:9 (lit 191:10 ~) (bind 191:12 a))
489− (body 192:11
490− (branch 192:11
491− (wing 192:14 second)
492− (arm 193:13 (lit 193:13 ~) (lit 193:15 ~))
493− (arm 194:13
494− (cell 194:13 (lit 194:14 ~) (bind 194:16 b))
495− (group 194:19
496− (call 194:20 (wing 194:20 combine) (wing 194:28 a) (wing 194:30 b)))))))))))))))
497− (value 196:1 skim
498− (gate 196:9
499− (face 196:12 args
500− (cell 196:17
501− (apply 196:18 list (tvar 196:24 A))
502− (fn 196:27 (tvar 196:30 A) (flag 196:32))))
503− (body 197:3
504− (branch 197:3
505− (wing 197:6 args)
506− (arm 198:5
507− (cell 198:5 (bind 198:6 xs) (bind 198:9 predicate))
508− (cast 198:20
509− (apply 198:23 list (tvar 198:29 A))
510− (body 199:9
511− (branch 199:9
512− (wing 199:12 xs)
513− (arm 200:11 (lit 200:11 ~) (lit 200:13 ~))
514− (arm 201:11
515− (cell 201:11 (bind 201:12 item) (bind 201:17 rest))
516− (body 202:13
517− (branch 202:13
518− (group 202:16
519− (call 202:17 (wing 202:17 predicate) (wing 202:27 item)))
520− (arm 203:15
521− (lit 203:15 %.y)
522− (tuple 203:19
523− (wing 203:20 item)
524− (group 203:25
525− (call 203:26 (wing 203:26 skim) (wing 203:31 rest) (wing 203:36 predicate)))))
526− (arm 204:15
527− (lit 204:15 %.n)
528− (group 204:19
529− (call 204:20 (wing 204:20 skim) (wing 204:25 rest) (wing 204:30 predicate)))))))))))))))
530− (value 206:1 skip
531− (gate 206:9
532− (face 206:12 args
533− (cell 206:17
534− (apply 206:18 list (tvar 206:24 A))
535− (fn 206:27 (tvar 206:30 A) (flag 206:32))))
536− (body 207:3
537− (branch 207:3
538− (wing 207:6 args)
539− (arm 208:5
540− (cell 208:5 (bind 208:6 xs) (bind 208:9 predicate))
541− (cast 208:20
542− (apply 208:23 list (tvar 208:29 A))
543− (body 209:9
544− (branch 209:9
545− (wing 209:12 xs)
546− (arm 210:11 (lit 210:11 ~) (lit 210:13 ~))
547− (arm 211:11
548− (cell 211:11 (bind 211:12 item) (bind 211:17 rest))
549− (body 212:13
550− (branch 212:13
551− (group 212:16
552− (call 212:17 (wing 212:17 predicate) (wing 212:27 item)))
553− (arm 213:15
554− (lit 213:15 %.y)
555− (group 213:19
556− (call 213:20 (wing 213:20 skip) (wing 213:25 rest) (wing 213:30 predicate))))
557− (arm 214:15
558− (lit 214:15 %.n)
559− (tuple 214:19
560− (wing 214:20 item)
561− (group 214:25
562− (call 214:26 (wing 214:26 skip) (wing 214:31 rest) (wing 214:36 predicate))))))))))))))))
563− (value 216:1 levy
564− (gate 216:9
565− (face 216:12 args
566− (cell 216:17
567− (apply 216:18 list (tvar 216:24 A))
568− (fn 216:27 (tvar 216:30 A) (flag 216:32))))
569− (body 217:3
570− (cast 217:3
571− (flag 217:6)
572− (body 218:5
573− (branch 218:5
574− (wing 218:8 args)
575− (arm 219:7
576− (cell 219:7 (bind 219:8 xs) (bind 219:11 predicate))
577− (body 220:9
578− (branch 220:9
579− (wing 220:12 xs)
580− (arm 221:11 (lit 221:11 ~) (lit 221:13 %.y))
581− (arm 222:11
582− (cell 222:11 (bind 222:12 item) (bind 222:17 rest))
583− (body 223:13
584− (branch 223:13
585− (group 223:16
586− (call 223:17 (wing 223:17 predicate) (wing 223:27 item)))
587− (arm 224:15
588− (lit 224:15 %.y)
589− (group 224:19
590− (call 224:20 (wing 224:20 levy) (wing 224:25 rest) (wing 224:30 predicate))))
591− (arm 225:15 (lit 225:15 %.n) (lit 225:19 %.n))))))))))))))
592− (value 227:1 lien
593− (gate 227:9
594− (face 227:12 args
595− (cell 227:17
596− (apply 227:18 list (tvar 227:24 A))
597− (fn 227:27 (tvar 227:30 A) (flag 227:32))))
598− (body 228:3
599− (cast 228:3
600− (flag 228:6)
601− (body 229:5
602− (branch 229:5
603− (wing 229:8 args)
604− (arm 230:7
605− (cell 230:7 (bind 230:8 xs) (bind 230:11 predicate))
606− (body 231:9
607− (branch 231:9
608− (wing 231:12 xs)
609− (arm 232:11 (lit 232:11 ~) (lit 232:13 %.n))
610− (arm 233:11
611− (cell 233:11 (bind 233:12 item) (bind 233:17 rest))
612− (body 234:13
613− (branch 234:13
614− (group 234:16
615− (call 234:17 (wing 234:17 predicate) (wing 234:27 item)))
616− (arm 235:15 (lit 235:15 %.y) (lit 235:19 %.y))
617− (arm 236:15
618− (lit 236:15 %.n)
619− (group 236:19
620− (call 236:20 (wing 236:20 lien) (wing 236:25 rest) (wing 236:30 predicate))))))))))))))))
621− (value 238:1 roll
622− (gate 238:9
623− (face 238:12 args
624− (cell 238:17
625− (apply 238:18 list (tvar 238:24 A))
626− (tvar 238:27 B)
627− (fn 238:29
628− (cell 238:32 (tvar 238:33 A) (tvar 238:35 B))
629− (tvar 238:38 B))))
630− (body 239:3
631− (branch 239:3
632− (wing 239:6 args)
633− (arm 240:5
634− (cell 240:5 (bind 240:6 xs) (bind 240:9 start) (bind 240:15 combine))
635− (body 241:7
636− (branch 241:7
637− (wing 241:10 xs)
638− (arm 242:9 (lit 242:9 ~) (wing 242:11 start))
639− (arm 243:9
640− (cell 243:9 (bind 243:10 item) (bind 243:15 rest))
641− (group 243:21
642− (call 243:22
643− (wing 243:22 roll)
644− (wing 243:27 rest)
645− (group 243:32
646− (call 243:33 (wing 243:33 combine) (wing 243:41 item) (wing 243:46 start)))
647− (wing 243:53 combine)))))))))))
648− (value 245:1 reel
649− (gate 245:9
650− (face 245:12 args
651− (cell 245:17
652− (apply 245:18 list (tvar 245:24 A))
653− (tvar 245:27 B)
654− (fn 245:29
655− (cell 245:32 (tvar 245:33 A) (tvar 245:35 B))
656− (tvar 245:38 B))))
657− (body 246:3
658− (branch 246:3
659− (wing 246:6 args)
660− (arm 247:5
661− (cell 247:5 (bind 247:6 xs) (bind 247:9 start) (bind 247:15 combine))
662− (body 248:7
663− (branch 248:7
664− (wing 248:10 xs)
665− (arm 249:9 (lit 249:9 ~) (wing 249:11 start))
666− (arm 250:9
667− (cell 250:9 (bind 250:10 item) (bind 250:15 rest))
668− (group 250:21
669− (call 250:22
670− (wing 250:22 combine)
671− (wing 250:30 item)
672− (group 250:35
673− (call 250:36 (wing 250:36 reel) (wing 250:41 rest) (wing 250:46 start) (wing 250:52 combine)))))))))))))
674− (value 252:1 flit
675− (gate 252:9
676− (face 252:12 predicate
677− (fn 252:22 (tvar 252:25 A) (flag 252:27)))
678− (body 253:3
679− (gate 253:3
680− (face 253:6 value (tvar 253:12 A))
681− (body 254:5
682− (cast 254:5
683− (apply 254:8 unit (tvar 254:14 A))
684− (body 255:7
685− (branch 255:7
686− (group 255:10
687− (call 255:11 (wing 255:11 predicate) (wing 255:21 value)))
688− (arm 256:9
689− (lit 256:9 %.y)
690− (unit 256:13 (wing 256:14 value)))
691− (arm 257:9 (lit 257:9 %.n) (lit 257:13 ~))))))))))
692− (value 259:1 murn
693− (gate 259:9
694− (face 259:12 args
695− (cell 259:17
696− (apply 259:18 list (tvar 259:24 A))
697− (fn 259:27
698− (tvar 259:30 A)
699− (apply 259:32 unit (tvar 259:38 B)))))
700− (body 260:3
701− (branch 260:3
702− (wing 260:6 args)
703− (arm 261:5
704− (cell 261:5 (bind 261:6 xs) (bind 261:9 f))
705− (cast 261:12
706− (apply 261:15 list (tvar 261:21 B))
707− (body 262:9
708− (branch 262:9
709− (wing 262:12 xs)
710− (arm 263:11 (lit 263:11 ~) (lit 263:13 ~))
711− (arm 264:11
712− (cell 264:11 (bind 264:12 item) (bind 264:17 rest))
713− (body 265:13
714− (branch 265:13
715− (group 265:16
716− (call 265:17 (wing 265:17 f) (wing 265:19 item)))
717− (arm 266:15
718− (lit 266:15 ~)
719− (group 266:17
720− (call 266:18 (wing 266:18 murn) (wing 266:23 rest) (wing 266:28 f))))
721− (arm 267:15
722− (cell 267:15 (lit 267:16 ~) (bind 267:18 value))
723− (tuple 267:25
724− (wing 267:26 value)
725− (group 267:32
726− (call 267:33 (wing 267:33 murn) (wing 267:38 rest) (wing 267:43 f))))))))))))))))
727− (value 269:1 join
728− (gate 269:9
729− (face 269:12 args
730− (cell 269:17
731− (tvar 269:18 A)
732− (apply 269:20 list (tvar 269:26 A))))
733− (body 270:3
734− (branch 270:3
735− (wing 270:6 args)
736− (arm 271:5
737− (cell 271:5 (bind 271:6 separator) (bind 271:16 xs))
738− (cast 271:20
739− (apply 271:23 list (tvar 271:29 A))
740− (body 272:9
741− (branch 272:9
742− (wing 272:12 xs)
743− (arm 273:11 (lit 273:11 ~) (lit 273:13 ~))
744− (arm 274:11
745− (cell 274:11 (bind 274:12 item) (bind 274:17 rest))
746− (body 275:13
747− (branch 275:13
748− (wing 275:16 rest)
749− (arm 276:15
750− (lit 276:15 ~)
751− (tuple 276:17 (wing 276:18 item) (lit 276:23 ~)))
752− (arm 277:15
753− (cell 277:15 (bind 277:16 next) (bind 277:21 more))
754− (tuple 277:27
755− (wing 277:28 item)
756− (tuple 277:33
757− (wing 277:34 separator)
758− (group 277:44
759− (call 277:45 (wing 277:45 join) (wing 277:50 separator) (wing 277:60 rest)))))))))))))))))
760− (value 279:1 snip
761− (gate 279:9
762− (face 279:12 xs
763− (apply 279:15 list (tvar 279:21 A)))
764− (body 280:3
765− (cast 280:3
766− (apply 280:6 list (tvar 280:12 A))
767− (body 281:5
768− (branch 281:5
769− (wing 281:8 xs)
770− (arm 282:7 (lit 282:7 ~) (lit 282:9 ~))
771− (arm 283:7
772− (cell 283:7 (bind 283:8 item) (bind 283:13 rest))
773− (body 284:9
774− (branch 284:9
775− (wing 284:12 rest)
776− (arm 285:11 (lit 285:11 ~) (lit 285:13 ~))
777− (arm 286:11
778− (cell 286:11 (bind 286:12 next) (bind 286:17 more))
779− (tuple 286:23
780− (wing 286:24 item)
781− (group 286:29
782− (call 286:30 (wing 286:30 snip) (wing 286:35 rest))))))))))))))
783− (value 288:1 rear
784− (gate 288:9
785− (face 288:12 xs
786− (apply 288:15 list (tvar 288:21 A)))
787− (body 289:3
788− (branch 289:3
789− (wing 289:6 xs)
790− (arm 290:5 (lit 290:5 ~) (crash 290:7))
791− (arm 291:5
792− (cell 291:5 (bind 291:6 item) (bind 291:11 rest))
793− (body 292:7
794− (branch 292:7
795− (wing 292:10 rest)
796− (arm 293:9 (lit 293:9 ~) (wing 293:11 item))
797− (arm 294:9
798− (cell 294:9 (bind 294:10 next) (bind 294:15 more))
799− (group 294:21
800− (call 294:22 (wing 294:22 rear) (wing 294:27 rest)))))))))))
801− (value 296:1 cork
802− (gate 296:9
803− (face 296:12 gates
804− (cell 296:18
805− (fn 296:19 (tvar 296:22 A) (tvar 296:24 B))
806− (fn 296:27 (tvar 296:30 B) (tvar 296:32 C))))
807− (body 297:3
808− (branch 297:3
809− (wing 297:6 gates)
810− (arm 298:5
811− (cell 298:5 (bind 298:6 f) (bind 298:8 g))
812− (gate 298:11
813− (face 298:14 x (tvar 298:16 A))
814− (group 298:18
815− (call 298:19
816− (wing 298:19 g)
817− (group 298:21
818− (call 298:22 (wing 298:22 f) (wing 298:24 x)))))))))))
819− (value 300:1 corl
820− (gate 300:9
821− (face 300:12 gates
822− (cell 300:18
823− (fn 300:19 (tvar 300:22 B) (tvar 300:24 C))
824− (fn 300:27 (tvar 300:30 A) (tvar 300:32 B))))
825− (body 301:3
826− (branch 301:3
827− (wing 301:6 gates)
828− (arm 302:5
829− (cell 302:5 (bind 302:6 f) (bind 302:8 g))
830− (gate 302:11
831− (face 302:14 x (tvar 302:16 A))
832− (group 302:18
833− (call 302:19
834− (wing 302:19 f)
835− (group 302:21
836− (call 302:22 (wing 302:22 g) (wing 302:24 x)))))))))))
837− (value 304:1 cury
838− (gate 304:9
839− (face 304:12 args
840− (cell 304:17
841− (fn 304:18
842− (cell 304:21 (tvar 304:22 A) (tvar 304:24 B))
843− (tvar 304:27 C))
844− (tvar 304:30 A)))
845− (body 305:3
846− (branch 305:3
847− (wing 305:6 args)
848− (arm 306:5
849− (cell 306:5 (bind 306:6 f) (bind 306:8 a))
850− (gate 306:11
851− (face 306:14 b (tvar 306:16 B))
852− (group 306:18
853− (call 306:19 (wing 306:19 f) (wing 306:21 a) (wing 306:23 b)))))))))
854− (value 308:1 curr
855− (gate 308:9
856− (face 308:12 args
857− (cell 308:17
858− (fn 308:18
859− (cell 308:21 (tvar 308:22 A) (tvar 308:24 B))
860− (tvar 308:27 C))
861− (tvar 308:30 B)))
862− (body 309:3
863− (branch 309:3
864− (wing 309:6 args)
865− (arm 310:5
866− (cell 310:5 (bind 310:6 f) (bind 310:8 b))
867− (gate 310:11
868− (face 310:14 a (tvar 310:16 A))
869− (group 310:18
870− (call 310:19 (wing 310:19 f) (wing 310:21 a) (wing 310:23 b)))))))))
871− (mold 312:1 cmd
872− (generic 312:8 M
873− (union 313:3
874− (cell 313:3
875− (const 313:4 %poke)
876− (face 313:10 p (ref 313:12 poke))
877− (face 313:17 reply
878− (fn 313:23
879− (apply 313:26 unit (aura 313:32 @t))
880− (tvar 313:36 M))))
881− (cell 314:3
882− (const 314:4 %go)
883− (face 314:8 url (aura 314:12 @t)))
884− (cell 315:3
885− (const 315:4 %wait)
886− (face 315:10 gap (aura 315:14 @dr))
887− (face 315:18 msg (tvar 315:22 M)))
888− (cell 316:3
889− (const 316:4 %now)
890− (face 316:9 reply
891− (fn 316:15 (aura 316:18 @da) (tvar 316:22 M))))
892− (cell 317:3
893− (const 317:4 %who)
894− (face 317:9 reply
895− (fn 317:15 (aura 317:18 @p) (tvar 317:21 M)))))))
896− (value 319:1 gth
897− (gate 319:8
898− (face 319:11 args
899− (cell 319:16 (tvar 319:17 A) (tvar 319:19 A)))
900− (group 319:22
901− (call 319:23 (wing 319:23 gth-atom.internal) (wing 319:41 args))))))
tests/golden/prelude-unit-list-transforms/types.txtdeleted−65
@@ -1,65 +0,0 @@
1−partial inference; module not checked
2−+$ poke: not checked
3−++ same: $-(A A)
4−++ head: $-([A B] A)
5−++ tail: $-([A B] B)
6−++ not: $-(? ?)
7−+$ list: cases proven disjoint; mold not checked
8−+$ unit: cases proven disjoint; mold not checked
9−++ fall: $-([(unit A) A] A)
10−++ need: $-((unit A) A)
11−++ weld: sample mold is not supported by partial inference
12−++ turn: sample mold is not supported by partial inference
13−+$ dime: not checked
14−+$ hair: not checked
15−+$ pint: not checked
16−+$ coin: cases proven disjoint; mold not checked
17−+$ pair: not checked
18−+$ trel: not checked
19−+$ qual: not checked
20−+$ cord: not checked
21−+$ knot: not checked
22−+$ tape: not checked
23−+$ path: not checked
24−+$ tank: cases proven disjoint; mold not checked
25−+$ nail: not checked
26−+$ edge: not checked
27−+$ rule: not checked
28−+$ spot: not checked
29−+$ toon: cases proven disjoint; mold not checked
30−+$ like: not checked
31−++ wonk: sample mold is not supported by partial inference
32−+$ lone: not checked
33−+$ lest: not checked
34−+$ pole: cases proven disjoint; mold not checked
35−+$ quip: not checked
36−+$ tree: cases proven disjoint; mold not checked
37−+$ each: cases proven disjoint; mold not checked
38−+$ bloq: not checked
39−++ some: unit construction needs the standard prelude in partial inference
40−++ lure: cast mold is not supported by partial inference
41−++ snoc: sample mold is not supported by partial inference
42−++ flop: sample mold is not supported by partial inference
43−++ drop: cast mold is not supported by partial inference
44−++ bind: unit construction needs the standard prelude in partial inference
45−++ biff: $-([(unit A) $-(A (unit B))] (unit B))
46−++ both: unit construction needs the standard prelude in partial inference
47−++ clap: unit construction needs the standard prelude in partial inference
48−++ clef: $-([(unit A) [(unit B) $-([A B] (unit C))]] (unit C))
49−++ skim: sample mold is not supported by partial inference
50−++ skip: sample mold is not supported by partial inference
51−++ levy: sample mold is not supported by partial inference
52−++ lien: sample mold is not supported by partial inference
53−++ roll: sample mold is not supported by partial inference
54−++ reel: sample mold is not supported by partial inference
55−++ flit: unit construction needs the standard prelude in partial inference
56−++ murn: sample mold is not supported by partial inference
57−++ join: sample mold is not supported by partial inference
58−++ snip: sample mold is not supported by partial inference
59−++ rear: sample mold is not supported by partial inference
60−++ cork: $-([$-(A B) $-(B C)] $-(A C))
61−++ corl: $-([$-(A B) $-(C A)] $-(C B))
62−++ cury: $-([$-([A B] C) A] $-(B C))
63−++ curr: $-([$-([A B] C) B] $-(A C))
64−+$ cmd: cases proven disjoint; mold not checked
65−++ gth: field access is not supported by partial inference
tests/golden/types-capital-distinct/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Decisions, Type variables: "Capitals, generalized per `++`"; "a different type takes a different capital".
2−tests: Different explicitly written capitals cannot be forced equal via a call or cast; their source sites are reported. Repeated spelling, independent capitals and concrete-forcing controls retain their intended behavior.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/types-capital-distinct/source.jibbdeleted−6
@@ -1,6 +0,0 @@
1−++ repeat |= p=[A A] p
2−++ same |= p=[A A] p
3−++ independent |= p=[A B] p
4−++ bad-call |= p=[A B] (repeat p)
5−++ bad-cast |= p=[A B] ^- [A A] p
6−++ concrete |= x=A ^- @t x
tests/golden/types-capital-distinct/tokens.txtdeleted−73
@@ -1,73 +0,0 @@
1−1:1 glyph ++
2−1:4 name repeat
3−1:11 glyph |=
4−1:14 name p
5−1:15 tight glyph =
6−1:16 tight glyph [
7−1:17 tight tvar A
8−1:19 tvar A
9−1:20 tight glyph ]
10−1:22 name p
11−2:1 NEWLINE
12−2:1 glyph ++
13−2:4 name same
14−2:9 glyph |=
15−2:12 name p
16−2:13 tight glyph =
17−2:14 tight glyph [
18−2:15 tight tvar A
19−2:17 tvar A
20−2:18 tight glyph ]
21−2:20 name p
22−3:1 NEWLINE
23−3:1 glyph ++
24−3:4 name independent
25−3:16 glyph |=
26−3:19 name p
27−3:20 tight glyph =
28−3:21 tight glyph [
29−3:22 tight tvar A
30−3:24 tvar B
31−3:25 tight glyph ]
32−3:27 name p
33−4:1 NEWLINE
34−4:1 glyph ++
35−4:4 name bad-call
36−4:13 glyph |=
37−4:16 name p
38−4:17 tight glyph =
39−4:18 tight glyph [
40−4:19 tight tvar A
41−4:21 tvar B
42−4:22 tight glyph ]
43−4:24 glyph (
44−4:25 tight name repeat
45−4:32 name p
46−4:33 tight glyph )
47−5:1 NEWLINE
48−5:1 glyph ++
49−5:4 name bad-cast
50−5:13 glyph |=
51−5:16 name p
52−5:17 tight glyph =
53−5:18 tight glyph [
54−5:19 tight tvar A
55−5:21 tvar B
56−5:22 tight glyph ]
57−5:24 glyph ^-
58−5:27 glyph [
59−5:28 tight tvar A
60−5:30 tvar A
61−5:31 tight glyph ]
62−5:33 name p
63−6:1 NEWLINE
64−6:1 glyph ++
65−6:4 name concrete
66−6:13 glyph |=
67−6:16 name x
68−6:17 tight glyph =
69−6:18 tight tvar A
70−6:20 glyph ^-
71−6:23 aura @t
72−6:26 name x
73−6:27 NEWLINE
tests/golden/types-capital-distinct/tree.txtdeleted−33
@@ -1,33 +0,0 @@
1−(module
2− (value 1:1 repeat
3− (gate 1:11
4− (face 1:14 p
5− (cell 1:16 (tvar 1:17 A) (tvar 1:19 A)))
6− (wing 1:22 p)))
7− (value 2:1 same
8− (gate 2:9
9− (face 2:12 p
10− (cell 2:14 (tvar 2:15 A) (tvar 2:17 A)))
11− (wing 2:20 p)))
12− (value 3:1 independent
13− (gate 3:16
14− (face 3:19 p
15− (cell 3:21 (tvar 3:22 A) (tvar 3:24 B)))
16− (wing 3:27 p)))
17− (value 4:1 bad-call
18− (gate 4:13
19− (face 4:16 p
20− (cell 4:18 (tvar 4:19 A) (tvar 4:21 B)))
21− (group 4:24
22− (call 4:25 (wing 4:25 repeat) (wing 4:32 p)))))
23− (value 5:1 bad-cast
24− (gate 5:13
25− (face 5:16 p
26− (cell 5:18 (tvar 5:19 A) (tvar 5:21 B)))
27− (cast 5:24
28− (cell 5:27 (tvar 5:28 A) (tvar 5:30 A))
29− (wing 5:33 p))))
30− (value 6:1 concrete
31− (gate 6:13
32− (face 6:16 x (tvar 6:18 A))
33− (cast 6:20 (aura 6:23 @t) (wing 6:26 x)))))
tests/golden/types-capital-distinct/types.txtdeleted−19
@@ -1,19 +0,0 @@
1−partial inference; module not checked
2−++ repeat: $-([A A] [A A])
3−++ same: $-([A A] [A A])
4−++ independent: $-([A B] [A B])
5−++ bad-call: distinct type variables `A` and `B` must not be forced equal; use the same capital for a shared type
6−/tests/golden/types-capital-distinct/source.jibb:4:19: first type variable
7−++ bad-call |= p=[A B] (repeat p)
8− ^
9−/tests/golden/types-capital-distinct/source.jibb:4:21: second type variable
10−++ bad-call |= p=[A B] (repeat p)
11− ^
12−++ bad-cast: distinct type variables `A` and `B` must not be forced equal; use the same capital for a shared type
13−/tests/golden/types-capital-distinct/source.jibb:5:19: first type variable
14−++ bad-cast |= p=[A B] ^- [A A] p
15− ^
16−/tests/golden/types-capital-distinct/source.jibb:5:21: second type variable
17−++ bad-cast |= p=[A B] ^- [A A] p
18− ^
19−++ concrete: explicit capital constraints are not supported by partial inference
tests/golden/types-cell-pattern-many/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Patterns: a name binds anew and the last position of a cell pattern binds the rest; Modules: no name may shadow one already in scope.
2−tests: A complete single-arm cell pattern of binders follows the right-nested cell spine, preserving polymorphism and the final tail. Duplicate or shadowed binders and definite non-cell subjects fail; uncertain union/collection spines and other patterns stay unsupported.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/types-cell-pattern-many/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# Use the prepared prelude.
tests/golden/types-cell-pattern-many/source.jibbdeleted−41
@@ -1,41 +0,0 @@
1−++ three |= args=[@t @p ?]
2− ?- args
3− [a b c] c
4−++ four |= args=[@t @p ? @ux]
5− ?- args
6− [a b c d] d
7−++ rest |= args=[@t @p [? @ux]]
8− ?- args
9− [a b c] c
10−++ infer |= x
11− ?- x
12− [a b c] [c b a]
13−++ duplicate |= args=[@t @p ?]
14− ?- args
15− [a b a] a
16−++ shadow |= args=[@t @p ?]
17− ?- args
18− [args b c] b
19−++ prelude-shadow |= args=[@t @p ?]
20− ?- args
21− [a not c] c
22−++ atom |= args=@t
23− ?- args
24− [a b c] a
25−++ too-many |= args=[@t @p]
26− ?- args
27− [a b c] a
28−++ record |= args=[a=@t b=@p c=?]
29− ?- args
30− [a b c] a
31−++ nested |= args=[@t [@p ?] @ux]
32− ?- args
33− [a [b c] d] d
34−++ wildcard |= args=[@t @p ?]
35− ?- args
36− [a * c] c
37−++ pending |= args=[@t @p ?]
38− ?- args
39− [a b c]
40− ~& %unused
41− c
tests/golden/types-cell-pattern-many/tokens.txtdeleted−315
@@ -1,315 +0,0 @@
1−1:1 glyph ++
2−1:4 name three
3−1:10 glyph |=
4−1:13 name args
5−1:17 tight glyph =
6−1:18 tight glyph [
7−1:19 tight aura @t
8−1:22 aura @p
9−1:25 glyph ?
10−1:26 tight glyph ]
11−2:3 INDENT
12−2:3 glyph ?-
13−2:6 name args
14−3:5 INDENT
15−3:5 glyph [
16−3:6 tight name a
17−3:8 name b
18−3:10 name c
19−3:11 tight glyph ]
20−3:13 name c
21−4:1 DEDENT
22−4:1 DEDENT
23−4:1 NEWLINE
24−4:1 glyph ++
25−4:4 name four
26−4:9 glyph |=
27−4:12 name args
28−4:16 tight glyph =
29−4:17 tight glyph [
30−4:18 tight aura @t
31−4:21 aura @p
32−4:24 glyph ?
33−4:26 aura @ux
34−4:29 tight glyph ]
35−5:3 INDENT
36−5:3 glyph ?-
37−5:6 name args
38−6:5 INDENT
39−6:5 glyph [
40−6:6 tight name a
41−6:8 name b
42−6:10 name c
43−6:12 name d
44−6:13 tight glyph ]
45−6:15 name d
46−7:1 DEDENT
47−7:1 DEDENT
48−7:1 NEWLINE
49−7:1 glyph ++
50−7:4 name rest
51−7:9 glyph |=
52−7:12 name args
53−7:16 tight glyph =
54−7:17 tight glyph [
55−7:18 tight aura @t
56−7:21 aura @p
57−7:24 glyph [
58−7:25 tight glyph ?
59−7:27 aura @ux
60−7:30 tight glyph ]
61−7:31 tight glyph ]
62−8:3 INDENT
63−8:3 glyph ?-
64−8:6 name args
65−9:5 INDENT
66−9:5 glyph [
67−9:6 tight name a
68−9:8 name b
69−9:10 name c
70−9:11 tight glyph ]
71−9:13 name c
72−10:1 DEDENT
73−10:1 DEDENT
74−10:1 NEWLINE
75−10:1 glyph ++
76−10:4 name infer
77−10:10 glyph |=
78−10:13 name x
79−11:3 INDENT
80−11:3 glyph ?-
81−11:6 name x
82−12:5 INDENT
83−12:5 glyph [
84−12:6 tight name a
85−12:8 name b
86−12:10 name c
87−12:11 tight glyph ]
88−12:13 glyph [
89−12:14 tight name c
90−12:16 name b
91−12:18 name a
92−12:19 tight glyph ]
93−13:1 DEDENT
94−13:1 DEDENT
95−13:1 NEWLINE
96−13:1 glyph ++
97−13:4 name duplicate
98−13:14 glyph |=
99−13:17 name args
100−13:21 tight glyph =
101−13:22 tight glyph [
102−13:23 tight aura @t
103−13:26 aura @p
104−13:29 glyph ?
105−13:30 tight glyph ]
106−14:3 INDENT
107−14:3 glyph ?-
108−14:6 name args
109−15:5 INDENT
110−15:5 glyph [
111−15:6 tight name a
112−15:8 name b
113−15:10 name a
114−15:11 tight glyph ]
115−15:13 name a
116−16:1 DEDENT
117−16:1 DEDENT
118−16:1 NEWLINE
119−16:1 glyph ++
120−16:4 name shadow
121−16:11 glyph |=
122−16:14 name args
123−16:18 tight glyph =
124−16:19 tight glyph [
125−16:20 tight aura @t
126−16:23 aura @p
127−16:26 glyph ?
128−16:27 tight glyph ]
129−17:3 INDENT
130−17:3 glyph ?-
131−17:6 name args
132−18:5 INDENT
133−18:5 glyph [
134−18:6 tight name args
135−18:11 name b
136−18:13 name c
137−18:14 tight glyph ]
138−18:16 name b
139−19:1 DEDENT
140−19:1 DEDENT
141−19:1 NEWLINE
142−19:1 glyph ++
143−19:4 name prelude-shadow
144−19:19 glyph |=
145−19:22 name args
146−19:26 tight glyph =
147−19:27 tight glyph [
148−19:28 tight aura @t
149−19:31 aura @p
150−19:34 glyph ?
151−19:35 tight glyph ]
152−20:3 INDENT
153−20:3 glyph ?-
154−20:6 name args
155−21:5 INDENT
156−21:5 glyph [
157−21:6 tight name a
158−21:8 name not
159−21:12 name c
160−21:13 tight glyph ]
161−21:15 name c
162−22:1 DEDENT
163−22:1 DEDENT
164−22:1 NEWLINE
165−22:1 glyph ++
166−22:4 name atom
167−22:9 glyph |=
168−22:12 name args
169−22:16 tight glyph =
170−22:17 tight aura @t
171−23:3 INDENT
172−23:3 glyph ?-
173−23:6 name args
174−24:5 INDENT
175−24:5 glyph [
176−24:6 tight name a
177−24:8 name b
178−24:10 name c
179−24:11 tight glyph ]
180−24:13 name a
181−25:1 DEDENT
182−25:1 DEDENT
183−25:1 NEWLINE
184−25:1 glyph ++
185−25:4 name too-many
186−25:13 glyph |=
187−25:16 name args
188−25:20 tight glyph =
189−25:21 tight glyph [
190−25:22 tight aura @t
191−25:25 aura @p
192−25:27 tight glyph ]
193−26:3 INDENT
194−26:3 glyph ?-
195−26:6 name args
196−27:5 INDENT
197−27:5 glyph [
198−27:6 tight name a
199−27:8 name b
200−27:10 name c
201−27:11 tight glyph ]
202−27:13 name a
203−28:1 DEDENT
204−28:1 DEDENT
205−28:1 NEWLINE
206−28:1 glyph ++
207−28:4 name record
208−28:11 glyph |=
209−28:14 name args
210−28:18 tight glyph =
211−28:19 tight glyph [
212−28:20 tight name a
213−28:21 tight glyph =
214−28:22 tight aura @t
215−28:25 name b
216−28:26 tight glyph =
217−28:27 tight aura @p
218−28:30 name c
219−28:31 tight glyph =
220−28:32 tight glyph ?
221−28:33 tight glyph ]
222−29:3 INDENT
223−29:3 glyph ?-
224−29:6 name args
225−30:5 INDENT
226−30:5 glyph [
227−30:6 tight name a
228−30:8 name b
229−30:10 name c
230−30:11 tight glyph ]
231−30:13 name a
232−31:1 DEDENT
233−31:1 DEDENT
234−31:1 NEWLINE
235−31:1 glyph ++
236−31:4 name nested
237−31:11 glyph |=
238−31:14 name args
239−31:18 tight glyph =
240−31:19 tight glyph [
241−31:20 tight aura @t
242−31:23 glyph [
243−31:24 tight aura @p
244−31:27 glyph ?
245−31:28 tight glyph ]
246−31:30 aura @ux
247−31:33 tight glyph ]
248−32:3 INDENT
249−32:3 glyph ?-
250−32:6 name args
251−33:5 INDENT
252−33:5 glyph [
253−33:6 tight name a
254−33:8 glyph [
255−33:9 tight name b
256−33:11 name c
257−33:12 tight glyph ]
258−33:14 name d
259−33:15 tight glyph ]
260−33:17 name d
261−34:1 DEDENT
262−34:1 DEDENT
263−34:1 NEWLINE
264−34:1 glyph ++
265−34:4 name wildcard
266−34:13 glyph |=
267−34:16 name args
268−34:20 tight glyph =
269−34:21 tight glyph [
270−34:22 tight aura @t
271−34:25 aura @p
272−34:28 glyph ?
273−34:29 tight glyph ]
274−35:3 INDENT
275−35:3 glyph ?-
276−35:6 name args
277−36:5 INDENT
278−36:5 glyph [
279−36:6 tight name a
280−36:8 glyph *
281−36:10 name c
282−36:11 tight glyph ]
283−36:13 name c
284−37:1 DEDENT
285−37:1 DEDENT
286−37:1 NEWLINE
287−37:1 glyph ++
288−37:4 name pending
289−37:12 glyph |=
290−37:15 name args
291−37:19 tight glyph =
292−37:20 tight glyph [
293−37:21 tight aura @t
294−37:24 aura @p
295−37:27 glyph ?
296−37:28 tight glyph ]
297−38:3 INDENT
298−38:3 glyph ?-
299−38:6 name args
300−39:5 INDENT
301−39:5 glyph [
302−39:6 tight name a
303−39:8 name b
304−39:10 name c
305−39:11 tight glyph ]
306−40:7 INDENT
307−40:7 glyph ~&
308−40:10 lit %unused
309−41:9 INDENT
310−41:9 name c
311−41:10 DEDENT
312−41:10 DEDENT
313−41:10 DEDENT
314−41:10 DEDENT
315−41:10 NEWLINE
tests/golden/types-cell-pattern-many/tree.txtdeleted−144
@@ -1,144 +0,0 @@
1−(module
2− (value 1:1 three
3− (gate 1:10
4− (face 1:13 args
5− (cell 1:18 (aura 1:19 @t) (aura 1:22 @p) (flag 1:25)))
6− (body 2:3
7− (branch 2:3
8− (wing 2:6 args)
9− (arm 3:5
10− (cell 3:5 (bind 3:6 a) (bind 3:8 b) (bind 3:10 c))
11− (wing 3:13 c))))))
12− (value 4:1 four
13− (gate 4:9
14− (face 4:12 args
15− (cell 4:17 (aura 4:18 @t) (aura 4:21 @p) (flag 4:24) (aura 4:26 @ux)))
16− (body 5:3
17− (branch 5:3
18− (wing 5:6 args)
19− (arm 6:5
20− (cell 6:5 (bind 6:6 a) (bind 6:8 b) (bind 6:10 c) (bind 6:12 d))
21− (wing 6:15 d))))))
22− (value 7:1 rest
23− (gate 7:9
24− (face 7:12 args
25− (cell 7:17
26− (aura 7:18 @t)
27− (aura 7:21 @p)
28− (cell 7:24 (flag 7:25) (aura 7:27 @ux))))
29− (body 8:3
30− (branch 8:3
31− (wing 8:6 args)
32− (arm 9:5
33− (cell 9:5 (bind 9:6 a) (bind 9:8 b) (bind 9:10 c))
34− (wing 9:13 c))))))
35− (value 10:1 infer
36− (gate 10:10
37− (bind 10:13 x)
38− (body 11:3
39− (branch 11:3
40− (wing 11:6 x)
41− (arm 12:5
42− (cell 12:5 (bind 12:6 a) (bind 12:8 b) (bind 12:10 c))
43− (tuple 12:13 (wing 12:14 c) (wing 12:16 b) (wing 12:18 a)))))))
44− (value 13:1 duplicate
45− (gate 13:14
46− (face 13:17 args
47− (cell 13:22 (aura 13:23 @t) (aura 13:26 @p) (flag 13:29)))
48− (body 14:3
49− (branch 14:3
50− (wing 14:6 args)
51− (arm 15:5
52− (cell 15:5 (bind 15:6 a) (bind 15:8 b) (bind 15:10 a))
53− (wing 15:13 a))))))
54− (value 16:1 shadow
55− (gate 16:11
56− (face 16:14 args
57− (cell 16:19 (aura 16:20 @t) (aura 16:23 @p) (flag 16:26)))
58− (body 17:3
59− (branch 17:3
60− (wing 17:6 args)
61− (arm 18:5
62− (cell 18:5 (bind 18:6 args) (bind 18:11 b) (bind 18:13 c))
63− (wing 18:16 b))))))
64− (value 19:1 prelude-shadow
65− (gate 19:19
66− (face 19:22 args
67− (cell 19:27 (aura 19:28 @t) (aura 19:31 @p) (flag 19:34)))
68− (body 20:3
69− (branch 20:3
70− (wing 20:6 args)
71− (arm 21:5
72− (cell 21:5 (bind 21:6 a) (bind 21:8 not) (bind 21:12 c))
73− (wing 21:15 c))))))
74− (value 22:1 atom
75− (gate 22:9
76− (face 22:12 args (aura 22:17 @t))
77− (body 23:3
78− (branch 23:3
79− (wing 23:6 args)
80− (arm 24:5
81− (cell 24:5 (bind 24:6 a) (bind 24:8 b) (bind 24:10 c))
82− (wing 24:13 a))))))
83− (value 25:1 too-many
84− (gate 25:13
85− (face 25:16 args
86− (cell 25:21 (aura 25:22 @t) (aura 25:25 @p)))
87− (body 26:3
88− (branch 26:3
89− (wing 26:6 args)
90− (arm 27:5
91− (cell 27:5 (bind 27:6 a) (bind 27:8 b) (bind 27:10 c))
92− (wing 27:13 a))))))
93− (value 28:1 record
94− (gate 28:11
95− (face 28:14 args
96− (cell 28:19
97− (face 28:20 a (aura 28:22 @t))
98− (face 28:25 b (aura 28:27 @p))
99− (face 28:30 c (flag 28:32))))
100− (body 29:3
101− (branch 29:3
102− (wing 29:6 args)
103− (arm 30:5
104− (cell 30:5 (bind 30:6 a) (bind 30:8 b) (bind 30:10 c))
105− (wing 30:13 a))))))
106− (value 31:1 nested
107− (gate 31:11
108− (face 31:14 args
109− (cell 31:19
110− (aura 31:20 @t)
111− (cell 31:23 (aura 31:24 @p) (flag 31:27))
112− (aura 31:30 @ux)))
113− (body 32:3
114− (branch 32:3
115− (wing 32:6 args)
116− (arm 33:5
117− (cell 33:5
118− (bind 33:6 a)
119− (cell 33:8 (bind 33:9 b) (bind 33:11 c))
120− (bind 33:14 d))
121− (wing 33:17 d))))))
122− (value 34:1 wildcard
123− (gate 34:13
124− (face 34:16 args
125− (cell 34:21 (aura 34:22 @t) (aura 34:25 @p) (flag 34:28)))
126− (body 35:3
127− (branch 35:3
128− (wing 35:6 args)
129− (arm 36:5
130− (cell 36:5 (bind 36:6 a) (any 36:8) (bind 36:10 c))
131− (wing 36:13 c))))))
132− (value 37:1 pending
133− (gate 37:12
134− (face 37:15 args
135− (cell 37:20 (aura 37:21 @t) (aura 37:24 @p) (flag 37:27)))
136− (body 38:3
137− (branch 38:3
138− (wing 38:6 args)
139− (arm 39:5
140− (cell 39:5 (bind 39:6 a) (bind 39:8 b) (bind 39:10 c))
141− (body 40:7
142− (trace 40:7
143− (lit 40:10 %unused)
144− (body 41:9 (wing 41:9 c))))))))))
tests/golden/types-cell-pattern-many/types.txtdeleted−14
@@ -1,14 +0,0 @@
1−partial inference; module not checked
2−++ three: $-([@t [@p ?]] ?)
3−++ four: $-([@t [@p [? @ux]]] @ux)
4−++ rest: $-([@t [@p [? @ux]]] [? @ux])
5−++ infer: $-([A [B C]] [C [B A]])
6−++ duplicate: pattern shadows a name
7−++ shadow: pattern shadows a name
8−++ prelude-shadow: pattern shadows a name
9−++ atom: cell pattern does not match the subject type
10−++ too-many: cell pattern does not match the subject type
11−++ record: record patterns are not supported by partial inference
12−++ nested: $-([@t [[@p ?] @ux]] @ux)
13−++ wildcard: $-([@t [@p ?]] ?)
14−++ pending: tag needs context in partial inference
tests/golden/types-cell-pattern-schemes/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Patterns: a name binds anew and the last position of a cell pattern binds the rest; Modules: no name may shadow one already in scope.
2−tests: A complete single-arm cell pattern of binders follows the right-nested cell spine, preserving polymorphism and the final tail. Duplicate or shadowed binders and definite non-cell subjects fail; uncertain union/collection spines and other patterns stay unsupported.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/types-cell-pattern-schemes/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# Use the prepared prelude.
tests/golden/types-cell-pattern-schemes/source.jibbdeleted−23
@@ -1,23 +0,0 @@
1−+$ union
2− [%go @t @p]
3− %stop
4−++ maybe-union |= x=union
5− ?- x
6− [a b c] a
7−++ maybe-list |= x=(list @t)
8− ?- x
9− [a b c] a
10−++ identity |= x
11− ?- x
12− [a b c] [a b c]
13−++ text (identity "hi" ~zod %.y)
14−++ ship (identity ~zod "hi" %.n)
15−++ shared |= x=[A A A]
16− ?- x
17− [a b c] [a b c]
18−++ wrong (shared "hi" ~zod "ok")
19−++ local-shadow |= outer=@t
20− ++ local |= x=[@t @p ?]
21− ?- x
22− [a outer c] c
23− (local ["x" ~zod %.n])
tests/golden/types-cell-pattern-schemes/tokens.txtdeleted−168
@@ -1,168 +0,0 @@
1−1:1 glyph +$
2−1:4 name union
3−2:3 INDENT
4−2:3 glyph [
5−2:4 tight lit %go
6−2:8 aura @t
7−2:11 aura @p
8−2:13 tight glyph ]
9−3:3 NEWLINE
10−3:3 lit %stop
11−4:1 DEDENT
12−4:1 NEWLINE
13−4:1 glyph ++
14−4:4 name maybe-union
15−4:16 glyph |=
16−4:19 name x
17−4:20 tight glyph =
18−4:21 tight name union
19−5:3 INDENT
20−5:3 glyph ?-
21−5:6 name x
22−6:5 INDENT
23−6:5 glyph [
24−6:6 tight name a
25−6:8 name b
26−6:10 name c
27−6:11 tight glyph ]
28−6:13 name a
29−7:1 DEDENT
30−7:1 DEDENT
31−7:1 NEWLINE
32−7:1 glyph ++
33−7:4 name maybe-list
34−7:15 glyph |=
35−7:18 name x
36−7:19 tight glyph =
37−7:20 tight glyph (
38−7:21 tight name list
39−7:26 aura @t
40−7:28 tight glyph )
41−8:3 INDENT
42−8:3 glyph ?-
43−8:6 name x
44−9:5 INDENT
45−9:5 glyph [
46−9:6 tight name a
47−9:8 name b
48−9:10 name c
49−9:11 tight glyph ]
50−9:13 name a
51−10:1 DEDENT
52−10:1 DEDENT
53−10:1 NEWLINE
54−10:1 glyph ++
55−10:4 name identity
56−10:13 glyph |=
57−10:16 name x
58−11:3 INDENT
59−11:3 glyph ?-
60−11:6 name x
61−12:5 INDENT
62−12:5 glyph [
63−12:6 tight name a
64−12:8 name b
65−12:10 name c
66−12:11 tight glyph ]
67−12:13 glyph [
68−12:14 tight name a
69−12:16 name b
70−12:18 name c
71−12:19 tight glyph ]
72−13:1 DEDENT
73−13:1 DEDENT
74−13:1 NEWLINE
75−13:1 glyph ++
76−13:4 name text
77−13:9 glyph (
78−13:10 tight name identity
79−13:19 str "hi"
80−13:24 lit ~zod
81−13:29 lit %.y
82−13:32 tight glyph )
83−14:1 NEWLINE
84−14:1 glyph ++
85−14:4 name ship
86−14:9 glyph (
87−14:10 tight name identity
88−14:19 lit ~zod
89−14:24 str "hi"
90−14:29 lit %.n
91−14:32 tight glyph )
92−15:1 NEWLINE
93−15:1 glyph ++
94−15:4 name shared
95−15:11 glyph |=
96−15:14 name x
97−15:15 tight glyph =
98−15:16 tight glyph [
99−15:17 tight tvar A
100−15:19 tvar A
101−15:21 tvar A
102−15:22 tight glyph ]
103−16:3 INDENT
104−16:3 glyph ?-
105−16:6 name x
106−17:5 INDENT
107−17:5 glyph [
108−17:6 tight name a
109−17:8 name b
110−17:10 name c
111−17:11 tight glyph ]
112−17:13 glyph [
113−17:14 tight name a
114−17:16 name b
115−17:18 name c
116−17:19 tight glyph ]
117−18:1 DEDENT
118−18:1 DEDENT
119−18:1 NEWLINE
120−18:1 glyph ++
121−18:4 name wrong
122−18:10 glyph (
123−18:11 tight name shared
124−18:18 str "hi"
125−18:23 lit ~zod
126−18:28 str "ok"
127−18:32 tight glyph )
128−19:1 NEWLINE
129−19:1 glyph ++
130−19:4 name local-shadow
131−19:17 glyph |=
132−19:20 name outer
133−19:25 tight glyph =
134−19:26 tight aura @t
135−20:3 INDENT
136−20:3 glyph ++
137−20:6 name local
138−20:12 glyph |=
139−20:15 name x
140−20:16 tight glyph =
141−20:17 tight glyph [
142−20:18 tight aura @t
143−20:21 aura @p
144−20:24 glyph ?
145−20:25 tight glyph ]
146−21:5 INDENT
147−21:5 glyph ?-
148−21:8 name x
149−22:7 INDENT
150−22:7 glyph [
151−22:8 tight name a
152−22:10 name outer
153−22:16 name c
154−22:17 tight glyph ]
155−22:19 name c
156−23:3 DEDENT
157−23:3 DEDENT
158−23:3 NEWLINE
159−23:3 glyph (
160−23:4 tight name local
161−23:10 glyph [
162−23:11 tight str "x"
163−23:15 lit ~zod
164−23:20 lit %.n
165−23:23 tight glyph ]
166−23:24 tight glyph )
167−23:25 DEDENT
168−23:25 NEWLINE
tests/golden/types-cell-pattern-schemes/tree.txtdeleted−70
@@ -1,70 +0,0 @@
1−(module
2− (mold 1:1 union
3− (union 2:3
4− (cell 2:3 (const 2:4 %go) (aura 2:8 @t) (aura 2:11 @p))
5− (const 3:3 %stop)))
6− (value 4:1 maybe-union
7− (gate 4:16
8− (face 4:19 x (ref 4:21 union))
9− (body 5:3
10− (branch 5:3
11− (wing 5:6 x)
12− (arm 6:5
13− (cell 6:5 (bind 6:6 a) (bind 6:8 b) (bind 6:10 c))
14− (wing 6:13 a))))))
15− (value 7:1 maybe-list
16− (gate 7:15
17− (face 7:18 x
18− (apply 7:20 list (aura 7:26 @t)))
19− (body 8:3
20− (branch 8:3
21− (wing 8:6 x)
22− (arm 9:5
23− (cell 9:5 (bind 9:6 a) (bind 9:8 b) (bind 9:10 c))
24− (wing 9:13 a))))))
25− (value 10:1 identity
26− (gate 10:13
27− (bind 10:16 x)
28− (body 11:3
29− (branch 11:3
30− (wing 11:6 x)
31− (arm 12:5
32− (cell 12:5 (bind 12:6 a) (bind 12:8 b) (bind 12:10 c))
33− (tuple 12:13 (wing 12:14 a) (wing 12:16 b) (wing 12:18 c)))))))
34− (value 13:1 text
35− (group 13:9
36− (call 13:10 (wing 13:10 identity) (str 13:19 "hi") (lit 13:24 ~zod) (lit 13:29 %.y))))
37− (value 14:1 ship
38− (group 14:9
39− (call 14:10 (wing 14:10 identity) (lit 14:19 ~zod) (str 14:24 "hi") (lit 14:29 %.n))))
40− (value 15:1 shared
41− (gate 15:11
42− (face 15:14 x
43− (cell 15:16 (tvar 15:17 A) (tvar 15:19 A) (tvar 15:21 A)))
44− (body 16:3
45− (branch 16:3
46− (wing 16:6 x)
47− (arm 17:5
48− (cell 17:5 (bind 17:6 a) (bind 17:8 b) (bind 17:10 c))
49− (tuple 17:13 (wing 17:14 a) (wing 17:16 b) (wing 17:18 c)))))))
50− (value 18:1 wrong
51− (group 18:10
52− (call 18:11 (wing 18:11 shared) (str 18:18 "hi") (lit 18:23 ~zod) (str 18:28 "ok"))))
53− (value 19:1 local-shadow
54− (gate 19:17
55− (face 19:20 outer (aura 19:26 @t))
56− (body 20:3
57− (value 20:3 local
58− (gate 20:12
59− (face 20:15 x
60− (cell 20:17 (aura 20:18 @t) (aura 20:21 @p) (flag 20:24)))
61− (body 21:5
62− (branch 21:5
63− (wing 21:8 x)
64− (arm 22:7
65− (cell 22:7 (bind 22:8 a) (bind 22:10 outer) (bind 22:16 c))
66− (wing 22:19 c))))))
67− (group 23:3
68− (call 23:4
69− (wing 23:4 local)
70− (tuple 23:10 (str 23:11 "x") (lit 23:15 ~zod) (lit 23:20 %.n))))))))
tests/golden/types-cell-pattern-schemes/types.txtdeleted−16
@@ -1,16 +0,0 @@
1−partial inference; module not checked
2−+$ union: cases proven disjoint; mold not checked
3−++ maybe-union: cell pattern subject is not supported by partial inference
4−++ maybe-list: cell pattern subject is not supported by partial inference
5−++ identity: $-([A [B C]] [A [B C]])
6−++ text: [@t [@p ?]]
7−++ ship: [@p [@t ?]]
8−++ shared: $-([A [A A]] [A [A A]])
9−++ wrong: call's sample and argument types do not unify
10−/tests/golden/types-cell-pattern-schemes/source.jibb:18:11: called gate has type $-([A [A A]] [A [A A]])
11−++ wrong (shared "hi" ~zod "ok")
12− ^
13−/tests/golden/types-cell-pattern-schemes/source.jibb:18:23: argument has type @p
14−++ wrong (shared "hi" ~zod "ok")
15− ^
16−++ local-shadow: local definitions need unsupported inference
tests/golden/types-cell-pattern-tail/about.txtdeleted−4
@@ -1,4 +0,0 @@
1−source: Grammar, Patterns: a name binds anew and the last position of a cell pattern binds the rest; Modules: no name may shadow one already in scope.
2−tests: A complete single-arm cell pattern of binders follows the right-nested cell spine, preserving polymorphism and the final tail. Duplicate or shadowed binders and definite non-cell subjects fail; uncertain union/collection spines and other patterns stay unsupported.
3−expect: parses
4−expect-types: a partial inference report
tests/golden/types-cell-pattern-tail/modules.txtdeleted−1
@@ -1 +0,0 @@
1−# Use the prepared prelude.
tests/golden/types-cell-pattern-tail/source.jibbdeleted−18
@@ -1,18 +0,0 @@
1−++ pair |= x=[@t (list @p)]
2− ?- x
3− [first rest] rest
4−++ split |= x=[@t (list @p)]
5− ?- x
6− [first second third] third
7−+$ either
8− [%go @p @t]
9− %stop
10−++ pair-union |= x=[@t either]
11− ?- x
12− [first rest] rest
13−++ split-union |= x=[@t either]
14− ?- x
15− [first second third] third
16−++ malformed |= x=[@t @p]
17− ?- x
18− [first second third] third
tests/golden/types-cell-pattern-tail/tokens.txtdeleted−126

This diff is too big to show here.

tests/golden/types-cell-pattern-tail/tree.txtdeleted−59

This diff is too big to show here.

tests/golden/types-cell-pattern-tail/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-deferred-call-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-deferred-call-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-deferred-call-context/source.jibbdeleted−56

This diff is too big to show here.

tests/golden/types-deferred-call-context/tokens.txtdeleted−557

This diff is too big to show here.

tests/golden/types-deferred-call-context/tree.txtdeleted−272

This diff is too big to show here.

tests/golden/types-deferred-call-context/types.txtdeleted−82

This diff is too big to show here.

tests/golden/types-flag-branch-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-flag-branch-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-flag-branch-context/source.jibbdeleted−83

This diff is too big to show here.

tests/golden/types-flag-branch-context/tokens.txtdeleted−496

This diff is too big to show here.

tests/golden/types-flag-branch-context/tree.txtdeleted−244

This diff is too big to show here.

tests/golden/types-flag-branch-context/types.txtdeleted−33

This diff is too big to show here.

tests/golden/types-generic-arity/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-arity/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-generic-arity/tokens.txtdeleted−64

This diff is too big to show here.

tests/golden/types-generic-arity/tree.txtdeleted−23

This diff is too big to show here.

tests/golden/types-generic-arity/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-generic-face-inference/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-face-inference/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-generic-face-inference/tokens.txtdeleted−134

This diff is too big to show here.

tests/golden/types-generic-face-inference/tree.txtdeleted−56

This diff is too big to show here.

tests/golden/types-generic-face-inference/types.txtdeleted−13

This diff is too big to show here.

tests/golden/types-generic-gates/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-gates/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-generic-gates/tokens.txtdeleted−59

This diff is too big to show here.

tests/golden/types-generic-gates/tree.txtdeleted−21

This diff is too big to show here.

tests/golden/types-generic-gates/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-generic-import-reverse/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-import-reverse/module-trees.txtdeleted−7

This diff is too big to show here.

tests/golden/types-generic-import-reverse/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-generic-import-reverse/modules/ui/lib.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-generic-import-reverse/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-import-reverse/tokens.txtdeleted−50

This diff is too big to show here.

tests/golden/types-generic-import-reverse/tree.txtdeleted−18

This diff is too big to show here.

tests/golden/types-generic-import-reverse/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-generic-lexical-alias/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-lexical-alias/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-lexical-alias/tokens.txtdeleted−35

This diff is too big to show here.

tests/golden/types-generic-lexical-alias/tree.txtdeleted−13

This diff is too big to show here.

tests/golden/types-generic-lexical-alias/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-local-parameter/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-local-parameter/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-local-parameter/tokens.txtdeleted−37

This diff is too big to show here.

tests/golden/types-generic-local-parameter/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-generic-local-parameter/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-generic-local-scope/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-local-scope/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-local-scope/tokens.txtdeleted−37

This diff is too big to show here.

tests/golden/types-generic-local-scope/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-generic-local-scope/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-generic-module/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-module/module-trees.txtdeleted−7

This diff is too big to show here.

tests/golden/types-generic-module/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-generic-module/modules/ui/lib.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-generic-module/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-module/tokens.txtdeleted−39

This diff is too big to show here.

tests/golden/types-generic-module/tree.txtdeleted−14

This diff is too big to show here.

tests/golden/types-generic-module/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-generic-nested-scope/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-nested-scope/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-nested-scope/tokens.txtdeleted−56

This diff is too big to show here.

tests/golden/types-generic-nested-scope/tree.txtdeleted−21

This diff is too big to show here.

tests/golden/types-generic-nested-scope/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-parameters/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-parameters/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-generic-parameters/tokens.txtdeleted−64

This diff is too big to show here.

tests/golden/types-generic-parameters/tree.txtdeleted−23

This diff is too big to show here.

tests/golden/types-generic-parameters/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-generic-record/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-record/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-record/tokens.txtdeleted−47

This diff is too big to show here.

tests/golden/types-generic-record/tree.txtdeleted−18

This diff is too big to show here.

tests/golden/types-generic-record/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-recursive-union/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-recursive-union/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-generic-recursive-union/tokens.txtdeleted−58

This diff is too big to show here.

tests/golden/types-generic-recursive-union/tree.txtdeleted−24

This diff is too big to show here.

tests/golden/types-generic-recursive-union/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-generic-repeated/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-repeated/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-repeated/tokens.txtdeleted−47

This diff is too big to show here.

tests/golden/types-generic-repeated/tree.txtdeleted−18

This diff is too big to show here.

tests/golden/types-generic-repeated/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/module-trees.txtdeleted−11

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/modules/ui/base.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/tokens.txtdeleted−75

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/tree.txtdeleted−24

This diff is too big to show here.

tests/golden/types-generic-union-alias-face/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-generic-union-alias/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-alias/source.jibbdeleted−23

This diff is too big to show here.

tests/golden/types-generic-union-alias/tokens.txtdeleted−248

This diff is too big to show here.

tests/golden/types-generic-union-alias/tree.txtdeleted−86

This diff is too big to show here.

tests/golden/types-generic-union-alias/types.txtdeleted−22

This diff is too big to show here.

tests/golden/types-generic-union-capitals/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-capitals/source.jibbdeleted−17

This diff is too big to show here.

tests/golden/types-generic-union-capitals/tokens.txtdeleted−162

This diff is too big to show here.

tests/golden/types-generic-union-capitals/tree.txtdeleted−68

This diff is too big to show here.

tests/golden/types-generic-union-capitals/types.txtdeleted−34

This diff is too big to show here.

tests/golden/types-generic-union-errors/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-errors/source.jibbdeleted−11

This diff is too big to show here.

tests/golden/types-generic-union-errors/tokens.txtdeleted−93

This diff is too big to show here.

tests/golden/types-generic-union-errors/tree.txtdeleted−36

This diff is too big to show here.

tests/golden/types-generic-union-errors/types.txtdeleted−26

This diff is too big to show here.

tests/golden/types-generic-union-escaping/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-escaping/module-trees.txtdeleted−16

This diff is too big to show here.

tests/golden/types-generic-union-escaping/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-generic-union-escaping/modules/ui/base.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-union-escaping/modules/ui/mid.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-union-escaping/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-union-escaping/tokens.txtdeleted−15

This diff is too big to show here.

tests/golden/types-generic-union-escaping/tree.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-escaping/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-generic-union-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-import/module-trees.txtdeleted−32

This diff is too big to show here.

tests/golden/types-generic-union-import/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-generic-union-import/modules/ui/shared.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-import/modules/ui/twin.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-import/source.jibbdeleted−9

This diff is too big to show here.

tests/golden/types-generic-union-import/tokens.txtdeleted−79

This diff is too big to show here.

tests/golden/types-generic-union-import/tree.txtdeleted−27

This diff is too big to show here.

tests/golden/types-generic-union-import/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-generic-union-local/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-local/source.jibbdeleted−34

This diff is too big to show here.

tests/golden/types-generic-union-local/tokens.txtdeleted−297

This diff is too big to show here.

tests/golden/types-generic-union-local/tree.txtdeleted−120

This diff is too big to show here.

tests/golden/types-generic-union-local/types.txtdeleted−22

This diff is too big to show here.

tests/golden/types-generic-union-transitive/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-transitive/module-trees.txtdeleted−27

This diff is too big to show here.

tests/golden/types-generic-union-transitive/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-generic-union-transitive/modules/ui/base.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-generic-union-transitive/modules/ui/mid.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-generic-union-transitive/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-generic-union-transitive/tokens.txtdeleted−43

This diff is too big to show here.

tests/golden/types-generic-union-transitive/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-generic-union-transitive/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-hole-concrete/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-concrete/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-hole-concrete/tokens.txtdeleted−54

This diff is too big to show here.

tests/golden/types-hole-concrete/tree.txtdeleted−22

This diff is too big to show here.

tests/golden/types-hole-concrete/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-hole-generic-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-generic-mold/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-hole-generic-mold/tokens.txtdeleted−26

This diff is too big to show here.

tests/golden/types-hole-generic-mold/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-hole-generic-mold/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-hole-local-boundary/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-local-boundary/source.jibbdeleted−16

This diff is too big to show here.

tests/golden/types-hole-local-boundary/tokens.txtdeleted−118

This diff is too big to show here.

tests/golden/types-hole-local-boundary/tree.txtdeleted−55

This diff is too big to show here.

tests/golden/types-hole-local-boundary/types.txtdeleted−17

This diff is too big to show here.

tests/golden/types-hole-module-boundary/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-module-boundary/module-trees.txtdeleted−6

This diff is too big to show here.

tests/golden/types-hole-module-boundary/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-hole-module-boundary/modules/ui/lib.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-hole-module-boundary/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-hole-module-boundary/tokens.txtdeleted−14

This diff is too big to show here.

tests/golden/types-hole-module-boundary/tree.txtdeleted−5

This diff is too big to show here.

tests/golden/types-hole-module-boundary/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-hole-named-complex/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-named-complex/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-hole-named-complex/tokens.txtdeleted−20

This diff is too big to show here.

tests/golden/types-hole-named-complex/tree.txtdeleted−9

This diff is too big to show here.

tests/golden/types-hole-named-complex/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-hole-numeric-capture/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-numeric-capture/source.jibbdeleted−19

This diff is too big to show here.

tests/golden/types-hole-numeric-capture/tokens.txtdeleted−127

This diff is too big to show here.

tests/golden/types-hole-numeric-capture/tree.txtdeleted−62

This diff is too big to show here.

tests/golden/types-hole-numeric-capture/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-hole-unbound-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-unbound-mold/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-hole-unbound-mold/tokens.txtdeleted−19

This diff is too big to show here.

tests/golden/types-hole-unbound-mold/tree.txtdeleted−9

This diff is too big to show here.

tests/golden/types-hole-unbound-mold/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-hole-unsupported/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-unsupported/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-hole-unsupported/tokens.txtdeleted−14

This diff is too big to show here.

tests/golden/types-hole-unsupported/tree.txtdeleted−7

This diff is too big to show here.

tests/golden/types-hole-unsupported/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-hole-user-generic/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-user-generic/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-hole-user-generic/tokens.txtdeleted−71

This diff is too big to show here.

tests/golden/types-hole-user-generic/tree.txtdeleted−31

This diff is too big to show here.

tests/golden/types-hole-user-generic/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-hole-user-named/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-user-named/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-hole-user-named/tokens.txtdeleted−22

This diff is too big to show here.

tests/golden/types-hole-user-named/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-hole-user-named/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-hole-user-value/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-hole-user-value/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-hole-user-value/tokens.txtdeleted−21

This diff is too big to show here.

tests/golden/types-hole-user-value/tree.txtdeleted−10

This diff is too big to show here.

tests/golden/types-hole-user-value/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/mar/duplicate.txtdeleted−5

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/marks.txtdeleted−1

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-import-duplicate-mark/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/imports.txtdeleted−3

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/sur/fixture.txtdeleted−6

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/tokens.txtdeleted−35

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/tree.txtdeleted−18

This diff is too big to show here.

tests/golden/types-import-duplicate-sur/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-import-hoon-flags/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-hoon-flags/imports.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-hoon-flags/source.jibbdeleted−14

This diff is too big to show here.

tests/golden/types-import-hoon-flags/sur/flags.txtdeleted−7

This diff is too big to show here.

tests/golden/types-import-hoon-flags/tokens.txtdeleted−91

This diff is too big to show here.

tests/golden/types-import-hoon-flags/tree.txtdeleted−41

This diff is too big to show here.

tests/golden/types-import-hoon-flags/types.txtdeleted−24

This diff is too big to show here.

tests/golden/types-import-hoon-noun/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-hoon-noun/imports.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-hoon-noun/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-import-hoon-noun/sur/fixture.txtdeleted−6

This diff is too big to show here.

tests/golden/types-import-hoon-noun/tokens.txtdeleted−60

This diff is too big to show here.

tests/golden/types-import-hoon-noun/tree.txtdeleted−28

This diff is too big to show here.

tests/golden/types-import-hoon-noun/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-import-mark-record/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-mark-record/mar/choice.txtdeleted−5

This diff is too big to show here.

tests/golden/types-import-mark-record/mar/note.txtdeleted−5

This diff is too big to show here.

tests/golden/types-import-mark-record/marks.txtdeleted−2

This diff is too big to show here.

tests/golden/types-import-mark-record/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-import-mark-record/tokens.txtdeleted−30

This diff is too big to show here.

tests/golden/types-import-mark-record/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-import-mark-record/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-mark/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-mark/imports.txtdeleted−1

This diff is too big to show here.

tests/golden/types-import-mark/mar/label.txtdeleted−5

This diff is too big to show here.

tests/golden/types-import-mark/marks.txtdeleted−1

This diff is too big to show here.

tests/golden/types-import-mark/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-import-mark/sur/fixture.txtdeleted−3

This diff is too big to show here.

tests/golden/types-import-mark/tokens.txtdeleted−22

This diff is too big to show here.

tests/golden/types-import-mark/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-import-mark/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-import-missing-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-missing-mold/imports.txtdeleted−1

This diff is too big to show here.

tests/golden/types-import-missing-mold/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-import-missing-mold/sur/fixture.txtdeleted−3

This diff is too big to show here.

tests/golden/types-import-missing-mold/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-import-missing-mold/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-import-missing-mold/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/imports.txtdeleted−1

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/module-trees.txtdeleted−7

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/sur/fixture.txtdeleted−3

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/tokens.txtdeleted−32

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/tree.txtdeleted−13

This diff is too big to show here.

tests/golden/types-import-sur-record-graph/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-import-sur/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-sur/imports.txtdeleted−2

This diff is too big to show here.

tests/golden/types-import-sur/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-import-sur/sur/fixture.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-sur/tokens.txtdeleted−19

This diff is too big to show here.

tests/golden/types-import-sur/tree.txtdeleted−10

This diff is too big to show here.

tests/golden/types-import-sur/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-import-tlon-notes/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-import-tlon-notes/imports.txtdeleted−7

This diff is too big to show here.

tests/golden/types-import-tlon-notes/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-import-tlon-notes/sur/notes.txtdeleted−433

This diff is too big to show here.

tests/golden/types-import-tlon-notes/tokens.txtdeleted−59

This diff is too big to show here.

tests/golden/types-import-tlon-notes/tree.txtdeleted−30

This diff is too big to show here.

tests/golden/types-import-tlon-notes/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-list-branch/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-branch/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-branch/source.jibbdeleted−81

This diff is too big to show here.

tests/golden/types-list-branch/tokens.txtdeleted−521

This diff is too big to show here.

tests/golden/types-list-branch/tree.txtdeleted−237

This diff is too big to show here.

tests/golden/types-list-branch/types.txtdeleted−41

This diff is too big to show here.

tests/golden/types-list-cons/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-cons/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-cons/source.jibbdeleted−20

This diff is too big to show here.

tests/golden/types-list-cons/tokens.txtdeleted−217

This diff is too big to show here.

tests/golden/types-list-cons/tree.txtdeleted−85

This diff is too big to show here.

tests/golden/types-list-cons/types.txtdeleted−29

This diff is too big to show here.

tests/golden/types-list-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-context/source.jibbdeleted−17

This diff is too big to show here.

tests/golden/types-list-context/tokens.txtdeleted−143

This diff is too big to show here.

tests/golden/types-list-context/tree.txtdeleted−59

This diff is too big to show here.

tests/golden/types-list-context/types.txtdeleted−18

This diff is too big to show here.

tests/golden/types-list-imported/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-imported/imports.txtdeleted−2

This diff is too big to show here.

tests/golden/types-list-imported/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-imported/source.jibbdeleted−14

This diff is too big to show here.

tests/golden/types-list-imported/sur/fixture.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-imported/tokens.txtdeleted−109

This diff is too big to show here.

tests/golden/types-list-imported/tree.txtdeleted−52

This diff is too big to show here.

tests/golden/types-list-imported/types.txtdeleted−22

This diff is too big to show here.

tests/golden/types-list-open-constraints/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-open-constraints/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-open-constraints/source.jibbdeleted−19

This diff is too big to show here.

tests/golden/types-list-open-constraints/tokens.txtdeleted−178

This diff is too big to show here.

tests/golden/types-list-open-constraints/tree.txtdeleted−68

This diff is too big to show here.

tests/golden/types-list-open-constraints/types.txtdeleted−30

This diff is too big to show here.

tests/golden/types-list-open/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-open/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-open/source.jibbdeleted−13

This diff is too big to show here.

tests/golden/types-list-open/tokens.txtdeleted−94

This diff is too big to show here.

tests/golden/types-list-open/tree.txtdeleted−36

This diff is too big to show here.

tests/golden/types-list-open/types.txtdeleted−18

This diff is too big to show here.

tests/golden/types-list-pattern-imported/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-pattern-imported/imports.txtdeleted−2

This diff is too big to show here.

tests/golden/types-list-pattern-imported/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-pattern-imported/source.jibbdeleted−13

This diff is too big to show here.

tests/golden/types-list-pattern-imported/sur/fixture.txtdeleted−5

This diff is too big to show here.

tests/golden/types-list-pattern-imported/tokens.txtdeleted−66

This diff is too big to show here.

tests/golden/types-list-pattern-imported/tree.txtdeleted−32

This diff is too big to show here.

tests/golden/types-list-pattern-imported/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-patterns/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-patterns/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-patterns/source.jibbdeleted−64

This diff is too big to show here.

tests/golden/types-list-patterns/tokens.txtdeleted−359

This diff is too big to show here.

tests/golden/types-list-patterns/tree.txtdeleted−168

This diff is too big to show here.

tests/golden/types-list-patterns/types.txtdeleted−17

This diff is too big to show here.

tests/golden/types-list-zero-fit/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-list-zero-fit/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-list-zero-fit/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-list-zero-fit/tokens.txtdeleted−181

This diff is too big to show here.

tests/golden/types-list-zero-fit/tree.txtdeleted−91

This diff is too big to show here.

tests/golden/types-list-zero-fit/types.txtdeleted−27

This diff is too big to show here.

tests/golden/types-local-capitals/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-local-capitals/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-local-capitals/source.jibbdeleted−73

This diff is too big to show here.

tests/golden/types-local-capitals/tokens.txtdeleted−473

This diff is too big to show here.

tests/golden/types-local-capitals/tree.txtdeleted−229

This diff is too big to show here.

tests/golden/types-local-capitals/types.txtdeleted−28

This diff is too big to show here.

tests/golden/types-local-recursive/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-local-recursive/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-local-recursive/source.jibbdeleted−54

This diff is too big to show here.

tests/golden/types-local-recursive/tokens.txtdeleted−351

This diff is too big to show here.

tests/golden/types-local-recursive/tree.txtdeleted−170

This diff is too big to show here.

tests/golden/types-local-recursive/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-local-scc-adversarial/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-local-scc-adversarial/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-local-scc-adversarial/source.jibbdeleted−54

This diff is too big to show here.

tests/golden/types-local-scc-adversarial/tokens.txtdeleted−404

This diff is too big to show here.

tests/golden/types-local-scc-adversarial/tree.txtdeleted−204

This diff is too big to show here.

tests/golden/types-local-scc-adversarial/types.txtdeleted−17

This diff is too big to show here.

tests/golden/types-local-scc/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-local-scc/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-local-scc/source.jibbdeleted−58

This diff is too big to show here.

tests/golden/types-local-scc/tokens.txtdeleted−434

This diff is too big to show here.

tests/golden/types-local-scc/tree.txtdeleted−214

This diff is too big to show here.

tests/golden/types-local-scc/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-missing-tag-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-missing-tag-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-missing-tag-context/source.jibbdeleted−17

This diff is too big to show here.

tests/golden/types-missing-tag-context/tokens.txtdeleted−98

This diff is too big to show here.

tests/golden/types-missing-tag-context/tree.txtdeleted−45

This diff is too big to show here.

tests/golden/types-missing-tag-context/types.txtdeleted−38

This diff is too big to show here.

tests/golden/types-missing-tag-imported/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-missing-tag-imported/imports.txtdeleted−2

This diff is too big to show here.

tests/golden/types-missing-tag-imported/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-missing-tag-imported/sur/fixture.txtdeleted−21

This diff is too big to show here.

tests/golden/types-missing-tag-imported/tokens.txtdeleted−43

This diff is too big to show here.

tests/golden/types-missing-tag-imported/tree.txtdeleted−18

This diff is too big to show here.

tests/golden/types-missing-tag-imported/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-missing-tag-named/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-missing-tag-named/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-missing-tag-named/source.jibbdeleted−23

This diff is too big to show here.

tests/golden/types-missing-tag-named/tokens.txtdeleted−155

This diff is too big to show here.

tests/golden/types-missing-tag-named/tree.txtdeleted−66

This diff is too big to show here.

tests/golden/types-missing-tag-named/types.txtdeleted−66

This diff is too big to show here.

tests/golden/types-module-field-duplicate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-module-field-duplicate/module-trees.txtdeleted−6

This diff is too big to show here.

tests/golden/types-module-field-duplicate/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-field-duplicate/modules/ui/lib.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-module-field-duplicate/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-duplicate/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-module-field-duplicate/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-module-field-duplicate/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/module-trees.txtdeleted−12

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-module-field-nonrecord/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-path/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-module-field-path/module-trees.txtdeleted−12

This diff is too big to show here.

tests/golden/types-module-field-path/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-field-path/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-path/source.jibbdeleted−9

This diff is too big to show here.

tests/golden/types-module-field-path/tokens.txtdeleted−45

This diff is too big to show here.

tests/golden/types-module-field-path/tree.txtdeleted−14

This diff is too big to show here.

tests/golden/types-module-field-path/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-module-field-shadow/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-module-field-shadow/module-trees.txtdeleted−12

This diff is too big to show here.

tests/golden/types-module-field-shadow/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-field-shadow/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-shadow/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-module-field-shadow/tokens.txtdeleted−15

This diff is too big to show here.

tests/golden/types-module-field-shadow/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-module-field-shadow/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-module-fixtures/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-module-fixtures/module-trees.txtdeleted−13

This diff is too big to show here.

tests/golden/types-module-fixtures/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-module-fixtures/modules/ui/api/blog.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-module-fixtures/modules/ui/components/card.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-module-fixtures/path.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-fixtures/source.jibbdeleted−9

This diff is too big to show here.

tests/golden/types-module-fixtures/tokens.txtdeleted−62

This diff is too big to show here.

tests/golden/types-module-fixtures/tree.txtdeleted−23

This diff is too big to show here.

tests/golden/types-module-fixtures/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-module-mixed/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-module-mixed/imports.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-mixed/mar/label.txtdeleted−5

This diff is too big to show here.

tests/golden/types-module-mixed/marks.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-mixed/module-trees.txtdeleted−6

This diff is too big to show here.

tests/golden/types-module-mixed/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-module-mixed/modules/ui/helper.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-module-mixed/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-module-mixed/sur/fixture.txtdeleted−3

This diff is too big to show here.

tests/golden/types-module-mixed/tokens.txtdeleted−29

This diff is too big to show here.

tests/golden/types-module-mixed/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-module-mixed/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-multi-call/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-multi-call/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-multi-call/source.jibbdeleted−42

This diff is too big to show here.

tests/golden/types-multi-call/tokens.txtdeleted−370

This diff is too big to show here.

tests/golden/types-multi-call/tree.txtdeleted−169

This diff is too big to show here.

tests/golden/types-multi-call/types.txtdeleted−100

This diff is too big to show here.

tests/golden/types-multi-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-multi-import/module-trees.txtdeleted−16

This diff is too big to show here.

tests/golden/types-multi-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-multi-import/modules/ui/lib.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-multi-import/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-multi-import/tokens.txtdeleted−43

This diff is too big to show here.

tests/golden/types-multi-import/tree.txtdeleted−20

This diff is too big to show here.

tests/golden/types-multi-import/types.txtdeleted−17

This diff is too big to show here.

tests/golden/types-nested-missing-tag/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-nested-missing-tag/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-nested-missing-tag/source.jibbdeleted−18

This diff is too big to show here.

tests/golden/types-nested-missing-tag/tokens.txtdeleted−184

This diff is too big to show here.

tests/golden/types-nested-missing-tag/tree.txtdeleted−79

This diff is too big to show here.

tests/golden/types-nested-missing-tag/types.txtdeleted−71

This diff is too big to show here.

tests/golden/types-null-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-null-context/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-null-context/tokens.txtdeleted−57

This diff is too big to show here.

tests/golden/types-null-context/tree.txtdeleted−25

This diff is too big to show here.

tests/golden/types-null-context/types.txtdeleted−13

This diff is too big to show here.

tests/golden/types-null-overlap/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-null-overlap/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-null-overlap/tokens.txtdeleted−8

This diff is too big to show here.

tests/golden/types-null-overlap/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-null-overlap/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-null-unresolved/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-null-unresolved/source.jibbdeleted−18

This diff is too big to show here.

tests/golden/types-null-unresolved/tokens.txtdeleted−79

This diff is too big to show here.

tests/golden/types-null-unresolved/tree.txtdeleted−34

This diff is too big to show here.

tests/golden/types-null-unresolved/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-pair-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-pair-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-pair-context/source.jibbdeleted−32

This diff is too big to show here.

tests/golden/types-pair-context/tokens.txtdeleted−217

This diff is too big to show here.

tests/golden/types-pair-context/tree.txtdeleted−86

This diff is too big to show here.

tests/golden/types-pair-context/types.txtdeleted−43

This diff is too big to show here.

tests/golden/types-partial-atom-alias/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-atom-alias/source.jibbdeleted−10

This diff is too big to show here.

tests/golden/types-partial-atom-alias/tokens.txtdeleted−67

This diff is too big to show here.

tests/golden/types-partial-atom-alias/tree.txtdeleted−31

This diff is too big to show here.

tests/golden/types-partial-atom-alias/types.txtdeleted−21

This diff is too big to show here.

tests/golden/types-partial-atom-constraint/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-atom-constraint/source.jibbdeleted−14

This diff is too big to show here.

tests/golden/types-partial-atom-constraint/tokens.txtdeleted−91

This diff is too big to show here.

tests/golden/types-partial-atom-constraint/tree.txtdeleted−42

This diff is too big to show here.

tests/golden/types-partial-atom-constraint/types.txtdeleted−27

This diff is too big to show here.

tests/golden/types-partial-atom-widening/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-atom-widening/source.jibbdeleted−9

This diff is too big to show here.

tests/golden/types-partial-atom-widening/tokens.txtdeleted−79

This diff is too big to show here.

tests/golden/types-partial-atom-widening/tree.txtdeleted−35

This diff is too big to show here.

tests/golden/types-partial-atom-widening/types.txtdeleted−16

This diff is too big to show here.

tests/golden/types-partial-aura-family/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-aura-family/source.jibbdeleted−10

This diff is too big to show here.

tests/golden/types-partial-aura-family/tokens.txtdeleted−100

This diff is too big to show here.

tests/golden/types-partial-aura-family/tree.txtdeleted−44

This diff is too big to show here.

tests/golden/types-partial-aura-family/types.txtdeleted−23

This diff is too big to show here.

tests/golden/types-partial-aura/about.txt+1−1

This diff is too big to show here.

tests/golden/types-partial-aura/types.txt+1−7

This diff is too big to show here.

tests/golden/types-partial-bare-atom/about.txt+3−4

This diff is too big to show here.

tests/golden/types-partial-bare-atom/types.txt+2−2

This diff is too big to show here.

tests/golden/types-partial-branch-widening/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-branch-widening/source.jibbdeleted−20

This diff is too big to show here.

tests/golden/types-partial-branch-widening/tokens.txtdeleted−96

This diff is too big to show here.

tests/golden/types-partial-branch-widening/tree.txtdeleted−49

This diff is too big to show here.

tests/golden/types-partial-branch-widening/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-partial-conflicting-sites/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-conflicting-sites/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-partial-conflicting-sites/tokens.txtdeleted−33

This diff is too big to show here.

tests/golden/types-partial-conflicting-sites/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-partial-conflicting-sites/types.txtdeleted−23

This diff is too big to show here.

tests/golden/types-partial-decimal-default/about.txtdeleted−7

This diff is too big to show here.

tests/golden/types-partial-decimal-default/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-partial-decimal-default/tokens.txtdeleted−34

This diff is too big to show here.

tests/golden/types-partial-decimal-default/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-partial-decimal-default/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-partial-independent-atoms/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-independent-atoms/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-partial-independent-atoms/tokens.txtdeleted−21

This diff is too big to show here.

tests/golden/types-partial-independent-atoms/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-partial-independent-atoms/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-partial-local-molds/about.txtdeleted−10

This diff is too big to show here.

tests/golden/types-partial-local-molds/source.jibbdeleted−39

This diff is too big to show here.

tests/golden/types-partial-local-molds/tokens.txtdeleted−170

This diff is too big to show here.

tests/golden/types-partial-local-molds/tree.txtdeleted−80

This diff is too big to show here.

tests/golden/types-partial-local-molds/types.txtdeleted−11

This diff is too big to show here.

tests/golden/types-partial-locals/about.txtdeleted−8

This diff is too big to show here.

tests/golden/types-partial-locals/source.jibbdeleted−44

This diff is too big to show here.

tests/golden/types-partial-locals/tokens.txtdeleted−239

This diff is too big to show here.

tests/golden/types-partial-locals/tree.txtdeleted−122

This diff is too big to show here.

tests/golden/types-partial-locals/types.txtdeleted−32

This diff is too big to show here.

tests/golden/types-partial-many-atom-constraints/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-partial-many-atom-constraints/source.jibbdeleted−13

This diff is too big to show here.

tests/golden/types-partial-many-atom-constraints/tokens.txtdeleted−90

This diff is too big to show here.

tests/golden/types-partial-many-atom-constraints/tree.txtdeleted−44

This diff is too big to show here.

tests/golden/types-partial-many-atom-constraints/types.txtdeleted−26

This diff is too big to show here.

tests/golden/types-partial-mold-bare-aura/about.txt+2−2

This diff is too big to show here.

tests/golden/types-partial-mold-bare-aura/types.txt+1−1

This diff is too big to show here.

tests/golden/types-partial-occurs/types.txt−6

This diff is too big to show here.

tests/golden/types-partial-shared-tvar/types.txt−6

This diff is too big to show here.

tests/golden/types-partial-union-cases/types.txt+3−21

This diff is too big to show here.

tests/golden/types-partial-union-edges/about.txtdeleted−3

This diff is too big to show here.

tests/golden/types-partial-union-edges/source.jibbdeleted−24

This diff is too big to show here.

tests/golden/types-partial-union-edges/tokens.txtdeleted−97

This diff is too big to show here.

tests/golden/types-partial-union-edges/tree.txtdeleted−33

This diff is too big to show here.

tests/golden/types-partial-union-edges/types.txtdeleted−15

This diff is too big to show here.

tests/golden/types-partial-unresolved-tag/about.txt+1−1

This diff is too big to show here.

tests/golden/types-partial-unresolved-tag/types.txt+1−1

This diff is too big to show here.

tests/golden/types-prelude-arithmetic/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-arithmetic/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-arithmetic/source.jibbdeleted−23

This diff is too big to show here.

tests/golden/types-prelude-arithmetic/tokens.txtdeleted−201

This diff is too big to show here.

tests/golden/types-prelude-arithmetic/tree.txtdeleted−85

This diff is too big to show here.

tests/golden/types-prelude-arithmetic/types.txtdeleted−32

This diff is too big to show here.

tests/golden/types-prelude-bond/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-bond/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-bond/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-prelude-bond/tokens.txtdeleted−57

This diff is too big to show here.

tests/golden/types-prelude-bond/tree.txtdeleted−30

This diff is too big to show here.

tests/golden/types-prelude-bond/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-prelude-cmd/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-cmd/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-cmd/source.jibbdeleted−21

This diff is too big to show here.

tests/golden/types-prelude-cmd/tokens.txtdeleted−285

This diff is too big to show here.

tests/golden/types-prelude-cmd/tree.txtdeleted−122

This diff is too big to show here.

tests/golden/types-prelude-cmd/types.txtdeleted−50

This diff is too big to show here.

tests/golden/types-prelude-direct/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-direct/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-direct/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-prelude-direct/tokens.txtdeleted−53

This diff is too big to show here.

tests/golden/types-prelude-direct/tree.txtdeleted−25

This diff is too big to show here.

tests/golden/types-prelude-direct/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-prelude-functional/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-functional/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-functional/source.jibbdeleted−18

This diff is too big to show here.

tests/golden/types-prelude-functional/tokens.txtdeleted−145

This diff is too big to show here.

tests/golden/types-prelude-functional/tree.txtdeleted−65

This diff is too big to show here.

tests/golden/types-prelude-functional/types.txtdeleted−23

This diff is too big to show here.

tests/golden/types-prelude-interface/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-interface/module-trees.txtdeleted−13

This diff is too big to show here.

tests/golden/types-prelude-interface/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-prelude-interface/modules/ui/left.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-interface/modules/ui/right.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-interface/source.jibbdeleted−10

This diff is too big to show here.

tests/golden/types-prelude-interface/tokens.txtdeleted−81

This diff is too big to show here.

tests/golden/types-prelude-interface/tree.txtdeleted−33

This diff is too big to show here.

tests/golden/types-prelude-interface/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-prelude-list-alias/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-list-alias/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-list-alias/source.jibbdeleted−7

This diff is too big to show here.

tests/golden/types-prelude-list-alias/tokens.txtdeleted−68

This diff is too big to show here.

tests/golden/types-prelude-list-alias/tree.txtdeleted−30

This diff is too big to show here.

tests/golden/types-prelude-list-alias/types.txtdeleted−14

This diff is too big to show here.

tests/golden/types-prelude-list-functions/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-list-functions/module-trees.txtdeleted−11

This diff is too big to show here.

tests/golden/types-prelude-list-functions/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-list-functions/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-prelude-list-functions/source.jibbdeleted−18

This diff is too big to show here.

tests/golden/types-prelude-list-functions/tokens.txtdeleted−183

This diff is too big to show here.

tests/golden/types-prelude-list-functions/tree.txtdeleted−87

This diff is too big to show here.

tests/golden/types-prelude-list-functions/types.txtdeleted−28

This diff is too big to show here.

tests/golden/types-prelude-list-helpers/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-list-helpers/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-list-helpers/source.jibbdeleted−15

This diff is too big to show here.

tests/golden/types-prelude-list-helpers/tokens.txtdeleted−182

This diff is too big to show here.

tests/golden/types-prelude-list-helpers/tree.txtdeleted−98

This diff is too big to show here.

tests/golden/types-prelude-list-helpers/types.txtdeleted−34

This diff is too big to show here.

tests/golden/types-prelude-predicates/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-predicates/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-predicates/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-prelude-predicates/tokens.txtdeleted−91

This diff is too big to show here.

tests/golden/types-prelude-predicates/tree.txtdeleted−49

This diff is too big to show here.

tests/golden/types-prelude-predicates/types.txtdeleted−19

This diff is too big to show here.

tests/golden/types-prelude-unit-helpers/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-prelude-unit-helpers/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-prelude-unit-helpers/source.jibbdeleted−15

This diff is too big to show here.

tests/golden/types-prelude-unit-helpers/tokens.txtdeleted−209

This diff is too big to show here.

tests/golden/types-prelude-unit-helpers/tree.txtdeleted−115

This diff is too big to show here.

tests/golden/types-prelude-unit-helpers/types.txtdeleted−26

This diff is too big to show here.

tests/golden/types-proj-explicit-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-explicit-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-explicit-context/source.jibbdeleted−35

This diff is too big to show here.

tests/golden/types-proj-explicit-context/tokens.txtdeleted−626

This diff is too big to show here.

tests/golden/types-proj-explicit-context/tree.txtdeleted−287

This diff is too big to show here.

tests/golden/types-proj-explicit-context/types.txtdeleted−31

This diff is too big to show here.

tests/golden/types-proj-nested-no-implicit/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-nested-no-implicit/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-nested-no-implicit/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-proj-nested-no-implicit/tokens.txtdeleted−119

This diff is too big to show here.

tests/golden/types-proj-nested-no-implicit/tree.txtdeleted−56

This diff is too big to show here.

tests/golden/types-proj-nested-no-implicit/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/module-trees.txtdeleted−10

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-imported-definition/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/module-trees.txtdeleted−6

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/modules/ui/lib.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-jibb-import/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-local-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-local-mold/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-local-mold/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-local-mold/tokens.txtdeleted−10

This diff is too big to show here.

tests/golden/types-proj-reserved-local-mold/tree.txtdeleted−5

This diff is too big to show here.

tests/golden/types-proj-reserved-local-mold/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-local/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-local/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-local/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-local/tokens.txtdeleted−14

This diff is too big to show here.

tests/golden/types-proj-reserved-local/tree.txtdeleted−8

This diff is too big to show here.

tests/golden/types-proj-reserved-local/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-mark-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-mark-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-mark-import/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-mark-import/tokens.txtdeleted−7

This diff is too big to show here.

tests/golden/types-proj-reserved-mark-import/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-mark-import/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-mold/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-mold/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-mold/tokens.txtdeleted−8

This diff is too big to show here.

tests/golden/types-proj-reserved-mold/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-mold/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-pattern/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-pattern/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-pattern/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-pattern/tokens.txtdeleted−21

This diff is too big to show here.

tests/golden/types-proj-reserved-pattern/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-proj-reserved-pattern/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-positive/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-positive/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-positive/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-proj-reserved-positive/tokens.txtdeleted−70

This diff is too big to show here.

tests/golden/types-proj-reserved-positive/tree.txtdeleted−31

This diff is too big to show here.

tests/golden/types-proj-reserved-positive/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-proj-reserved-sample/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-sample/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-sample/source.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-sample/tokens.txtdeleted−8

This diff is too big to show here.

tests/golden/types-proj-reserved-sample/tree.txtdeleted−5

This diff is too big to show here.

tests/golden/types-proj-reserved-sample/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-sur-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-sur-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-sur-import/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-sur-import/tokens.txtdeleted−7

This diff is too big to show here.

tests/golden/types-proj-reserved-sur-import/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-proj-reserved-sur-import/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-pattern/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-pattern/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-pattern/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-pattern/tokens.txtdeleted−38

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-pattern/tree.txtdeleted−18

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-pattern/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-sample/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-sample/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-sample/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-sample/tokens.txtdeleted−25

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-sample/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-sample/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-value/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-value/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-value/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-value/tokens.txtdeleted−31

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-value/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-proj-reserved-unused-value/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-value/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-reserved-value/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-reserved-value/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-proj-reserved-value/tokens.txtdeleted−12

This diff is too big to show here.

tests/golden/types-proj-reserved-value/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-proj-reserved-value/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-proj-single-duplicate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-single-duplicate/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-single-duplicate/source.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-proj-single-duplicate/tokens.txtdeleted−23

This diff is too big to show here.

tests/golden/types-proj-single-duplicate/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-proj-single-duplicate/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-proj-single-field/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-single-field/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-single-field/source.jibbdeleted−25

This diff is too big to show here.

tests/golden/types-proj-single-field/tokens.txtdeleted−499

This diff is too big to show here.

tests/golden/types-proj-single-field/tree.txtdeleted−243

This diff is too big to show here.

tests/golden/types-proj-single-field/types.txtdeleted−31

This diff is too big to show here.

tests/golden/types-proj-single-sample-face/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-single-sample-face/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-single-sample-face/source.jibbdeleted−22

This diff is too big to show here.

tests/golden/types-proj-single-sample-face/tokens.txtdeleted−210

This diff is too big to show here.

tests/golden/types-proj-single-sample-face/tree.txtdeleted−117

This diff is too big to show here.

tests/golden/types-proj-single-sample-face/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-proj-single-wrapped/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-proj-single-wrapped/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-proj-single-wrapped/source.jibbdeleted−26

This diff is too big to show here.

tests/golden/types-proj-single-wrapped/tokens.txtdeleted−208

This diff is too big to show here.

tests/golden/types-proj-single-wrapped/tree.txtdeleted−107

This diff is too big to show here.

tests/golden/types-proj-single-wrapped/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-qath-faces/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-qath-faces/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-qath-faces/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-qath-faces/tokens.txtdeleted−130

This diff is too big to show here.

tests/golden/types-qath-faces/tree.txtdeleted−59

This diff is too big to show here.

tests/golden/types-qath-faces/types.txtdeleted−18

This diff is too big to show here.

tests/golden/types-qath-holes/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-qath-holes/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-qath-holes/source.jibbdeleted−18

This diff is too big to show here.

tests/golden/types-qath-holes/tokens.txtdeleted−178

This diff is too big to show here.

tests/golden/types-qath-holes/tree.txtdeleted−78

This diff is too big to show here.

tests/golden/types-qath-holes/types.txtdeleted−22

This diff is too big to show here.

tests/golden/types-qath-module-identity/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-qath-module-identity/module-trees.txtdeleted−44

This diff is too big to show here.

tests/golden/types-qath-module-identity/modules.txtdeleted−3

This diff is too big to show here.

tests/golden/types-qath-module-identity/modules/ui/mid.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-qath-module-identity/modules/ui/one.jibbdeleted−7

This diff is too big to show here.

tests/golden/types-qath-module-identity/modules/ui/two.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-qath-module-identity/source.jibbdeleted−15

This diff is too big to show here.

tests/golden/types-qath-module-identity/tokens.txtdeleted−171

This diff is too big to show here.

tests/golden/types-qath-module-identity/tree.txtdeleted−70

This diff is too big to show here.

tests/golden/types-qath-module-identity/types.txtdeleted−18

This diff is too big to show here.

tests/golden/types-qath-recursive/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-qath-recursive/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-qath-recursive/source.jibbdeleted−19

This diff is too big to show here.

tests/golden/types-qath-recursive/tokens.txtdeleted−145

This diff is too big to show here.

tests/golden/types-qath-recursive/tree.txtdeleted−63

This diff is too big to show here.

tests/golden/types-qath-recursive/types.txtdeleted−14

This diff is too big to show here.

tests/golden/types-record-bound-variable/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-bound-variable/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-record-bound-variable/tokens.txtdeleted−65

This diff is too big to show here.

tests/golden/types-record-bound-variable/tree.txtdeleted−33

This diff is too big to show here.

tests/golden/types-record-bound-variable/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-record-cast-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-cast-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-record-cast-context/source.jibbdeleted−24

This diff is too big to show here.

tests/golden/types-record-cast-context/tokens.txtdeleted−234

This diff is too big to show here.

tests/golden/types-record-cast-context/tree.txtdeleted−105

This diff is too big to show here.

tests/golden/types-record-cast-context/types.txtdeleted−49

This diff is too big to show here.

tests/golden/types-record-change-generic/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-change-generic/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-record-change-generic/source.jibbdeleted−9

This diff is too big to show here.

tests/golden/types-record-change-generic/tokens.txtdeleted−145

This diff is too big to show here.

tests/golden/types-record-change-generic/tree.txtdeleted−57

This diff is too big to show here.

tests/golden/types-record-change-generic/types.txtdeleted−14

This diff is too big to show here.

tests/golden/types-record-change/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-change/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-record-change/source.jibbdeleted−19

This diff is too big to show here.

tests/golden/types-record-change/tokens.txtdeleted−254

This diff is too big to show here.

tests/golden/types-record-change/tree.txtdeleted−99

This diff is too big to show here.

tests/golden/types-record-change/types.txtdeleted−42

This diff is too big to show here.

tests/golden/types-record-faces/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-faces/source.jibbdeleted−8

This diff is too big to show here.

tests/golden/types-record-faces/tokens.txtdeleted−90

This diff is too big to show here.

tests/golden/types-record-faces/tree.txtdeleted−41

This diff is too big to show here.

tests/golden/types-record-faces/types.txtdeleted−15

This diff is too big to show here.

tests/golden/types-record-field-edit-separate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-edit-separate/source.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-record-field-edit-separate/tokens.txtdeleted−51

This diff is too big to show here.

tests/golden/types-record-field-edit-separate/tree.txtdeleted−22

This diff is too big to show here.

tests/golden/types-record-field-edit-separate/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-expr-duplicate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-expr-duplicate/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-expr-duplicate/tokens.txtdeleted−22

This diff is too big to show here.

tests/golden/types-record-field-expr-duplicate/tree.txtdeleted−9

This diff is too big to show here.

tests/golden/types-record-field-expr-duplicate/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-record-field-expr-separate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-expr-separate/source.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-record-field-expr-separate/tokens.txtdeleted−25

This diff is too big to show here.

tests/golden/types-record-field-expr-separate/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-record-field-expr-separate/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/module-trees.txtdeleted−7

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-record-field-module-reachable/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-record-field-module-unused/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-module-unused/module-trees.txtdeleted−10

This diff is too big to show here.

tests/golden/types-record-field-module-unused/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-module-unused/modules/ui/good.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-record-field-module-unused/modules/ui/unused.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-module-unused/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-module-unused/tokens.txtdeleted−11

This diff is too big to show here.

tests/golden/types-record-field-module-unused/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-record-field-module-unused/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-nested-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-nested-mold/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-nested-mold/tokens.txtdeleted−22

This diff is too big to show here.

tests/golden/types-record-field-nested-mold/tree.txtdeleted−9

This diff is too big to show here.

tests/golden/types-record-field-nested-mold/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-record-field-outer-inner/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-outer-inner/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-outer-inner/tokens.txtdeleted−26

This diff is too big to show here.

tests/golden/types-record-field-outer-inner/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-record-field-outer-inner/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-record-field-sample-duplicate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-sample-duplicate/source.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-record-field-sample-duplicate/tokens.txtdeleted−13

This diff is too big to show here.

tests/golden/types-record-field-sample-duplicate/tree.txtdeleted−7

This diff is too big to show here.

tests/golden/types-record-field-sample-duplicate/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-record-field-separate-molds/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-separate-molds/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-separate-molds/tokens.txtdeleted−33

This diff is too big to show here.

tests/golden/types-record-field-separate-molds/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-record-field-separate-molds/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-record-field-unused-mold/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-field-unused-mold/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-record-field-unused-mold/tokens.txtdeleted−15

This diff is too big to show here.

tests/golden/types-record-field-unused-mold/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-record-field-unused-mold/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-record-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-import/module-trees.txtdeleted−9

This diff is too big to show here.

tests/golden/types-record-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-record-import/modules/ui/lib.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-record-import/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-record-import/tokens.txtdeleted−36

This diff is too big to show here.

tests/golden/types-record-import/tree.txtdeleted−16

This diff is too big to show here.

tests/golden/types-record-import/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-record-local-scheme/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-local-scheme/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-record-local-scheme/tokens.txtdeleted−44

This diff is too big to show here.

tests/golden/types-record-local-scheme/tree.txtdeleted−20

This diff is too big to show here.

tests/golden/types-record-local-scheme/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-nested/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-nested/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-record-nested/tokens.txtdeleted−54

This diff is too big to show here.

tests/golden/types-record-nested/tree.txtdeleted−24

This diff is too big to show here.

tests/golden/types-record-nested/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-record-to-tuple/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-record-to-tuple/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-record-to-tuple/tokens.txtdeleted−38

This diff is too big to show here.

tests/golden/types-record-to-tuple/tree.txtdeleted−17

This diff is too big to show here.

tests/golden/types-record-to-tuple/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-recursion-scc-failures/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-failures/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-failures/source.jibbdeleted−11

This diff is too big to show here.

tests/golden/types-recursion-scc-failures/tokens.txtdeleted−90

This diff is too big to show here.

tests/golden/types-recursion-scc-failures/tree.txtdeleted−45

This diff is too big to show here.

tests/golden/types-recursion-scc-failures/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-recursion-scc-groups/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-groups/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-groups/source.jibbdeleted−9

This diff is too big to show here.

tests/golden/types-recursion-scc-groups/tokens.txtdeleted−91

This diff is too big to show here.

tests/golden/types-recursion-scc-groups/tree.txtdeleted−42

This diff is too big to show here.

tests/golden/types-recursion-scc-groups/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/module-trees.txtdeleted−16

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/modules/ui/lib.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/tokens.txtdeleted−14

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/tree.txtdeleted−5

This diff is too big to show here.

tests/golden/types-recursion-scc-import-bad/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-recursion-scc-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-import/module-trees.txtdeleted−12

This diff is too big to show here.

tests/golden/types-recursion-scc-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-import/modules/ui/lib.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-recursion-scc-import/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-recursion-scc-import/tokens.txtdeleted−25

This diff is too big to show here.

tests/golden/types-recursion-scc-import/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-recursion-scc-import/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-recursion-scc-local/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-local/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-local/source.jibbdeleted−11

This diff is too big to show here.

tests/golden/types-recursion-scc-local/tokens.txtdeleted−80

This diff is too big to show here.

tests/golden/types-recursion-scc-local/tree.txtdeleted−39

This diff is too big to show here.

tests/golden/types-recursion-scc-local/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-order/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-order/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-order/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-order/tokens.txtdeleted−33

This diff is too big to show here.

tests/golden/types-recursion-scc-order/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-recursion-scc-order/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-recursion-scc-shadow/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursion-scc-shadow/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursion-scc-shadow/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-recursion-scc-shadow/tokens.txtdeleted−30

This diff is too big to show here.

tests/golden/types-recursion-scc-shadow/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-recursion-scc-shadow/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursive-branch/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursive-branch/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-recursive-branch/source.jibbdeleted−103

This diff is too big to show here.

tests/golden/types-recursive-branch/tokens.txtdeleted−573

This diff is too big to show here.

tests/golden/types-recursive-branch/tree.txtdeleted−306

This diff is too big to show here.

tests/golden/types-recursive-branch/types.txtdeleted−50

This diff is too big to show here.

tests/golden/types-recursive-gate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursive-gate/source.jibbdeleted−55

This diff is too big to show here.

tests/golden/types-recursive-gate/tokens.txtdeleted−355

This diff is too big to show here.

tests/golden/types-recursive-gate/tree.txtdeleted−176

This diff is too big to show here.

tests/golden/types-recursive-gate/types.txtdeleted−42

This diff is too big to show here.

tests/golden/types-recursive-sample/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-recursive-sample/source.jibbdeleted−40

This diff is too big to show here.

tests/golden/types-recursive-sample/tokens.txtdeleted−344

This diff is too big to show here.

tests/golden/types-recursive-sample/tree.txtdeleted−161

This diff is too big to show here.

tests/golden/types-recursive-sample/types.txtdeleted−40

This diff is too big to show here.

tests/golden/types-scope-library-poke/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-scope-library-poke/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-library-poke/path.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-library-poke/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-scope-library-poke/tokens.txtdeleted−8

This diff is too big to show here.

tests/golden/types-scope-library-poke/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-scope-library-poke/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-scope-root-api/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-scope-root-api/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-root-api/path.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-root-api/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-scope-root-api/tokens.txtdeleted−7

This diff is too big to show here.

tests/golden/types-scope-root-api/tree.txtdeleted−3

This diff is too big to show here.

tests/golden/types-scope-root-api/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/path.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/tokens.txtdeleted−16

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-scope-store-duplicate/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-scope-store-shadow/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-scope-store-shadow/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-store-shadow/path.txtdeleted−1

This diff is too big to show here.

tests/golden/types-scope-store-shadow/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-scope-store-shadow/tokens.txtdeleted−16

This diff is too big to show here.

tests/golden/types-scope-store-shadow/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-scope-store-shadow/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-single-case-pattern/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-single-case-pattern/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-single-case-pattern/source.jibbdeleted−59

This diff is too big to show here.

tests/golden/types-single-case-pattern/tokens.txtdeleted−364

This diff is too big to show here.

tests/golden/types-single-case-pattern/tree.txtdeleted−182

This diff is too big to show here.

tests/golden/types-single-case-pattern/types.txtdeleted−32

This diff is too big to show here.

tests/golden/types-string-interpolation/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-string-interpolation/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-string-interpolation/source.jibbdeleted−28

This diff is too big to show here.

tests/golden/types-string-interpolation/tokens.txtdeleted−259

This diff is too big to show here.

tests/golden/types-string-interpolation/tree.txtdeleted−109

This diff is too big to show here.

tests/golden/types-string-interpolation/types.txtdeleted−33

This diff is too big to show here.

tests/golden/types-tuple-context-nested/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-tuple-context-nested/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-tuple-context-nested/source.jibbdeleted−24

This diff is too big to show here.

tests/golden/types-tuple-context-nested/tokens.txtdeleted−289

This diff is too big to show here.

tests/golden/types-tuple-context-nested/tree.txtdeleted−140

This diff is too big to show here.

tests/golden/types-tuple-context-nested/types.txtdeleted−49

This diff is too big to show here.

tests/golden/types-tuple-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-tuple-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-tuple-context/source.jibbdeleted−7

This diff is too big to show here.

tests/golden/types-tuple-context/tokens.txtdeleted−109

This diff is too big to show here.

tests/golden/types-tuple-context/tree.txtdeleted−55

This diff is too big to show here.

tests/golden/types-tuple-context/types.txtdeleted−14

This diff is too big to show here.

tests/golden/types-union-alias/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-alias/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-union-alias/tokens.txtdeleted−23

This diff is too big to show here.

tests/golden/types-union-alias/tree.txtdeleted−10

This diff is too big to show here.

tests/golden/types-union-alias/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-branch-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-branch-context/source.jibbdeleted−54

This diff is too big to show here.

tests/golden/types-union-branch-context/tokens.txtdeleted−237

This diff is too big to show here.

tests/golden/types-union-branch-context/tree.txtdeleted−120

This diff is too big to show here.

tests/golden/types-union-branch-context/types.txtdeleted−24

This diff is too big to show here.

tests/golden/types-union-branch-pending/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-branch-pending/source.jibbdeleted−24

This diff is too big to show here.

tests/golden/types-union-branch-pending/tokens.txtdeleted−102

This diff is too big to show here.

tests/golden/types-union-branch-pending/tree.txtdeleted−48

This diff is too big to show here.

tests/golden/types-union-branch-pending/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-union-constructor-shape/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-constructor-shape/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-union-constructor-shape/tokens.txtdeleted−58

This diff is too big to show here.

tests/golden/types-union-constructor-shape/tree.txtdeleted−24

This diff is too big to show here.

tests/golden/types-union-constructor-shape/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-context-flow/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-context-flow/source.jibbdeleted−13

This diff is too big to show here.

tests/golden/types-union-context-flow/tokens.txtdeleted−58

This diff is too big to show here.

tests/golden/types-union-context-flow/tree.txtdeleted−26

This diff is too big to show here.

tests/golden/types-union-context-flow/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-union-finite-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-finite-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-finite-context/source.jibbdeleted−76

This diff is too big to show here.

tests/golden/types-union-finite-context/tokens.txtdeleted−529

This diff is too big to show here.

tests/golden/types-union-finite-context/tree.txtdeleted−234

This diff is too big to show here.

tests/golden/types-union-finite-context/types.txtdeleted−27

This diff is too big to show here.

tests/golden/types-union-finite-generic/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-finite-generic/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-finite-generic/source.jibbdeleted−48

This diff is too big to show here.

tests/golden/types-union-finite-generic/tokens.txtdeleted−336

This diff is too big to show here.

tests/golden/types-union-finite-generic/tree.txtdeleted−143

This diff is too big to show here.

tests/golden/types-union-finite-generic/types.txtdeleted−11

This diff is too big to show here.

tests/golden/types-union-finite-limit/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-finite-limit/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-finite-limit/source.jibbdeleted−35

This diff is too big to show here.

tests/golden/types-union-finite-limit/tokens.txtdeleted−233

This diff is too big to show here.

tests/golden/types-union-finite-limit/tree.txtdeleted−89

This diff is too big to show here.

tests/golden/types-union-finite-limit/types.txtdeleted−10

This diff is too big to show here.

tests/golden/types-union-finite/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-finite/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-finite/source.jibbdeleted−45

This diff is too big to show here.

tests/golden/types-union-finite/tokens.txtdeleted−238

This diff is too big to show here.

tests/golden/types-union-finite/tree.txtdeleted−110

This diff is too big to show here.

tests/golden/types-union-finite/types.txtdeleted−17

This diff is too big to show here.

tests/golden/types-union-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-import/module-trees.txtdeleted−8

This diff is too big to show here.

tests/golden/types-union-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-import/modules/ui/lib.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-import/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-union-import/tokens.txtdeleted−13

This diff is too big to show here.

tests/golden/types-union-import/tree.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-import/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-local-pending/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-local-pending/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-local-pending/tokens.txtdeleted−10

This diff is too big to show here.

tests/golden/types-union-local-pending/tree.txtdeleted−5

This diff is too big to show here.

tests/golden/types-union-local-pending/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-nonwing-subject/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-nonwing-subject/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-nonwing-subject/source.jibbdeleted−82

This diff is too big to show here.

tests/golden/types-union-nonwing-subject/tokens.txtdeleted−593

This diff is too big to show here.

tests/golden/types-union-nonwing-subject/tree.txtdeleted−257

This diff is too big to show here.

tests/golden/types-union-nonwing-subject/types.txtdeleted−45

This diff is too big to show here.

tests/golden/types-union-overlap-nested/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-overlap-nested/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-union-overlap-nested/tokens.txtdeleted−21

This diff is too big to show here.

tests/golden/types-union-overlap-nested/tree.txtdeleted−7

This diff is too big to show here.

tests/golden/types-union-overlap-nested/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-union-overlap/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-overlap/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-union-overlap/tokens.txtdeleted−15

This diff is too big to show here.

tests/golden/types-union-overlap/tree.txtdeleted−5

This diff is too big to show here.

tests/golden/types-union-overlap/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-union-pattern-result-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-pattern-result-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-pattern-result-context/source.jibbdeleted−25

This diff is too big to show here.

tests/golden/types-union-pattern-result-context/tokens.txtdeleted−205

This diff is too big to show here.

tests/golden/types-union-pattern-result-context/tree.txtdeleted−96

This diff is too big to show here.

tests/golden/types-union-pattern-result-context/types.txtdeleted−13

This diff is too big to show here.

tests/golden/types-union-pattern-result-controls/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-pattern-result-controls/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-pattern-result-controls/source.jibbdeleted−55

This diff is too big to show here.

tests/golden/types-union-pattern-result-controls/tokens.txtdeleted−357

This diff is too big to show here.

tests/golden/types-union-pattern-result-controls/tree.txtdeleted−161

This diff is too big to show here.

tests/golden/types-union-pattern-result-controls/types.txtdeleted−30

This diff is too big to show here.

tests/golden/types-union-patterns-generic/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-patterns-generic/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-patterns-generic/source.jibbdeleted−36

This diff is too big to show here.

tests/golden/types-union-patterns-generic/tokens.txtdeleted−255

This diff is too big to show here.

tests/golden/types-union-patterns-generic/tree.txtdeleted−117

This diff is too big to show here.

tests/golden/types-union-patterns-generic/types.txtdeleted−13

This diff is too big to show here.

tests/golden/types-union-patterns-import/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-patterns-import/module-trees.txtdeleted−8

This diff is too big to show here.

tests/golden/types-union-patterns-import/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-patterns-import/modules/ui/lib.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-patterns-import/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-union-patterns-import/tokens.txtdeleted−28

This diff is too big to show here.

tests/golden/types-union-patterns-import/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-patterns-import/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-patterns/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-patterns/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-patterns/source.jibbdeleted−74

This diff is too big to show here.

tests/golden/types-union-patterns/tokens.txtdeleted−336

This diff is too big to show here.

tests/golden/types-union-patterns/tree.txtdeleted−152

This diff is too big to show here.

tests/golden/types-union-patterns/types.txtdeleted−25

This diff is too big to show here.

tests/golden/types-union-phantom-generic/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-phantom-generic/source.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-union-phantom-generic/tokens.txtdeleted−21

This diff is too big to show here.

tests/golden/types-union-phantom-generic/tree.txtdeleted−8

This diff is too big to show here.

tests/golden/types-union-phantom-generic/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/module-trees.txtdeleted−16

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/modules/ui/one.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/modules/ui/two.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/source.jibbdeleted−33

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/tokens.txtdeleted−368

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/tree.txtdeleted−152

This diff is too big to show here.

tests/golden/types-union-polymorphic-identity/types.txtdeleted−36

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/module-trees.txtdeleted−6

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/modules/ui/lib.jibbdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/source.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/tokens.txtdeleted−22

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/tree.txtdeleted−9

This diff is too big to show here.

tests/golden/types-union-print-cross-namespace/types.txtdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-distinct/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-distinct/module-trees.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-print-distinct/modules.txtdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-distinct/modules/ui/left.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-distinct/modules/ui/right.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-distinct/modules/ui/twin.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-distinct/source.jibbdeleted−11

This diff is too big to show here.

tests/golden/types-union-print-distinct/tokens.txtdeleted−87

This diff is too big to show here.

tests/golden/types-union-print-distinct/tree.txtdeleted−34

This diff is too big to show here.

tests/golden/types-union-print-distinct/types.txtdeleted−9

This diff is too big to show here.

tests/golden/types-union-print-escape/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-escape/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-union-print-escape/tokens.txtdeleted−20

This diff is too big to show here.

tests/golden/types-union-print-escape/tree.txtdeleted−8

This diff is too big to show here.

tests/golden/types-union-print-escape/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-print-local/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-local/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-union-print-local/tokens.txtdeleted−28

This diff is too big to show here.

tests/golden/types-union-print-local/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-print-local/types.txtdeleted−5

This diff is too big to show here.

tests/golden/types-union-print-nested/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-nested/source.jibbdeleted−7

This diff is too big to show here.

tests/golden/types-union-print-nested/tokens.txtdeleted−42

This diff is too big to show here.

tests/golden/types-union-print-nested/tree.txtdeleted−17

This diff is too big to show here.

tests/golden/types-union-print-nested/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-union-print-same-origin/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-same-origin/module-trees.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-same-origin/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-union-print-same-origin/modules/ui/shared.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-same-origin/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-union-print-same-origin/tokens.txtdeleted−35

This diff is too big to show here.

tests/golden/types-union-print-same-origin/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-print-same-origin/types.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-transitive/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-print-transitive/module-trees.txtdeleted−8

This diff is too big to show here.

tests/golden/types-union-print-transitive/modules.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-print-transitive/modules/ui/base.jibbdeleted−3

This diff is too big to show here.

tests/golden/types-union-print-transitive/modules/ui/mid.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-union-print-transitive/source.jibbdeleted−2

This diff is too big to show here.

tests/golden/types-union-print-transitive/tokens.txtdeleted−15

This diff is too big to show here.

tests/golden/types-union-print-transitive/tree.txtdeleted−6

This diff is too big to show here.

tests/golden/types-union-print-transitive/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-singleton/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-singleton/source.jibbdeleted−16

This diff is too big to show here.

tests/golden/types-union-singleton/tokens.txtdeleted−130

This diff is too big to show here.

tests/golden/types-union-singleton/tree.txtdeleted−53

This diff is too big to show here.

tests/golden/types-union-singleton/types.txtdeleted−33

This diff is too big to show here.

tests/golden/types-union-tag-atoms/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-tag-atoms/source.jibbdeleted−5

This diff is too big to show here.

tests/golden/types-union-tag-atoms/tokens.txtdeleted−30

This diff is too big to show here.

tests/golden/types-union-tag-atoms/tree.txtdeleted−11

This diff is too big to show here.

tests/golden/types-union-tag-atoms/types.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-tags/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-tags/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-union-tags/tokens.txtdeleted−34

This diff is too big to show here.

tests/golden/types-union-tags/tree.txtdeleted−15

This diff is too big to show here.

tests/golden/types-union-tags/types.txtdeleted−11

This diff is too big to show here.

tests/golden/types-union-unresolved-flow/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-unresolved-flow/source.jibbdeleted−7

This diff is too big to show here.

tests/golden/types-union-unresolved-flow/tokens.txtdeleted−31

This diff is too big to show here.

tests/golden/types-union-unresolved-flow/tree.txtdeleted−12

This diff is too big to show here.

tests/golden/types-union-unresolved-flow/types.txtdeleted−6

This diff is too big to show here.

tests/golden/types-union-unresolved/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-unresolved/source.jibbdeleted−1

This diff is too big to show here.

tests/golden/types-union-unresolved/tokens.txtdeleted−4

This diff is too big to show here.

tests/golden/types-union-unresolved/tree.txtdeleted−2

This diff is too big to show here.

tests/golden/types-union-unresolved/types.txtdeleted−2

This diff is too big to show here.

tests/golden/types-unit-construction/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-unit-construction/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-unit-construction/source.jibbdeleted−29

This diff is too big to show here.

tests/golden/types-unit-construction/tokens.txtdeleted−168

This diff is too big to show here.

tests/golden/types-unit-construction/tree.txtdeleted−71

This diff is too big to show here.

tests/golden/types-unit-construction/types.txtdeleted−32

This diff is too big to show here.

tests/golden/types-unit-context/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-unit-context/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-unit-context/source.jibbdeleted−46

This diff is too big to show here.

tests/golden/types-unit-context/tokens.txtdeleted−489

This diff is too big to show here.

tests/golden/types-unit-context/tree.txtdeleted−220

This diff is too big to show here.

tests/golden/types-unit-context/types.txtdeleted−95

This diff is too big to show here.

tests/golden/types-unit-patterns/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-unit-patterns/source.jibbdeleted−36

This diff is too big to show here.

tests/golden/types-unit-patterns/tokens.txtdeleted−180

This diff is too big to show here.

tests/golden/types-unit-patterns/tree.txtdeleted−88

This diff is too big to show here.

tests/golden/types-unit-patterns/types.txtdeleted−13

This diff is too big to show here.

tests/golden/types-value-cycle-shadow/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-value-cycle-shadow/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-value-cycle-shadow/source.jibbdeleted−6

This diff is too big to show here.

tests/golden/types-value-cycle-shadow/tokens.txtdeleted−68

This diff is too big to show here.

tests/golden/types-value-cycle-shadow/tree.txtdeleted−32

This diff is too big to show here.

tests/golden/types-value-cycle-shadow/types.txtdeleted−7

This diff is too big to show here.

tests/golden/types-value-cycle-unsupported/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-value-cycle-unsupported/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-value-cycle-unsupported/source.jibbdeleted−11

This diff is too big to show here.

tests/golden/types-value-cycle-unsupported/tokens.txtdeleted−45

This diff is too big to show here.

tests/golden/types-value-cycle-unsupported/tree.txtdeleted−17

This diff is too big to show here.

tests/golden/types-value-cycle-unsupported/types.txtdeleted−8

This diff is too big to show here.

tests/golden/types-value-cycles/about.txtdeleted−4

This diff is too big to show here.

tests/golden/types-value-cycles/modules.txtdeleted−1

This diff is too big to show here.

tests/golden/types-value-cycles/source.jibbdeleted−13

This diff is too big to show here.

tests/golden/types-value-cycles/tokens.txtdeleted−87

This diff is too big to show here.

tests/golden/types-value-cycles/tree.txtdeleted−39

This diff is too big to show here.

tests/golden/types-value-cycles/types.txtdeleted−44

This diff is too big to show here.

tests/importer/about.txt+2−52

This diff is too big to show here.

tests/importer/ford.txtdeleted−9

This diff is too big to show here.

tests/importer/mark-gate.txtdeleted−3

This diff is too big to show here.

tests/importer/mark-list.txtdeleted−5

This diff is too big to show here.

tests/importer/mark-recursive.txtdeleted−5

This diff is too big to show here.

tests/importer/mark.txtdeleted−5

This diff is too big to show here.

tests/importer/origin-first.txtdeleted−4

This diff is too big to show here.

tests/importer/origin-other.txtdeleted−4

This diff is too big to show here.

tests/importer/origin-transitive.txtdeleted−6

This diff is too big to show here.

tests/importer/shadow-static.txtdeleted−13

This diff is too big to show here.

tests/importer/shadow.txt−6

This diff is too big to show here.

tests/importer/small.txt−142

This diff is too big to show here.

tests/importer/tree.txt+2−188

This diff is too big to show here.

tests/lib/jibb-api-paths.hoondeleted−104

This diff is too big to show here.

tests/lib/jibb-bridge.hoon+2−128

This diff is too big to show here.

tests/lib/jibb-hole-guards.hoondeleted−77

This diff is too big to show here.

tests/lib/jibb-import-diagnostic.hoondeleted−59

This diff is too big to show here.

tests/lib/jibb-import.hoon+1−19

This diff is too big to show here.

tests/lib/jibb-list-alias-guards.hoondeleted−27

This diff is too big to show here.

tests/lib/jibb-mark-bridge.hoondeleted−28

This diff is too big to show here.

tests/lib/jibb-module-scope.hoondeleted−132

This diff is too big to show here.

tests/lib/jibb-poke-bridge.hoondeleted−88

This diff is too big to show here.

tests/lib/jibb-proj-guards.hoondeleted−124

This diff is too big to show here.

tests/lib/jibb-qath-fuel.hoondeleted−52

This diff is too big to show here.

tests/lib/jibb-qath-source.hoondeleted−34

This diff is too big to show here.

tests/lib/jibb-tlon-bridge.hoondeleted−29

This diff is too big to show here.

tests/lib/jibb.hoon+108−1786

This diff is too big to show here.

tests/type-api-paths/about.txtdeleted−3

This diff is too big to show here.

tests/type-api-paths/api.txtdeleted−13

This diff is too big to show here.

tests/type-api-paths/expected.txtdeleted−18

This diff is too big to show here.

tests/type-api-paths/missing-decl.txtdeleted−12

This diff is too big to show here.

tests/type-api-paths/poke-clash.txtdeleted−12

This diff is too big to show here.

tests/type-api-paths/scry-bad.txtdeleted−13

This diff is too big to show here.

tests/type-api-paths/scry.txtdeleted−13

This diff is too big to show here.

tests/type-api-paths/todo-action.txtdeleted−6

This diff is too big to show here.

tests/type-api-paths/todo-item.txtdeleted−6

This diff is too big to show here.

tests/type-api-paths/todo-sur.txtdeleted−12

This diff is too big to show here.

tests/type-api-paths/todo-update.txtdeleted−6

This diff is too big to show here.

tests/type-api-paths/todos.txtdeleted−6

This diff is too big to show here.

tests/type-api-paths/value-clash.txtdeleted−15

This diff is too big to show here.

tests/type-import-diagnostic/about.txtdeleted−15

This diff is too big to show here.

tests/type-import-diagnostic/expected.txtdeleted−112

This diff is too big to show here.

tests/type-import-diagnostic/mark.txtdeleted−5

This diff is too big to show here.

tests/type-import-diagnostic/nested.txtdeleted−11

This diff is too big to show here.

tests/type-import-diagnostic/source.txtdeleted−13

This diff is too big to show here.

tests/type-import-diagnostic/sur.txtdeleted−5

This diff is too big to show here.

tests/type-import/about.txt+7−29

This diff is too big to show here.

tests/type-import/expected.txt+3−133

This diff is too big to show here.

tests/type-import/source.txt−69

This diff is too big to show here.

tests/type-import/sur.txt+1−18

This diff is too big to show here.

tests/type-list-alias/expected.txtdeleted−36

This diff is too big to show here.

tests/type-mark/about.txtdeleted−7

This diff is too big to show here.

tests/type-mark/collision.txtdeleted−3

This diff is too big to show here.

tests/type-mark/declared.txtdeleted−2

This diff is too big to show here.

tests/type-mark/expected.txtdeleted−19

This diff is too big to show here.

tests/type-mark/missing.txtdeleted−1

This diff is too big to show here.

tests/type-mark/sur.txtdeleted−2

This diff is too big to show here.

tests/type-module-scope/about.txtdeleted−16

This diff is too big to show here.

tests/type-module-scope/expected.txtdeleted−67

This diff is too big to show here.

tests/type-poke/about.txtdeleted−7

This diff is too big to show here.

tests/type-poke/alias.txtdeleted−2

This diff is too big to show here.

tests/type-poke/api.txtdeleted−2

This diff is too big to show here.

tests/type-poke/client.txtdeleted−23

This diff is too big to show here.

tests/type-poke/direct.txtdeleted−2

This diff is too big to show here.

tests/type-poke/expected.txtdeleted−66

This diff is too big to show here.

tests/type-poke/exported.txtdeleted−9

This diff is too big to show here.

tests/type-poke/fake.txtdeleted−4

This diff is too big to show here.

tests/type-poke/impostor-client.txtdeleted−2

This diff is too big to show here.

tests/type-poke/impostor.txtdeleted−1

This diff is too big to show here.

tests/type-poke/inner.txtdeleted−2

This diff is too big to show here.

tests/type-poke/mark.txtdeleted−5

This diff is too big to show here.

tests/type-poke/public.txtdeleted−2

This diff is too big to show here.

tests/type-poke/transitive.txtdeleted−2

This diff is too big to show here.

tests/type-tlon/about.txtdeleted−6

This diff is too big to show here.

tests/type-tlon/expected.txtdeleted−6

This diff is too big to show here.

tests/type-tlon/source.txtdeleted−6

This diff is too big to show here.

tools/clay-fixtures+1−215

This diff is too big to show here.

tools/golden+19−158

This diff is too big to show here.

tools/golden_case.py−99

This diff is too big to show here.

tools/importer-test+2−11

This diff is too big to show here.

tools/ship+10−241

This diff is too big to show here.

tools/testdata/clay-fixtures-selftestdeleted−109

This diff is too big to show here.

tools/testdata/selftest−149

This diff is too big to show here.

tools/testdata/ship-selftest−217

This diff is too big to show here.

tools/type-api-paths-testdeleted−52

This diff is too big to show here.

tools/type-hole-guards-testdeleted−32

This diff is too big to show here.

tools/type-import-diagnostic-testdeleted−43

This diff is too big to show here.

tools/type-list-alias-testdeleted−33

This diff is too big to show here.

tools/type-mark-testdeleted−35

This diff is too big to show here.

tools/type-module-scope-testdeleted−40

This diff is too big to show here.

tools/type-poke-testdeleted−50

This diff is too big to show here.

tools/type-proj-guards-testdeleted−32

This diff is too big to show here.

tools/type-qath-guards-testdeleted−31

This diff is too big to show here.

tools/type-tlon-testdeleted−39

This diff is too big to show here.