
Hi, Sorry. I found my mistake. I figured my newness in the language was showing, so I asked for help. But, to my surprise, I have been modifying the function for the cache file and testing the data file. :Palm Plant:. Sorry for wasting your time. It is working. Richard Thomas Bach wrote:
Richard Guay
writes: It's not a file permission problem because it works great when the file exists. But, when the file doesn't exist, it still tries to read the file.
Is this also the case with the version provided by Kim-Ee Yeoh?
It acts like the file is there when it isn't. In ghci, it returns the true boolean when the file is there and a false when it isn't. But, in the program, it is always executing the readFile.
This is most unlikely a problem of ghc, i.e. I think there is some problem in your programs logic. Can you provide further code possibly restricting it to a minimal breaking example?
Also: have you tried running the function in question in ghci?
Regards
Thomas. _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners