Maurí­cio <[EMAIL PROTECTED]> writes:

> However, this doesn't work:
>
> data Test = Test Integer {b::String}

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

data Test = Test Integer String

b :: Test -> String
b (Test i s) = s

:-)

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to