19 Nov
2001
19 Nov
'01
11:56 a.m.
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
9051
Age (days ago)
9051
Last active (days ago)
0 comments
1 participants
participants (1)
-
Juan M. Duran