[Haskell-beginners] pattern matching on a common element

briand at aracnet.com briand at aracnet.com
Fri Nov 25 16:08:35 UTC 2016


On Fri, 25 Nov 2016 08:41:46 +0000
Rein Henrichs <rein.henrichs at gmail.com> wrote:

> No, you would not. Record syntax is an addition to, not a replacement for,
> the form you want to use.
> 

oh, I see.  I had tried 

 A1 { "a1" 2.0 }

instead of

  A1 ("a1" 2.0)


Brian


More information about the Beginners mailing list