literal default value for an unknown type

2003-07-08 Thread Andre W B Furtado
Is it possible replace the question mark in the following code in order to make defaultMyType return a don't care value for b? data MyType t = MyType { a :: Int, b :: t} defaultMyType :: MyType defaultMyType = MyType {a = 0, b = ?} Cheers, -- Andre

Re: literal default value for an unknown type

2003-07-08 Thread Derek Elkins
On Tue, 8 Jul 2003 23:16:33 -0300 Andre W B Furtado [EMAIL PROTECTED] wrote: Is it possible replace the question mark in the following code in order to make defaultMyType return a don't care value for b? data MyType t = MyType { a :: Int, b :: t} defaultMyType :: MyType defaultMyType =