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
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
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
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...
;-)
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
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]
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/
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
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!
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
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
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
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.
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.
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
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.
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
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
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
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
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.
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
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
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.
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
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
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
27 matches
Mail list logo