I tell you, I'm having a really tough time figuring out how to get I/O
to work in Haskell.  There really is no need to make it so bizarre; one little
side-effect wouldn't have hurt Haskell so much, eh?

        In any case, I'm just trying a simple example:

main = writeFile "ReadMe" "This is a test" exit done

I'm not sure whether or not 'main' is supposed to be a special identifier
which Haskell requires for I/O, but this example is supposed to write the
sentence "This is a test" to the file "ReadMe".  I type this in, and while I
get no error (main is declared of type Dialogue), I also get no "ReadMe" file.
I've tried various other examples which read from and write to stdin and
stdout respectively, but *nothing happens*!  How do I actually get the I/O to
be performed once I've entered the programme?  Damn this sucks.

                                                  Big Al the Devil's Pal!!
                                                     __   __            
                                                    /  `-' /          ,,
                                                    |[====|||||||||||[::}
                                                    \__.-._\          ``



Reply via email to