RE: FW: showing Handle is impure

I share Alastair's concern about the possibility that a handle may not always contain a filename. I think it would be cleaner to assume that the only immutable part of a handle is its identity. And it is important that the identity be shown (that is, as by `show`).
First, on the filename: it was misleading of me to call it a filename.
I should really have called it something like the "handle description" -
it's just a string telling you something about the Handle. In the case
of a Handle to a file, we use the filename for the description. For
stdin, we use the string "<stdin>", for a socket we use the string
"
participants (1)
-
Simon Marlow