On 18 November 2011 18:16, Magicloud Magiclouds
<[email protected]> 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
[email protected]
IvanMiljenovic.wordpress.com

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to