On Fri, May 04, 2007 at 19:23:16 +0200, Phlex wrote:
Hello all,
I'm trying to learn haskell, so here's is my first newbie question.
I hope this list is appropriate for such help requests.
I'm trying to write a function with the signature [IO Int] - IO [Int]
Here is my first attempt :
conv ::
Hoogle is also helpful
http://haskell.org/hoogle/?q=%5Bm+a%5D+-%3E+m+%5Ba%5D
2007/5/4, Phlex [EMAIL PROTECTED]:
Hello all,
I'm trying to learn haskell, so here's is my first newbie question.
I hope this list is appropriate for such help requests.
I'm trying to write a function with the
Hello all,
I'm trying to learn haskell, so here's is my first newbie question.
I hope this list is appropriate for such help requests.
I'm trying to write a function with the signature [IO Int] - IO [Int]
Here is my first attempt :
conv :: [IO Int] - IO [Int]
conv l = do val - (head l)
On 5/4/07, Phlex [EMAIL PROTECTED] wrote:
Hello all,
I'm trying to learn haskell, so here's is my first newbie question.
I hope this list is appropriate for such help requests.
I'm trying to write a function with the signature [IO Int] - IO [Int]
Control.Monad has a function (called
Hello,
I'm trying to learn haskell, so here's is my first newbie question.
I hope this list is appropriate for such help requests.
Yes.
I'm trying to write a function with the signature [IO Int] - IO [Int]
As other people have mentioned, the library function sequence has this
type
-Ursprüngliche Nachricht-
Von: Rich Neswold [EMAIL PROTECTED]
Gesendet: 04.05.07 19:31:53
An: Phlex [EMAIL PROTECTED]
CC: haskell-cafe@haskell.org
Betreff: Re: [Haskell-cafe] [IO Int] - IO [Int]
On 5/4/07, Phlex [EMAIL PROTECTED] wrote:
Hello all,
I'm trying to learn haskell
Daniel Fischer wrote:
On 5/4/07, Phlex [EMAIL PROTECTED] wrote:
I'm trying to write a function with the signature [IO Int] - IO [Int]
Control.Monad has a function (called sequence) that does this for you. In fact,
sequence is a more generic solution since its signature is (
Monad m = [m