[Haskell-beginners] Conciseness question
Manfred Lotz
manfred.lotz at arcor.de
Sun Aug 7 16:45:01 CEST 2011
On Sun, 7 Aug 2011 10:10:04 -0300
Thiago Negri <evohunz at gmail.com> wrote:
> Hey Manfred.
>
> Take a look at "Record Syntax" topic of the book "Learn you a Haskell
> for great good". It looks like what you want.
>
> http://learnyouahaskell.com/making-our-own-types-and-typeclasses#record-syntax
>
Thanks for pointing me to this. At least it shows a nice way do define
records without the need to name the members.
> >
> > pval = P {
> > a = "bla1",
> > b = "bla2"
> > }
> >
This could be then pval = P "bla1" "bla2", however it doesn't give me
map over the member of the record which I want because I have some 15
members of such a record.
--
Manfred
More information about the Beginners
mailing list