Directory-backed Handle?
Dimitry Golubovsky
golubovsky at gmail.com
Wed Sep 15 09:06:54 EDT 2010
Simon,
Thanks for your reply.
On 9/15/10, Simon Marlow <marlowsd at gmail.com> wrote:
> The FD implementation of Handles never makes a Handle with an IODeviceType
> of Directory, because openFile is specified to raise an exception when
> applied to a directory.
Yes, that was the only place in the Libraries' code I found that
mentions this device type (which means I haven't missed anything ;)
> Alternatively we could give it a meaning as you suggest - newline-separated
> file names seems like a reasonable interpretation.
It looks like there is no comments in the code for the definition of
IODeviceType.
I have created a ticket #4317
http://hackage.haskell.org/trac/ghc/ticket/4317
providing the code comments proposed.
--
Dimitry Golubovsky
Anywhere on the Web
More information about the Glasgow-haskell-users
mailing list