Re: Haskell 98 Revised

2001-11-03 Thread Ian Lynagh
Hi Simon > It's that time of the month. I'm putting out the November release > of the Revised Haskell 98 Report. As ever, I earnestly seek your > feedback. In appendix B (syntax), B.3 (layout) says * A stream of tokens as specified by the lexical syntax in the Haskell report, with the

Re: URGENT: File exists

2001-11-03 Thread bracaman
I am trying to emulate bash in haskell, and i got a function called shell that waits fot the command and then executes it. The problem is that if the file does not exist, the program returns to Main (it gets out of the shell). The only thing i want to do is to return to the shell after an IOEr

Re: URGENT: File exists

2001-11-03 Thread Lennart Augustsson
[EMAIL PROTECTED] wrote: > I need to create a function that checks if a file exists. My intention is to do >something like: > > teste :: String -> Bool (Beeing the String the FilePath) > > I've tried to use openFile and catch functions, but i couldn't put it working. The >purpose of this funct

Re: URGENT: File exists

2001-11-03 Thread Ashley Yakeley
At 2001-11-03 02:56, [EMAIL PROTECTED] wrote: >I need to create a function that checks if a file exists. My intention is >to do something like: > > teste :: String -> Bool (Beeing the String the FilePath) This cannot be done safely. Consider making a function with type test :: String -> I

URGENT: File exists

2001-11-03 Thread bracaman
I need to create a function that checks if a file exists. My intention is to do something like: teste :: String -> Bool (Beeing the String the FilePath) I've tried to use openFile and catch functions, but i couldn't put it working. The purpose of this function is to test a file before trying