Re: [Haskell-cafe] default values in a record structure

2009-04-30 Thread j.waldmann
> Is there anyway when defining a dat type record struct to indicate > default values for some of the fields? A bit dated, but still ... http://article.gmane.org/gmane.comp.lang.haskell.general/2078 J.W. -- View this message in context: http://www.nabble.com/default-values-in-a-record-st

Re: [Haskell-cafe] default values in a record structure

2009-04-29 Thread Sebastiaan Visser
On Apr 29, 2009, at 12:18 AM, Luke Palmer wrote: On Tue, Apr 28, 2009 at 4:09 PM, Vasili I. Galchin > wrote: Hello, Is there anyway when defining a dat type record struct to indicate default values for some of the fields? The usual pattern is to use a default record, and specialize it

Re: [Haskell-cafe] default values in a record structure

2009-04-28 Thread Luke Palmer
On Tue, Apr 28, 2009 at 4:09 PM, Vasili I. Galchin wrote: > Hello, > > Is there anyway when defining a dat type record struct to indicate > default values for some of the fields? The usual pattern is to use a default record, and specialize it: data Foo = Foo { bar :: Int, baz :: Int, quux

[Haskell-cafe] default values in a record structure

2009-04-28 Thread Vasili I. Galchin
Hello, Is there anyway when defining a dat type record struct to indicate default values for some of the fields? Regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe