
15 Sep
2010
15 Sep
'10
9:06 a.m.
Simon,
Thanks for your reply.
On 9/15/10, Simon Marlow
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