Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-30 Thread Vincent Kraeutler
i would just like to say thank you for all the extensive replies. after fiddling with them for an afternoon i'm positive i grokked the concept. it's just too bad the nice wrapper concept from [1] does not seem to be directly applicable to fix in haskell, since they require untyped

Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-30 Thread Tomasz Zielonka
On Tue, May 29, 2007 at 06:40:05PM -0700, Jason Dagit wrote: Speaking of cute code, I'm fond of this: map length . List.group . Control.Monad.Fix.fix $ show fix show is cool in itself! :-) Best regards Tomek ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-30 Thread Albert Y. C. Lai
Roberto Zunino wrote: I actually misread the first one as Control.Monad.Fix.fix ((1:) . tail . scanl (+) 1) which is quite nice too, although map (2^) [0..] would be much simpler! ;-) We apply a lesson learned from my last derivation. The lesson was to look at s!!(n+1). s = 1 : tail

Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-29 Thread kahl
P.S. Have some cute code: Control.Monad.Fix.fix ((1:) . scanl (+) 1) Cute! But what an un-cute qualified name: :t Control.Monad.Fix.fix Control.Monad.Fix.fix :: (a - a) - a Has nothing to do with monads, and would perhaps be considered as ``out of Control'' in any case... ;-)

Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-29 Thread Donald Bruce Stewart
kahl: P.S. Have some cute code: Control.Monad.Fix.fix ((1:) . scanl (+) 1) Cute! But what an un-cute qualified name: :t Control.Monad.Fix.fix Control.Monad.Fix.fix :: (a - a) - a Has nothing to do with monads, and would perhaps be considered as ``out of

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-29 Thread David House
On 29/05/07, Daniel McAllansmith [EMAIL PROTECTED] wrote: Just in case there was some sort of miscommunication, the actual answer to your question is (/=) :: a - a - Bool, as Neil said. Almost, (/=) :: Eq a = a - a. (Just for completeness.) -- -David House, [EMAIL PROTECTED]

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-29 Thread Antti-Juhani Kaijanaho
On Tue, May 29, 2007 at 11:20:27AM +0100, David House wrote: Almost, (/=) :: Eq a = a - a. Well, not quite :) You forgot - Bool at the end :) (Just for completeness.) Exactly :) -- Antti-Juhani Kaijanaho, Jyväskylä http://antti-juhani.kaijanaho.fi/newblog/

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-29 Thread David House
On 29/05/07, Antti-Juhani Kaijanaho [EMAIL PROTECTED] wrote: Well, not quite :) You forgot - Bool at the end :) Ha! Sorry, what a lovely ironic typo. :) -- -David House, [EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-29 Thread Tomasz Zielonka
On Tue, May 29, 2007 at 11:20:27AM +0100, David House wrote: On 29/05/07, Daniel McAllansmith [EMAIL PROTECTED] wrote: Just in case there was some sort of miscommunication, the actual answer to your question is (/=) :: a - a - Bool, as Neil said. Almost, (/=) :: Eq a = a - a. Almost again!

Re: [Haskell-cafe] The C Equiv of != in Haskell miscommunication thread

2007-05-29 Thread Jason Dagit
On 5/28/07, Donald Bruce Stewart [EMAIL PROTECTED] wrote: This thread should end, guys. It is inappropriate for the Haskell lists, and appears to have been a simple misunderstanding anyway. Thanks everyone. Please stay friendly! -- Don P.S. Have some cute code: Control.Monad.Fix.fix

[Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
Hi What is the C equivalent of the inequality operator in Haskell? Thanks Paul ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread Neil Mitchell
Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: http://www.haskell.org/hoogle/?q=a%20-%3E%20a%20-%3E%20Bool Thanks Neil ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I have a legitimate reason to do so.

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread Tony Morris
PR Stanley wrote: Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I have a legitimate reason to do so.

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread Neil Mitchell
Hi You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Hoogle, starting with 'H'. Follow the link I gave you, which is a search engine for Haskell functions, by type and name. If you search for a - a - Bool (a likely type

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread Derek Elkins
PR Stanley wrote: Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I have a legitimate reason to do so.

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread Daniel McAllansmith
On Tuesday 29 May 2007 13:20, PR Stanley wrote: Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I have

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
At 02:26 29/05/2007, you wrote: PR Stanley wrote: Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I have a legitimate reason to do so. Just in case

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
At 02:27 29/05/2007, you wrote: PR Stanley wrote: Hi What is the C equivalent of the inequality operator in Haskell? /= You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Unlike you I only write to the list when I have

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread Alfonso Acosta
On 5/29/07, PR Stanley [EMAIL PROTECTED] wrote: What is this, the Haskell Cafe Gang? Maybe. Moreover this list is not a prepaid service in which you can unpolitely _demand_ answers. You got your question answered still complain ... I don't get it.

Re: [Haskell-cafe] The C Equiv of != in Haskell (Apologies)

2007-05-28 Thread PR Stanley
Hi You can answer these sorts of questions yourself using Hoogle: And what makes you think I haven't tried Google already? Hoogle, starting with 'H'. Follow the link I gave you, which is a search engine for Haskell functions, by type and name. If you search for a - a - Bool (a likely type

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
At 03:02 29/05/2007, you wrote: On 5/29/07, PR Stanley [EMAIL PROTECTED] wrote: What is this, the Haskell Cafe Gang? Maybe. Moreover this list is not a prepaid service in which you can unpolitely _demand_ answers. You got your question answered still complain ... I don't get it. Yes, the

Re: [Haskell-cafe] The C Equiv of != in Haskell (Apologies)

2007-05-28 Thread Alfonso Acosta
On 5/29/07, PR Stanley [EMAIL PROTECTED] wrote: However, I don't think these other individuals had any business poking their hooters into this. If you don't want other individuals poking their hooters in what you write, I recommend you to avoid sending open questions to public mailing lists.

Re: [Haskell-cafe] The C Equiv of != in Haskell

2007-05-28 Thread PR Stanley
Thank you Neil, again I'm sorry for getting the wrong end of the stick. Cheers Paul At 02:50 29/05/2007, you wrote: Hi Paul Sorry if you interpreted my answer as a symbol, I never use smilies so didn't even consider that people may see it in another light! Thanks Neil On 5/29/07, PR Stanley

Re: [Haskell-cafe] The C Equiv of != in Haskell (Apologies)

2007-05-28 Thread PR Stanley
However, I don't think these other individuals had any business poking their hooters into this. If you don't want other individuals poking their hooters in what you write, I recommend you to avoid sending open questions to public mailing lists. yes, I was indeed referring to you and your

Re: [Haskell-cafe] The C Equiv of != in Haskell (Apologies)

2007-05-28 Thread Alfonso Acosta
On 5/29/07, PR Stanley [EMAIL PROTECTED] wrote: Yet, you seem to be desperate to keep the thread alive. As long as I'm personally attacked. But whatever, let's forget about it, you already said it's been a bad day. End of flamebait ___ Haskell-Cafe