[Haskell-cafe] Named field syntax

Maurí­cio briqueabraque at yahoo.com
Fri Aug 29 09:30:35 EDT 2008


Hi,

I see that this works:

data Test = Test Integer String

This also works:

data Test = Test {a::Integer,b::String}

However, this doesn't:

data Test = Test Integer {b::String}

Is there some way to name only a single, or a few,
of some data type fields?

Thanks,
Maurício



More information about the Haskell-Cafe mailing list