[Haskell-beginners] Can fields in a record be optional?
David Place
d at vidplace.com
Wed Jul 20 14:47:45 CEST 2011
On Jul 20, 2011, at 8:07 AM, Mats Rauhala wrote:
> On 18:18 Sun 17 Jul , David Place wrote:
>> 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 example:
>>
>> urContract = Contract { currency = undefined, payments = undefined, contracts = [] }
>
> Out of curiosity, what's the etymology for your 'ur'?
A prefix denoting the earliest or original form of something.
>
> --
> Mats Rauhala
> MasseR
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
More information about the Beginners
mailing list