On Nov 20, 2009, at 12:25 , Sean Leather wrote:
Perhaps I don't quite get how this works, but when I :set -fbreak-on-exception in GHCi, I get an exception using readFile. It reads the entire file and then throws what appears to be an EOF exception.
I believe that's normal; the runtime normally handles the exception itself, so you normally don't see it, but in principle you could catch it and perhaps do finalizer-ish things.