
29 Aug
2008
29 Aug
'08
10:31 a.m.
On 2008 Aug 29, at 9:30, MaurĂ cio wrote:
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?
There's no shorthand for it, no (and therefore you can't get one that works for pattern matching). Personally, I haven't found it a hardship, because you can always used the unnamed field syntax. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH