unix icon indicating copy to clipboard operation
unix copied to clipboard

PosixString.hsc: expose Fd

Open domenkozar opened this issue 1 year ago • 4 comments
trafficstars

domenkozar avatar Jan 23 '24 10:01 domenkozar

Why?

Neither System.Posix.IO.ByteString, nor System.Posix.IO re-export them.

If we wanted, we should be consistent. I'm not sure how I generally feel about re-exporting base types.

hasufell avatar Jan 23 '24 10:01 hasufell

Quite a few of functions have Fd in their type signature, so now I need to import it from System.IO if I want to use them.

The way I see it, it already exposes the API on the Fd so it just makes it convenient to have it as one import.

The same goes for SeekMode.

domenkozar avatar Jan 23 '24 10:01 domenkozar

I don't have a strong opinion, but it should be consistent.

hasufell avatar Jan 23 '24 10:01 hasufell

ping

hasufell avatar Jun 24 '24 04:06 hasufell