Re: [Haskell-cafe] [IO Int] - IO [Int]

2007-05-06 Thread Magnus Therning
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 ::

Re: [Haskell-cafe] [IO Int] - IO [Int]

2007-05-05 Thread Thomas Hartman
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

[Haskell-cafe] [IO Int] - IO [Int]

2007-05-04 Thread Phlex
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)

Re: [Haskell-cafe] [IO Int] - IO [Int]

2007-05-04 Thread Rich Neswold
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

Re: [Haskell-cafe] [IO Int] - IO [Int]

2007-05-04 Thread Jeff Polakow
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

Re: [Haskell-cafe] [IO Int] - IO [Int]

2007-05-04 Thread Daniel Fischer
-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

Re: [Haskell-cafe] [IO Int] - IO [Int]

2007-05-04 Thread Phlex
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