> On Tue, 14 Feb 2017 at 18:50, Harendra Kumar said:
Hi Harendra. I believe rawr builds on some of the work in
'overloaded records'.
It's not clear what you're trying to do.
Do you need anonymous/extensible records?
>Like
data MyR = MyR { a :: Int, b :: String };
If you want default values:
myRdef = MyR{ a = 0 }; -- don't have to give b
Then bind some value, to incorp defaults.
r = myRdef { b = "hello" }; -- takes the defult for a