Extracting values from several data constructors

Steffen Mazanek Steffen.Mazanek@UniBw-Muenchen.de
25 Apr 2003 01:15:04 +0200


> 
> What you can do is use record labels.  Here, you just name the two Ints
> the same thing and get what you want:
> 
> > data Test = T1 { test :: Int } | T2 { test :: Int }

Thank you all, that is exactly what I need!