
18 Jul
2011
18 Jul
'11
5:45 a.m.
On 18 July 2011 00:18, David Place
The way I often do this is to create an "ur" instance where all the fields have default values. Then to create an instance, I just do a "record update" of this instance.
For this there is Data.Default in data-default: http://hackage.haskell.org/packages/archive/data-default/0.2.0.1/doc/html/Da...