RE: [Haskell] Re: help with some basic code that doesn't work

2005-03-03 Thread Simon Peyton-Jones
ruary 2005 05:32 | To: haskell@haskell.org | Cc: [EMAIL PROTECTED] | Subject: [Haskell] Re: help with some basic code that doesn't work | | Malcolm Wallace <[EMAIL PROTECTED]> wrote: | > Just a comment, since a couple of people have made similar statements. | > Haskell will derive

Re: [Haskell] Re: help with some basic code that doesn't work

2005-02-14 Thread Tomasz Zielonka
On Mon, Feb 14, 2005 at 12:36:22PM +0100, Remi Turk wrote: > > Now that this topic is brought up... > > > > Occasionally I would need to define recursive datatypes > > using an explicit fixed-point operator, such as: > > > > > data Fix f = In (f (Fix f)) deriving (Show, Eq) > > > data L a x

Re: [Haskell] Re: help with some basic code that doesn't work

2005-02-14 Thread Remi Turk
On Mon, Feb 14, 2005 at 02:31:54PM +0900, Shin-Cheng Mu wrote: > Malcolm Wallace <[EMAIL PROTECTED]> wrote: > >Just a comment, since a couple of people have made similar statements. > >Haskell will derive Eq for arbitrarily complex types - there is no > >restriction to "simple" types, whatever they

Re: [Haskell] Re: help with some basic code that doesn't work

2005-02-13 Thread kahl
Shin-Cheng Mu <[EMAIL PROTECTED]> wrote: > > Occasionally I would need to define recursive datatypes > using an explicit fixed-point operator, such as: > > > data Fix f = In (f (Fix f)) deriving (Show, Eq) > > data L a x = Nil | Cons a x deriving (Show, Eq) > > However, Haske

[Haskell] Re: help with some basic code that doesn't work

2005-02-13 Thread Shin-Cheng Mu
Malcolm Wallace <[EMAIL PROTECTED]> wrote: Just a comment, since a couple of people have made similar statements. Haskell will derive Eq for arbitrarily complex types - there is no restriction to "simple" types, whatever they might be. Now that this topic is brought up... Occasionally I would need