16 Nov
2004
16 Nov
'04
3:20 p.m.
On Tue, 16 Nov 2004 15:04:02 +0000, Ian Lynagh <igloo@earth.li> wrote:
Hi all,
Is there a good reason why I can't say
data Bar = Bar { _ :: Int, _ :: Char, x :: Bool }
? (Or "data Bar = Bar { Int, Char, x :: Bool }" if you prefer, but that's susceptible to typos of the "x, y, z :: Int" syntax causing confusion).
I agree that it would be useful, but wouldn't data Bar = Bar Int Char { x :: Bool } make more sense as far as syntax goes? /Martin