[clean-list] records without fields

Paul de Mast demast.pjf@avans.nl
Tue, 15 Jun 2004 10:52:06 +0200


In the current Clean implementation records without fields are not
allowed. 

However it would be nice to be able to define records without fields:
Haskell allows them so porting some Haskell code to Clean could be
easier and there are some situations in which records without fields can
be useful. (The concrete situation I run into is in porting
dtdtToHaskell from HaXml to Clean. For mapping a Clean/Haskell type to
Xml records can be used to denote attributes. In the situation an
element has no attributes empty records can be used.) 

Are there any plans to allow empty record definitions in a next Clean
version? 

Paul de Mast