hydra
hydra copied to clipboard
Rename hydra/core.UnitType to hydra/core.Unit
The UnitType type in Hydra Core is, unlike its siblings IntegerType, 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 to Unit.
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.
This has been done for a while. Close.