Open joshsh opened 4 months ago
unit is also the empty tuple and empty record
Empty tuple is different in Hydra (though yes it can be considered equivalent), and there are also other empty records in Hydra which are distinct from unit. It’s the canonical empty record, though.
The
UnitType
type in Hydra Core is, unlike its siblingsIntegerType
,MapType
, etc. not used exclusively in type definitions. The one and only instance of this type is the unit value, which is used throughout Hydra at both the term and the type level. Rename the type toUnit
.