Open joshsh opened 8 months ago
Note: rather than create a separate issue, there is also some simplification to be done around the Nominal
, Element
, Field
, FieldType
, Name
, and FieldName
types. E.g. if we rename Nominal
to Named
, then wrapper types just become Named Type
. Record types become Named RowType
. Elements become Named Term
, etc.
Currently, wrapper types (newtypes) in Hydra use the Nominal type, which binds a name to another type. Wrapper types are essentially single-field record types. Record types and union types also bind a name to another (row) type, but they do it by including a
typeName
field inRowType
. Record and union types are essentially just named row types, and should probably useNominal
in the same way that wrapper types do.