[Haskell-cafe] Re: readFile problem

2007-01-12 Thread Stefan Aeschbacher
Hi, I finally found and solved the problem. The problem was in a small library I wrote which handles threads. When a thread executed its error handler, it started to kill (with throwTo) all other threads in the group he belongs to. Unfortunately all other threads started their error handlers too

[Haskell-cafe] readFile problem

2007-01-08 Thread Stefan Aeschbacher
Hi I am writing a network server in haskell. Lately I seem to have introduced a new bug. On Linux, when a client closes the connection to the server, the server dumps core. On Windows, the error message there is way different from the core dump on Linux. It says: application.exe: config.xml:

Re: [Haskell-cafe] readFile problem

2007-01-08 Thread Kirsten Chevalier
On 1/8/07, Stefan Aeschbacher [EMAIL PROTECTED] wrote: There are many things i do not understand. Why the different behaviour on Linux and Windows? Shouldn't an exception be thrown on Linux instead of a core dump? I don't use any unsafePerformIO or foreign calls. Why the changed path? I never

Re: [Haskell-cafe] readFile problem

2007-01-08 Thread Stefan Aeschbacher
2007/1/8, Kirsten Chevalier [EMAIL PROTECTED]: On 1/8/07, Stefan Aeschbacher [EMAIL PROTECTED] wrote: There are many things i do not understand. Why the different behaviour on Linux and Windows? Shouldn't an exception be thrown on Linux instead of a core dump? I don't use any unsafePerformIO

Re: [Haskell-cafe] readFile problem

2007-01-08 Thread Neil Mitchell
Hi Stefan, I am writing a network server in haskell. Lately I seem to have introduced a new bug. On Linux, when a client closes the connection to the server, the server dumps core. Are you using any calls to system? Any libraries which may do funky stuff? application.exe: config.xml:

Re: [Haskell-cafe] readFile problem

2007-01-08 Thread Stefan Aeschbacher
Hi 2007/1/8, Neil Mitchell [EMAIL PROTECTED]: Hi Stefan, I am writing a network server in haskell. Lately I seem to have introduced a new bug. On Linux, when a client closes the connection to the server, the server dumps core. Are you using any calls to system? Any libraries which may do

Re: a readFile problem

2003-06-03 Thread Hal Daume III
It would probably be helpful if you were to post the code you have and explain what part isn't working. There's a function: readFile :: FilePath - IO String (FilePath is just a String) which reads a file. This should be what you need to solve this exercise... - Hal -- Hal Daume III

a readFile problem

2003-06-02 Thread Naudts, Guido
Hallo, I have the following problem: my program asks the user for a command, when the command is executed a new command is asked (this is no problem ; an example is in the HUgs distribution namely Main.hs in the Prolog example. However one of the commands is: read filename i.e. read a file and