Help
Juan M. Duran
juan@inf.ufpr.br
Mon, 19 Nov 2001 09:56:31 -0200 (BRST)
Hi, I am developing a software based on Genetic Programming and I am
trying that this soft makes source code in Haskell.
I've two problems, one is that I only count on The Haskell report and I
need more information about haskell's available library.
On the other hand, I need to read a file and (as in imperative
programming) get each word the file has because they are parameters for
future functions.
Thanks
Juan
PS: Here is some code I made:
import IO
arch = "twoboxes.dat"
mode = ReadMode
main = do {handler <- openFile arch mode;
contents <- hGetContents handler;
putStr contents; hClose handler }
putList :: a -> [a] -> [a]
putList x [] = [x]
putList x xs = x:xs