Re: Simple IO Monad problem

2003-09-12 Thread Derek Elkins
On 12 Sep 2003 22:08:30 - [EMAIL PROTECTED] wrote: > Hello, > > I'm starting to use Haskell for writing actual programs using monads > and I'm already lost. > > I have the following script: > > #!/usr/bin/runhugs >

Re: Simple IO Monad problem

2003-09-12 Thread Nick Name
Alle 00:08, sabato 13 settembre 2003, [EMAIL PROTECTED] ha scritto: > ERROR "./mailalias.lhs":5 - Type error in final generator > *** Term           : map putStrLn strs > *** Type           : [IO ()] > *** Does not match : IO a > > Can someone please explain what I'm doing wrong? This is a type e

Simple IO Monad problem

2003-09-12 Thread kuq32tr02
Hello, I'm starting to use Haskell for writing actual programs using monads and I'm already lost. I have the following script: #!/usr/bin/runhugs > module Main where > import System(getArgs) > main = do putStr "Hel