[Haskell-beginners] type T' = T a b c

Imants Cekusins imantc at gmail.com
Mon Aug 22 12:56:39 UTC 2016


ok this may be it:

data T a = T {

a::a,

common::Int

}
‚Äč
type T' a b = T (a,b)

# of record fields stays the same however we cram more data into the 'a'
field.

it surely works. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160822/edd9ab99/attachment.html>


More information about the Beginners mailing list