Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

Help

Juan M. Duran

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

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.12.