Re: [Haskell-cafe] Syntax for modifying nested product types

23 Apr
2004
23 Apr
'04
6:44 a.m.
I would just do: f' = if cond0 then f else id g' = if cond1 then g else id foo { bar = f' (bar foo) , wib = g' (wib foo) } I like seeing the record updated, rather than hiding it in a function. Regards, Keean.
7697
Age (days ago)
7697
Last active (days ago)
0 comments
1 participants
participants (1)
-
MR K P SCHUPKE