packages feed

hydra-ext 0.18.0 → 0.18.1

raw patch · 4 files changed

+349/−209 lines, 4 filesdep ~hydra-kerneldep ~hydra-rdfPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: hydra-kernel, hydra-rdf

API changes (from Hackage documentation)

- Hydra.Ext.Azure.Dtld: SchemaComplexArray :: SchemaArray -> SchemaComplex
- Hydra.Ext.Azure.Dtld: SchemaComplexEnum :: SchemaEnum -> SchemaComplex
- Hydra.Ext.Azure.Dtld: SchemaComplexMap :: SchemaMap -> SchemaComplex
- Hydra.Ext.Azure.Dtld: SchemaComplexObject :: SchemaObject -> SchemaComplex
- Hydra.Ext.Azure.Dtld: SchemaComplex_ :: SchemaComplex -> Schema
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveBoolean :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveDate :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveDateTime :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveDouble :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveDuration :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveFloat :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveInteger :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveLong :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveString :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitiveTime :: SchemaPrimitive
- Hydra.Ext.Azure.Dtld: SchemaPrimitive_ :: SchemaPrimitive -> Schema
- Hydra.Ext.Azure.Dtld: _SchemaComplex :: Name
- Hydra.Ext.Azure.Dtld: _SchemaComplex_array :: Name
- Hydra.Ext.Azure.Dtld: _SchemaComplex_enum :: Name
- Hydra.Ext.Azure.Dtld: _SchemaComplex_map :: Name
- Hydra.Ext.Azure.Dtld: _SchemaComplex_object :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_boolean :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_date :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_dateTime :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_double :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_duration :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_float :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_integer :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_long :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_string :: Name
- Hydra.Ext.Azure.Dtld: _SchemaPrimitive_time :: Name
- Hydra.Ext.Azure.Dtld: data SchemaComplex
- Hydra.Ext.Azure.Dtld: data SchemaPrimitive
- Hydra.Ext.Azure.Dtld: instance GHC.Classes.Eq Hydra.Ext.Azure.Dtld.SchemaComplex
- Hydra.Ext.Azure.Dtld: instance GHC.Classes.Eq Hydra.Ext.Azure.Dtld.SchemaPrimitive
- Hydra.Ext.Azure.Dtld: instance GHC.Classes.Ord Hydra.Ext.Azure.Dtld.SchemaComplex
- Hydra.Ext.Azure.Dtld: instance GHC.Classes.Ord Hydra.Ext.Azure.Dtld.SchemaPrimitive
- Hydra.Ext.Azure.Dtld: instance GHC.Internal.Read.Read Hydra.Ext.Azure.Dtld.SchemaComplex
- Hydra.Ext.Azure.Dtld: instance GHC.Internal.Read.Read Hydra.Ext.Azure.Dtld.SchemaPrimitive
- Hydra.Ext.Azure.Dtld: instance GHC.Internal.Show.Show Hydra.Ext.Azure.Dtld.SchemaComplex
- Hydra.Ext.Azure.Dtld: instance GHC.Internal.Show.Show Hydra.Ext.Azure.Dtld.SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaComplexArray :: TypedTerm SchemaArray -> TypedTerm SchemaComplex
- Hydra.Ext.Dsl.Azure.Dtld: schemaComplexEnum :: TypedTerm SchemaEnum -> TypedTerm SchemaComplex
- Hydra.Ext.Dsl.Azure.Dtld: schemaComplexMap :: TypedTerm SchemaMap -> TypedTerm SchemaComplex
- Hydra.Ext.Dsl.Azure.Dtld: schemaComplexObject :: TypedTerm SchemaObject -> TypedTerm SchemaComplex
- Hydra.Ext.Dsl.Azure.Dtld: schemaComplexSchemaComplex :: TypedName SchemaComplex
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveBoolean :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveDate :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveDateTime :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveDouble :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveDuration :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveFloat :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveInteger :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveLong :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveSchemaPrimitive :: TypedName SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveString :: TypedTerm SchemaPrimitive
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitiveTime :: TypedTerm SchemaPrimitive
+ Hydra.Ext.Azure.Dtld: ComplexSchemaArray :: SchemaArray -> ComplexSchema
+ Hydra.Ext.Azure.Dtld: ComplexSchemaEnum :: SchemaEnum -> ComplexSchema
+ Hydra.Ext.Azure.Dtld: ComplexSchemaMap :: SchemaMap -> ComplexSchema
+ Hydra.Ext.Azure.Dtld: ComplexSchemaObject :: SchemaObject -> ComplexSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaBoolean :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaDate :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaDateTime :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaDouble :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaDuration :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaFloat :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaInteger :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaLong :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaString :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: PrimitiveSchemaTime :: PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: SchemaComplex :: ComplexSchema -> Schema
+ Hydra.Ext.Azure.Dtld: SchemaPrimitive :: PrimitiveSchema -> Schema
+ Hydra.Ext.Azure.Dtld: _ComplexSchema :: Name
+ Hydra.Ext.Azure.Dtld: _ComplexSchema_array :: Name
+ Hydra.Ext.Azure.Dtld: _ComplexSchema_enum :: Name
+ Hydra.Ext.Azure.Dtld: _ComplexSchema_map :: Name
+ Hydra.Ext.Azure.Dtld: _ComplexSchema_object :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_boolean :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_date :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_dateTime :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_double :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_duration :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_float :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_integer :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_long :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_string :: Name
+ Hydra.Ext.Azure.Dtld: _PrimitiveSchema_time :: Name
+ Hydra.Ext.Azure.Dtld: data ComplexSchema
+ Hydra.Ext.Azure.Dtld: data PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Classes.Eq Hydra.Ext.Azure.Dtld.ComplexSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Classes.Eq Hydra.Ext.Azure.Dtld.PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Classes.Ord Hydra.Ext.Azure.Dtld.ComplexSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Classes.Ord Hydra.Ext.Azure.Dtld.PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Internal.Read.Read Hydra.Ext.Azure.Dtld.ComplexSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Internal.Read.Read Hydra.Ext.Azure.Dtld.PrimitiveSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Internal.Show.Show Hydra.Ext.Azure.Dtld.ComplexSchema
+ Hydra.Ext.Azure.Dtld: instance GHC.Internal.Show.Show Hydra.Ext.Azure.Dtld.PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: complexSchemaArray :: TypedTerm SchemaArray -> TypedTerm ComplexSchema
+ Hydra.Ext.Dsl.Azure.Dtld: complexSchemaComplexSchema :: TypedName ComplexSchema
+ Hydra.Ext.Dsl.Azure.Dtld: complexSchemaEnum :: TypedTerm SchemaEnum -> TypedTerm ComplexSchema
+ Hydra.Ext.Dsl.Azure.Dtld: complexSchemaMap :: TypedTerm SchemaMap -> TypedTerm ComplexSchema
+ Hydra.Ext.Dsl.Azure.Dtld: complexSchemaObject :: TypedTerm SchemaObject -> TypedTerm ComplexSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaBoolean :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaDate :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaDateTime :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaDouble :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaDuration :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaFloat :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaInteger :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaLong :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaPrimitiveSchema :: TypedName PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaString :: TypedTerm PrimitiveSchema
+ Hydra.Ext.Dsl.Azure.Dtld: primitiveSchemaTime :: TypedTerm PrimitiveSchema
- Hydra.Ext.Dsl.Azure.Dtld: schemaComplex :: TypedTerm SchemaComplex -> TypedTerm Schema
+ Hydra.Ext.Dsl.Azure.Dtld: schemaComplex :: TypedTerm ComplexSchema -> TypedTerm Schema
- Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitive :: TypedTerm SchemaPrimitive -> TypedTerm Schema
+ Hydra.Ext.Dsl.Azure.Dtld: schemaPrimitive :: TypedTerm PrimitiveSchema -> TypedTerm Schema

