Lennart Augustsson wrote:
> It looks ugly, but we could say that a data declaration does not
> have to have any constructors:
>
> data Empty =
Philip Wadler responded:
> I'm not keen on the syntax you propose. How about if we allow the
> rhs of a data declaration to be just `empty', where `empty' is a
> keyword?
>
> data Empty = empty
Another suggestion is to omit the equal sign, as in
data Empty
Cheers,
Ronny Wichers Schreur
[EMAIL PROTECTED]
- Re: Haskell 1.3 kh
- Haskell 1.3 "John C. Peterson"
- Re: Haskell 1.3 John Hughes
- Re: Haskell 1.3 John Launchbury
- Re: Haskell 1.3 wadler
- Haskell 1.3 Philip Wadler
- Re: Haskell 1.3 Lennart Augustsson
- Re: Haskell 1.3 Lennart Augustsson
- Re: Haskell 1.3 Philip Wadler
- Re: Haskell 1.3 Magnus Carlsson
- Haskell 1.3 Ron Wichers Schreur
- Haskell 1.3 Frank Christoph
- Re: Haskell 1.3 peterson-john
