[clean-list] records without fields
Bernard James POPE
bjpop@cs.mu.OZ.AU
Tue, 15 Jun 2004 19:53:27 +1000
On Tue, Jun 15, 2004 at 10:52:06AM +0200, Paul de Mast wrote:
> 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.
Perhaps you just use an ordinary (nullary) data constructor in that case:
ie:
data Foo = Bar { } -> data Foo = Bar
Bernie.