Ticket #4317 (add documentation to IODeviceType)

Dimitry Golubovsky golubovsky at gmail.com
Wed Sep 15 09:08:15 EDT 2010


Hi,

The conversation originally in glasgow-haskell-users.

---------- Forwarded message ----------
From: Dimitry Golubovsky <golubovsky at gmail.com>
Date: Sep 15, 2010 9:06 AM
Subject: Re: Directory-backed Handle?
To: Simon Marlow <marlowsd at gmail.com>
Cc: glasgow-haskell-users at haskell.org


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 Libraries mailing list