On 18 November 2011 18:16, Magicloud Magiclouds <magicloud.magiclo...@gmail.com> wrote: > 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.miljeno...@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe