
18 Nov
2011
18 Nov
'11
2:30 a.m.
On 18 November 2011 18:16, Magicloud Magiclouds
Hi, For example: "data A = B { c :: Int }". Then I must use it this way "(B 0) { c = 1 }". Anyway I could make it like "(B 0) { d = 1 }"?
No, but you *can* write a function of type `B -> Int -> B' to do it for you. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com