Files

CHANGELOG.md view
@@ -15,6 +15,144 @@  --- +## [0.18.1] - 2026-11-20++Textual-sources release: the whole `hydra-kernel` is now authored as textual `.hydra` files, including the+primitive library `hydra.core.lib.*`, and the textual syntax gains the sugar, parsers, and tooling needed to carry it.+Also lands translingual tail-call optimization for the Scala and TypeScript coders, named provisions and+primitive parameter names, the property-graph encoding of term graphs, and a large body of host-specific bootstrap+and CI fixes.++### Breaking changes++- **Type renames** ([#837](https://github.com/CategoricalData/hydra/issues/837)): four types whose variant names clashed with other kernel types are renamed.+  Any code, JSON, or `.hydra` text that names them must be updated.+  - `hydra.core.regex.QuantifierRange` is now `hydra.core.regex.Range`.+  - `hydra.ext.azure.dtld.SchemaPrimitive` is now `PrimitiveSchema`, and `SchemaComplex` is now `ComplexSchema`.+  - `hydra.rust.syntax.TypePath` is now `PathType`.+- **New primitive signature syntax in `.hydra`** ([#837](https://github.com/CategoricalData/hydra/issues/837)): a `primitive` definition names its parameters,+  `primitive ifElse ∀x.(p: boolean, t: lazy x, f: lazy x) : x`, instead of the old arrow chain+  (`primitive ifElse : ∀t. boolean → lazy t → lazy t → t`).+  Parameter and result descriptions move into `@param` and `@return` doc lines.+  The arrow-chain form is for `term` signatures only.+- **Raw `case` keyword is now `cases`** ([#810](https://github.com/CategoricalData/hydra/issues/810)): the textual-syntax case statement keyword matches `Term.cases`.+- **`hydra.core.json.bootstrap` is now `hydra.core.bootstrap`** ([#791](https://github.com/CategoricalData/hydra/issues/791)).+- **`and` and `or` are lazy in their second operand** ([#802](https://github.com/CategoricalData/hydra/issues/802)): both are marked lazy, mirroring `ifElse`, and the+  Java and Python hosts add thunk-accepting overloads.++### Highlights++- **The whole kernel is `.hydra`-sourced** ([#837](https://github.com/CategoricalData/hydra/issues/837), [#711](https://github.com/CategoricalData/hydra/issues/711), [#710](https://github.com/CategoricalData/hydra/issues/710), [#497](https://github.com/CategoricalData/hydra/issues/497)):+  every `hydra-kernel` module, including all `hydra.core.lib.*` primitive modules and the test modules, is sourced from+  `packages/hydra-kernel/src/main/hydra/**/*.hydra`; Phase 1 reads that text instead of the Haskell DSL.+  The Haskell DSL modules remain as a twin that must stay byte-identical (the dual-edit rule).+  `bin/verify-hydra-sources.sh` is the identity guard (it is not run by CI),+  and `heads/haskell/bin/print-hydra-sources.sh` regenerates the text from the DSL.+  A package may textually source only modules it owns.+- **Named primitive parameters** ([#837](https://github.com/CategoricalData/hydra/issues/837)): all 292 primitives print with named parameters and `@param`/`@return`+  descriptions, carried through the kernel metadata.+- **`parseModules`** ([#842](https://github.com/CategoricalData/hydra/issues/842)): `hydra.core.parse.packaging.parseModules` reads `.hydra` text into modules and is the+  supported entry point for downstream code generation from textual sources+  (see `docs/recipes/downstream-codegen.md`).+- **Kernel JSON on the classpath** ([#786](https://github.com/CategoricalData/hydra/issues/786)): the published `hydra-kernel` jar bundles the kernel's JSON modules, so+  Java downstream projects no longer need a source checkout to load the kernel.+- **Tail-call optimization on more hosts** ([#709](https://github.com/CategoricalData/hydra/issues/709)): shared `TcoLoopPlan`/`TcoStep` kernel types and a+  `lowerSelfTailRecursion` pass, consumed by the new Scala (`@tailrec`) and TypeScript lowerings.+- **Named provisions** ([#725](https://github.com/CategoricalData/hydra/issues/725)): primitives and tests carry named requirements and recommendations,+  spec prose is ported into module and primitive metadata, and the generated spec pages render comments and lifecycle.+- **Term graphs as property graphs** ([#738](https://github.com/CategoricalData/hydra/issues/738)): `hydra.pg.subtermGraph` encodes a term graph as a property graph,+  with specification pages (`docs/specification/pg/subterm-graph.md`).++### New features++- **Textual syntax sugar** ([#809](https://github.com/CategoricalData/hydra/issues/809), [#811](https://github.com/CategoricalData/hydra/issues/811)): nominal construction and elimination sugar+  (`record`/`inject`/`wrap {...}`, `project`/`unwrap [...]`), applied `case` sugar, and monadic `do` blocks+  (`do either`, `do list`, `do optional`, `do effect`).+- **Source spans** ([#815](https://github.com/CategoricalData/hydra/issues/815)): the parsers track source offsets and record term spans through the new+  `hydra.core.positions` module; spans are round-trip-exempt surface trivia.+- **Parsers and printers** ([#710](https://github.com/CategoricalData/hydra/issues/710), [#497](https://github.com/CategoricalData/hydra/issues/497)): `hydra.core.parse.core` (term, type, and type scheme parser),+  parse/print for packaging, doc-comment parsing into `EntityMetadata`, and `line:col` parse errors.+  A signature-level `lazy` keyword round-trips `Parameter.isLazy` ([#800](https://github.com/CategoricalData/hydra/issues/800)),+  and raw `cases(...)` accepts the `_` default field ([#822](https://github.com/CategoricalData/hydra/issues/822)).+- **JSON** ([#776](https://github.com/CategoricalData/hydra/issues/776), [#777](https://github.com/CategoricalData/hydra/issues/777)): `JsonWriterOptions` and `printJsonWith` for configurable JSON layout,+  and `\uXXXX` escapes with surrogate pairs in the JSON parser.+- **Error printers** ([#778](https://github.com/CategoricalData/hydra/issues/778)): real printers for inference and extraction errors replace placeholder constants.+- **Spec generator** ([#723](https://github.com/CategoricalData/hydra/issues/723)): the `hydra.RegenerateSpec` driver and `bin/regenerate-spec.sh` now exist,+  and the module-reference pages under `docs/specification/` are generated by them.+  The module reference is still partial (only the primitives and four kernel type modules are covered).+  Primitive pages show named signatures (`isAlpha(char: int32) → boolean`) with Parameters and Returns entries,+  type pages list fields and variants, and headings use local names so in-page links work.+- **Build system in Hydra** ([#788](https://github.com/CategoricalData/hydra/issues/788)): the lib-pass partition (`isLibModule`, `partitionLibModules`) moves into the+  translingual `hydra.build.modules`, consumed by the Java, Scala, and Haskell drivers.+- **Bootstrap matrix** ([#769](https://github.com/CategoricalData/hydra/issues/769)): `docs/bootstrap-matrix.md` persists the N×N cross-host generation matrix.+- **Build slot tooling** ([#730](https://github.com/CategoricalData/hydra/issues/730), [#814](https://github.com/CategoricalData/hydra/issues/814)): `with-stack-slot.sh` gains a second lane, priorities, pinning, and a memory guard,+  and scripts that run bare `stack` re-exec under it.+- **CI** ([#821](https://github.com/CategoricalData/hydra/issues/821), [#700](https://github.com/CategoricalData/hydra/issues/700)): an inference-cost guard (time and peak memory) and a dedicated haskell-tests job.++### Bug fixes++- [#799](https://github.com/CategoricalData/hydra/issues/799): shadow-renaming of variables was decoupled across three layers (`unshadowVariables`,+  `analyzeFunctionTermWithGather`, the Java coder's `dedupBindings`).+- [#803](https://github.com/CategoricalData/hydra/issues/803), [#804](https://github.com/CategoricalData/hydra/issues/804), [#805](https://github.com/CategoricalData/hydra/issues/805): printed import aliases and bare names now round-trip.+- [#798](https://github.com/CategoricalData/hydra/issues/798): a `Term.variable` encodes and decodes as `{"@var": "name"}` at any JSON position.+- [#817](https://github.com/CategoricalData/hydra/issues/817): `printFloat32`/`printFloat64` for subnormals in the Common Lisp, Emacs Lisp, and Clojure hosts.+- [#779](https://github.com/CategoricalData/hydra/issues/779): the Python coder no longer breaks on nested module names.+- [#752](https://github.com/CategoricalData/hydra/issues/752): `PropertyType.required` was hardcoded to true.+- [#751](https://github.com/CategoricalData/hydra/issues/751), [#832](https://github.com/CategoricalData/hydra/issues/832), [#838](https://github.com/CategoricalData/hydra/issues/838): the SHACL serializer emits blank nodes for anonymous shape references, RDF lists for+  `sh:in`/`sh:and`/`sh:or`/`sh:xone`, definition references under `sh:node`/`sh:not`/`sh:and`/`sh:or`/`sh:xone`,+  and qualified value shapes with their counts.+- [#754](https://github.com/CategoricalData/hydra/issues/754): IRI strings are escaped in the rdf4j serializer.+- [#748](https://github.com/CategoricalData/hydra/issues/748), [#781](https://github.com/CategoricalData/hydra/issues/781): `inferInGraphContext` routes through the discharge-and-finalize tail, and+  `inferModules` seeds its graph from both universe and target modules.+- [#764](https://github.com/CategoricalData/hydra/issues/764): `refreshModule` fails loudly on dropped bindings; binding dedup and primitive shadowing are fixed.+- [#649](https://github.com/CategoricalData/hydra/issues/649): the Python coder merges a type and a term that share a module path.+- [#780](https://github.com/CategoricalData/hydra/issues/780): generated Javadoc escapes backslashes and `*/`.+- [#782](https://github.com/CategoricalData/hydra/issues/782): simple Unicode case mapping on the Common Lisp and Emacs Lisp hosts.+- [#775](https://github.com/CategoricalData/hydra/issues/775): `mapSet` is unregistered on hosts that never implemented it.+- [#289](https://github.com/CategoricalData/hydra/issues/289), [#762](https://github.com/CategoricalData/hydra/issues/762), [#801](https://github.com/CategoricalData/hydra/issues/801): stale post-rename paths in the Go overlay imports, the TypeScript bootstrap driver,+  and the Common Lisp and Emacs Lisp test loaders.+- [#741](https://github.com/CategoricalData/hydra/issues/741), [#747](https://github.com/CategoricalData/hydra/issues/747), [#757](https://github.com/CategoricalData/hydra/issues/757), [#771](https://github.com/CategoricalData/hydra/issues/771), [#787](https://github.com/CategoricalData/hydra/issues/787), [#823](https://github.com/CategoricalData/hydra/issues/823), [#831](https://github.com/CategoricalData/hydra/issues/831): sync and cold-seed fixes+  (target assembly order, `hostOverrides` immunity, overlay hashing in the freshness gate, downstream assembly after+  overlay re-apply, the generator stamp's coder-copy component).+- [#736](https://github.com/CategoricalData/hydra/issues/736): CI pins JDK 11 for the Haskell job after `ubuntu-latest` moved to JDK 25.+- [#755](https://github.com/CategoricalData/hydra/issues/755): effects fixes (Type.effect encoder arms, Python `map_list`, Emacs Lisp loading).+- [#812](https://github.com/CategoricalData/hydra/issues/812): the Clojure/Scheme `testEnv` redirect applies to generated test trees only.+- [#768](https://github.com/CategoricalData/hydra/issues/768): the cold-seed driver step fails fast when its local fallback cannot succeed.+- [#825](https://github.com/CategoricalData/hydra/issues/825): `dist/haskell/hydra-kernel` is reseeded when stale relative to `dist/json`.+- [#839](https://github.com/CategoricalData/hydra/issues/839): the assemble freshness gate refreshes a stale input digest after a rebase instead of failing, and never rewrites a current one.+- [#826](https://github.com/CategoricalData/hydra/issues/826): Lisp coders reference nullary effect primitives by call.+- [#827](https://github.com/CategoricalData/hydra/issues/827): overlay variant-order tables are checked against `model.json`.+- [#772](https://github.com/CategoricalData/hydra/issues/772), [#756](https://github.com/CategoricalData/hydra/issues/756): several silent failures in the sync scripts and vitest/Scala drivers now fail loudly.++### Improvements++- Python DSL phantom types are threaded through combinator signatures ([#731](https://github.com/CategoricalData/hydra/issues/731), [#732](https://github.com/CategoricalData/hydra/issues/732), [#818](https://github.com/CategoricalData/hydra/issues/818)).+- Hackage and PyPI batch publish sets are derived from the package registry ([#573](https://github.com/CategoricalData/hydra/issues/573), [#577](https://github.com/CategoricalData/hydra/issues/577)).+- Pre-existing namespace leftovers from the 0.18.0 rename are cleaned up in Lisp, Scala, TypeScript, and Java bootstrap+  drivers ([#767](https://github.com/CategoricalData/hydra/issues/767), [#729](https://github.com/CategoricalData/hydra/issues/729)).+- `/bootstrap`, `/sync-default`, `/test`, and the pre-push gate default to Java and Python, with Haskell opt-in+  ([#773](https://github.com/CategoricalData/hydra/issues/773)); the bootstrap demo holds the build slot only for its own `stack` calls ([#797](https://github.com/CategoricalData/hydra/issues/797)).+- `bin/sync.sh` prints per-phase timing ([#824](https://github.com/CategoricalData/hydra/issues/824)), and the CI Haskell job is split to stay within the runner time limit.+- `with-stack-slot.sh` fails fast on low disk before a build ([#789](https://github.com/CategoricalData/hydra/issues/789)).+- `bin/verify-hydra-sources.sh --dsl` runs the dual-edit guard in reverse, regenerating from the Haskell DSL twins and+  comparing with the committed JSON ([#837](https://github.com/CategoricalData/hydra/issues/837)).+- `docs/hydra-lexicon.txt` prints primitives with named parameters, matching the generated spec pages+  ([#723](https://github.com/CategoricalData/hydra/issues/723)).++### Documentation++- `docs/specification/syntax.md` gains the module-level grammar, doc comments, import aliasing, file layout,+  `@param`/`@return`, and the named-parameter primitive signature.+- The kernel README, `docs/implementation.md`, `docs/build-system.md`, and the test and primitive recipes describe the+  `.hydra` sources and the dual-edit rule.+- The hand-written primitive spec pages use the `hydra.core.lib.*` namespace.+- Recipes and READMEs document the decoder/encoder fixpoint guard ([#760](https://github.com/CategoricalData/hydra/issues/760)), keeping derived modules out of+  re-inference ([#758](https://github.com/CategoricalData/hydra/issues/758)), the hydra-ext coder testing pattern ([#699](https://github.com/CategoricalData/hydra/issues/699)), scripts with no automated caller+  ([#714](https://github.com/CategoricalData/hydra/issues/714)), overlay-versus-prune ordering ([#645](https://github.com/CategoricalData/hydra/issues/645)), the Phase 1 memory envelope ([#592](https://github.com/CategoricalData/hydra/issues/592)),+  and the Rust coder's home in `hydra-rust` ([#382](https://github.com/CategoricalData/hydra/issues/382)).++---+ ## [0.18.0] - 2026-09-29  Module-naming systematization release: every kernel and package module moves onto a uniform@@ -48,9 +186,11 @@   JSON-Schema/Avro/GraphQL/GraphSON/Protobuf coders (extended integer widths, map-key handling), the   kernel's encode/decode generators (reversed type-parameter order on 2+-param polymorphic types), and   the Python coder (silently dropping a module's types when types and terms share a file path).-- **Self-hosted specification docs** ([#723](https://github.com/CategoricalData/hydra/issues/723)):-  the module-reference pages under `docs/specification/` are now generated directly from the kernel-  (`bin/regenerate-spec.sh`) via a new metadata-only doc coder, rather than hand-maintained.+- **Specification-docs generator, kernel side** ([#723](https://github.com/CategoricalData/hydra/issues/723)):+  a new metadata-only doc coder (`generateModuleDoc`) and `hydra.markdown` model, the translingual core+  for generating the module-reference pages under `docs/specification/`. *Erratum:* the Java driver that+  `bin/regenerate-spec.sh` invokes (`hydra.RegenerateSpec`) did not ship in 0.18.0, so the pages are still+  hand-maintained; the driver is pending under #723.  ### New features @@ -58,7 +198,7 @@   suite covering the minimal-core grammar (literals, classes, quantifiers, alternation, anchors,   grouping) across all 9 hosts. - **[#723](https://github.com/CategoricalData/hydra/issues/723)** `hydra.markdown` type module and-  `generateModuleDoc`, the metadata-only doc coder backing the self-generated spec pages.+  `generateModuleDoc`, the metadata-only doc coder intended to back self-generated spec pages. - **[#382](https://github.com/CategoricalData/hydra/issues/382)** the Rust coder is split out of   `hydra-ext` into its own first-class `hydra-rust` package. 
hydra-ext.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           hydra-ext-version:        0.18.0+version:        0.18.1 synopsis:       Hydra extensions: additional coders and schema integrations description:    Hydra is an implementation of the LambdaGraph data model, which takes advantage of an isomorphism between labeled hypergraphs and typed lambda calculus: in Hydra, "graphs are programs, and programs are graphs". Various extensions to Hydra category:       Data@@ -110,7 +110,7 @@       base >=4.19.0 && <4.22     , bytestring >=0.11.5 && <0.13     , containers >=0.6.7 && <0.8-    , hydra-kernel ==0.18.0-    , hydra-rdf ==0.18.0+    , hydra-kernel ==0.18.1+    , hydra-rdf ==0.18.1     , scientific >=0.3.7 && <0.4   default-language: Haskell2010
src/main/haskell/Hydra/Ext/Azure/Dtld.hs view
@@ -101,6 +101,24 @@  _CommandType_asynchronous = Model.Name "asynchronous" +-- | Complex schemas are designed for supporting complex data types made up of primitive data types. Currently the following complex schemas are provided: Array, Enum, Map, and Object. A complex schema can be specified directly as the value in a schema statement or described in the interface schemas set and referenced in the schema statement.+data ComplexSchema =+  ComplexSchemaArray SchemaArray |+  ComplexSchemaEnum SchemaEnum |+  ComplexSchemaMap SchemaMap |+  ComplexSchemaObject SchemaObject+  deriving (Eq, Ord, Read, Show)++_ComplexSchema = Model.Name "hydra.ext.azure.dtld.ComplexSchema"++_ComplexSchema_array = Model.Name "array"++_ComplexSchema_enum = Model.Name "enum"++_ComplexSchema_map = Model.Name "map"++_ComplexSchema_object = Model.Name "object"+ -- | Components enable interfaces to be composed of other interfaces. Components are different from relationships because they describe contents that are directly part of the interface. (A relationship describes a link between two interfaces.) data Component =   Component {@@ -352,6 +370,52 @@  _MapValue_displayName = Model.Name "displayName" +-- | A full set of primitive data types are provided and can be specified directly as the value in a schema statement in a digital twin interface.+data PrimitiveSchema =+  -- | A boolean value+  PrimitiveSchemaBoolean |+  -- | A full-date as defined in section 5.6 of RFC 3339+  PrimitiveSchemaDate |+  -- | A date-time as defined in RFC 3339+  PrimitiveSchemaDateTime |+  -- | An IEEE 8-byte floating point+  PrimitiveSchemaDouble |+  -- | A duration in ISO 8601 format+  PrimitiveSchemaDuration |+  -- | An IEEE 4-byte floating point+  PrimitiveSchemaFloat |+  -- | A signed 4-byte integer+  PrimitiveSchemaInteger |+  -- | A signed 8-byte integer+  PrimitiveSchemaLong |+  -- | A UTF8 string+  PrimitiveSchemaString |+  -- | A full-time as defined in section 5.6 of RFC 3339+  PrimitiveSchemaTime+  deriving (Eq, Ord, Read, Show)++_PrimitiveSchema = Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"++_PrimitiveSchema_boolean = Model.Name "boolean"++_PrimitiveSchema_date = Model.Name "date"++_PrimitiveSchema_dateTime = Model.Name "dateTime"++_PrimitiveSchema_double = Model.Name "double"++_PrimitiveSchema_duration = Model.Name "duration"++_PrimitiveSchema_float = Model.Name "float"++_PrimitiveSchema_integer = Model.Name "integer"++_PrimitiveSchema_long = Model.Name "long"++_PrimitiveSchema_string = Model.Name "string"++_PrimitiveSchema_time = Model.Name "time"+ -- | A Property describes the read-only and read/write state of any digital twin. For example, a device serial number may be a read-only property, the desired temperature on a thermostat may be a read-write property; and the name of a room may be a read-write property. data Property =   Property {@@ -448,8 +512,8 @@  -- | Schemas are used to describe the on-the-wire or serialized format of the data in a digital twin interface. A full set of primitive data types are provided, along with support for a variety of complex schemas in the forms of Arrays, Enums, Maps, and Objects. Schemas described through digital twin's schema definition language are compatible with popular serialization formats, including JSON, Avro, and Protobuf. data Schema =-  SchemaPrimitive_ SchemaPrimitive |-  SchemaComplex_ SchemaComplex+  SchemaPrimitive PrimitiveSchema |+  SchemaComplex ComplexSchema   deriving (Eq, Ord, Read, Show)  _Schema = Model.Name "hydra.ext.azure.dtld.Schema"@@ -489,24 +553,6 @@  _SchemaArray_displayName = Model.Name "displayName" --- | Complex schemas are designed for supporting complex data types made up of primitive data types. Currently the following complex schemas are provided: Array, Enum, Map, and Object. A complex schema can be specified directly as the value in a schema statement or described in the interface schemas set and referenced in the schema statement.-data SchemaComplex =-  SchemaComplexArray SchemaArray |-  SchemaComplexEnum SchemaEnum |-  SchemaComplexMap SchemaMap |-  SchemaComplexObject SchemaObject-  deriving (Eq, Ord, Read, Show)--_SchemaComplex = Model.Name "hydra.ext.azure.dtld.SchemaComplex"--_SchemaComplex_array = Model.Name "array"--_SchemaComplex_enum = Model.Name "enum"--_SchemaComplex_map = Model.Name "map"--_SchemaComplex_object = Model.Name "object"- -- | An Enum describes a data type with a set of named labels that map to values. The values in an Enum can be either integers or strings, but the labels are always strings. data SchemaEnum =   SchemaEnum {@@ -652,52 +698,6 @@ _SchemaObject_description = Model.Name "description"  _SchemaObject_displayName = Model.Name "displayName"---- | A full set of primitive data types are provided and can be specified directly as the value in a schema statement in a digital twin interface.-data SchemaPrimitive =-  -- | A boolean value-  SchemaPrimitiveBoolean |-  -- | A full-date as defined in section 5.6 of RFC 3339-  SchemaPrimitiveDate |-  -- | A date-time as defined in RFC 3339-  SchemaPrimitiveDateTime |-  -- | An IEEE 8-byte floating point-  SchemaPrimitiveDouble |-  -- | A duration in ISO 8601 format-  SchemaPrimitiveDuration |-  -- | An IEEE 4-byte floating point-  SchemaPrimitiveFloat |-  -- | A signed 4-byte integer-  SchemaPrimitiveInteger |-  -- | A signed 8-byte integer-  SchemaPrimitiveLong |-  -- | A UTF8 string-  SchemaPrimitiveString |-  -- | A full-time as defined in section 5.6 of RFC 3339-  SchemaPrimitiveTime-  deriving (Eq, Ord, Read, Show)--_SchemaPrimitive = Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"--_SchemaPrimitive_boolean = Model.Name "boolean"--_SchemaPrimitive_date = Model.Name "date"--_SchemaPrimitive_dateTime = Model.Name "dateTime"--_SchemaPrimitive_double = Model.Name "double"--_SchemaPrimitive_duration = Model.Name "duration"--_SchemaPrimitive_float = Model.Name "float"--_SchemaPrimitive_integer = Model.Name "integer"--_SchemaPrimitive_long = Model.Name "long"--_SchemaPrimitive_string = Model.Name "string"--_SchemaPrimitive_time = Model.Name "time"  -- | Telemetry describes the data emitted by any digital twin, whether the data is a regular stream of sensor readings or a computed stream of data, such as occupancy, or an occasional error or information message. data Telemetry =
src/main/haskell/Hydra/Ext/Dsl/Azure/Dtld.hs view
@@ -1100,6 +1100,46 @@               Model.projectionFieldName = (Model.Name "response")})),             Model.applicationArgument = (Typed.unTypedTerm original)}))}]})) +-- | DSL injection for the array variant of hydra.ext.azure.dtld.ComplexSchema+complexSchemaArray :: Typed.TypedTerm Dtld.SchemaArray -> Typed.TypedTerm Dtld.ComplexSchema+complexSchemaArray x =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.ComplexSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "array"),+        Model.fieldTerm = (Typed.unTypedTerm x)}}))++-- | DSL name token for hydra.ext.azure.dtld.ComplexSchema+complexSchemaComplexSchema :: Typed.TypedName Dtld.ComplexSchema+complexSchemaComplexSchema = Typed.TypedName (Model.Name "hydra.ext.azure.dtld.ComplexSchema")++-- | DSL injection for the enum variant of hydra.ext.azure.dtld.ComplexSchema+complexSchemaEnum :: Typed.TypedTerm Dtld.SchemaEnum -> Typed.TypedTerm Dtld.ComplexSchema+complexSchemaEnum x =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.ComplexSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "enum"),+        Model.fieldTerm = (Typed.unTypedTerm x)}}))++-- | DSL injection for the map variant of hydra.ext.azure.dtld.ComplexSchema+complexSchemaMap :: Typed.TypedTerm Dtld.SchemaMap -> Typed.TypedTerm Dtld.ComplexSchema+complexSchemaMap x =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.ComplexSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "map"),+        Model.fieldTerm = (Typed.unTypedTerm x)}}))++-- | DSL injection for the object variant of hydra.ext.azure.dtld.ComplexSchema+complexSchemaObject :: Typed.TypedTerm Dtld.SchemaObject -> Typed.TypedTerm Dtld.ComplexSchema+complexSchemaObject x =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.ComplexSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "object"),+        Model.fieldTerm = (Typed.unTypedTerm x)}}))+ -- | DSL constructor for hydra.ext.azure.dtld.Component component :: Typed.TypedTerm Dtld.Iri -> Typed.TypedTerm String -> Typed.TypedTerm Dtld.Interface -> Typed.TypedTerm (Maybe Dtld.Dtmi) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm Dtld.Component component type_ name schema id comment description displayName =@@ -3777,6 +3817,100 @@               Model.projectionFieldName = (Model.Name "displayName")})),             Model.applicationArgument = (Typed.unTypedTerm original)}))}]})) +-- | DSL injection for the boolean variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaBoolean :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaBoolean =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "boolean"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the date variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaDate :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaDate =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "date"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the dateTime variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaDateTime :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaDateTime =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "dateTime"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the double variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaDouble :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaDouble =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "double"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the duration variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaDuration :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaDuration =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "duration"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the float variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaFloat :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaFloat =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "float"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the integer variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaInteger :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaInteger =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "integer"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the long variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaLong :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaLong =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "long"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL name token for hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaPrimitiveSchema :: Typed.TypedName Dtld.PrimitiveSchema+primitiveSchemaPrimitiveSchema = Typed.TypedName (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema")++-- | DSL injection for the string variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaString :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaString =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "string"),+        Model.fieldTerm = Model.TermUnit}}))++-- | DSL injection for the time variant of hydra.ext.azure.dtld.PrimitiveSchema+primitiveSchemaTime :: Typed.TypedTerm Dtld.PrimitiveSchema+primitiveSchemaTime =+    Typed.TypedTerm (Model.TermInject (Model.Injection {+      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.PrimitiveSchema"),+      Model.injectionField = Model.Field {+        Model.fieldName = (Model.Name "time"),+        Model.fieldTerm = Model.TermUnit}}))+ -- | DSL constructor for hydra.ext.azure.dtld.Property property :: Typed.TypedTerm Dtld.Iri -> Typed.TypedTerm String -> Typed.TypedTerm Dtld.Schema -> Typed.TypedTerm (Maybe Dtld.Dtmi) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe Dtld.Unit) -> Typed.TypedTerm (Maybe Bool) -> Typed.TypedTerm Dtld.Property property type_ name schema id comment description displayName unit writable =@@ -5867,7 +6001,7 @@             Model.applicationArgument = (Typed.unTypedTerm original)}))}]}))  -- | DSL injection for the complex variant of hydra.ext.azure.dtld.Schema-schemaComplex :: Typed.TypedTerm Dtld.SchemaComplex -> Typed.TypedTerm Dtld.Schema+schemaComplex :: Typed.TypedTerm Dtld.ComplexSchema -> Typed.TypedTerm Dtld.Schema schemaComplex x =     Typed.TypedTerm (Model.TermInject (Model.Injection {       Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.Schema"),@@ -5875,46 +6009,6 @@         Model.fieldName = (Model.Name "complex"),         Model.fieldTerm = (Typed.unTypedTerm x)}})) --- | DSL injection for the array variant of hydra.ext.azure.dtld.SchemaComplex-schemaComplexArray :: Typed.TypedTerm Dtld.SchemaArray -> Typed.TypedTerm Dtld.SchemaComplex-schemaComplexArray x =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaComplex"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "array"),-        Model.fieldTerm = (Typed.unTypedTerm x)}}))---- | DSL injection for the enum variant of hydra.ext.azure.dtld.SchemaComplex-schemaComplexEnum :: Typed.TypedTerm Dtld.SchemaEnum -> Typed.TypedTerm Dtld.SchemaComplex-schemaComplexEnum x =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaComplex"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "enum"),-        Model.fieldTerm = (Typed.unTypedTerm x)}}))---- | DSL injection for the map variant of hydra.ext.azure.dtld.SchemaComplex-schemaComplexMap :: Typed.TypedTerm Dtld.SchemaMap -> Typed.TypedTerm Dtld.SchemaComplex-schemaComplexMap x =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaComplex"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "map"),-        Model.fieldTerm = (Typed.unTypedTerm x)}}))---- | DSL injection for the object variant of hydra.ext.azure.dtld.SchemaComplex-schemaComplexObject :: Typed.TypedTerm Dtld.SchemaObject -> Typed.TypedTerm Dtld.SchemaComplex-schemaComplexObject x =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaComplex"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "object"),-        Model.fieldTerm = (Typed.unTypedTerm x)}}))---- | DSL name token for hydra.ext.azure.dtld.SchemaComplex-schemaComplexSchemaComplex :: Typed.TypedName Dtld.SchemaComplex-schemaComplexSchemaComplex = Typed.TypedName (Model.Name "hydra.ext.azure.dtld.SchemaComplex")- -- | DSL constructor for hydra.ext.azure.dtld.SchemaEnum schemaEnum :: Typed.TypedTerm Dtld.Iri -> Typed.TypedTerm [Dtld.EnumValue] -> Typed.TypedTerm Dtld.IntegerOrString -> Typed.TypedTerm (Maybe Dtld.Dtmi) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm (Maybe String) -> Typed.TypedTerm Dtld.SchemaEnum schemaEnum type_ enumValues valueSchema id comment description displayName =@@ -7488,107 +7582,13 @@             Model.applicationArgument = (Typed.unTypedTerm original)}))}]}))  -- | DSL injection for the primitive variant of hydra.ext.azure.dtld.Schema-schemaPrimitive :: Typed.TypedTerm Dtld.SchemaPrimitive -> Typed.TypedTerm Dtld.Schema+schemaPrimitive :: Typed.TypedTerm Dtld.PrimitiveSchema -> Typed.TypedTerm Dtld.Schema schemaPrimitive x =     Typed.TypedTerm (Model.TermInject (Model.Injection {       Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.Schema"),       Model.injectionField = Model.Field {         Model.fieldName = (Model.Name "primitive"),         Model.fieldTerm = (Typed.unTypedTerm x)}}))---- | DSL injection for the boolean variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveBoolean :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveBoolean =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "boolean"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the date variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveDate :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveDate =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "date"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the dateTime variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveDateTime :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveDateTime =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "dateTime"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the double variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveDouble :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveDouble =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "double"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the duration variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveDuration :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveDuration =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "duration"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the float variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveFloat :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveFloat =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "float"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the integer variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveInteger :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveInteger =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "integer"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the long variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveLong :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveLong =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "long"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL name token for hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveSchemaPrimitive :: Typed.TypedName Dtld.SchemaPrimitive-schemaPrimitiveSchemaPrimitive = Typed.TypedName (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive")---- | DSL injection for the string variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveString :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveString =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "string"),-        Model.fieldTerm = Model.TermUnit}}))---- | DSL injection for the time variant of hydra.ext.azure.dtld.SchemaPrimitive-schemaPrimitiveTime :: Typed.TypedTerm Dtld.SchemaPrimitive-schemaPrimitiveTime =-    Typed.TypedTerm (Model.TermInject (Model.Injection {-      Model.injectionTypeName = (Model.Name "hydra.ext.azure.dtld.SchemaPrimitive"),-      Model.injectionField = Model.Field {-        Model.fieldName = (Model.Name "time"),-        Model.fieldTerm = Model.TermUnit}}))  -- | DSL name token for hydra.ext.azure.dtld.Schema schemaSchema :: Typed.TypedName Dtld.Schema