haskell / unix

POSIX functionality
https://hackage.haskell.org/package/unix
Other
107 stars 92 forks source link

PosixString.hsc: expose Fd #311

Closed domenkozar closed 1 week ago

hasufell commented 10 months ago

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.

domenkozar commented 10 months ago

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.

hasufell commented 10 months ago

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

hasufell commented 5 months ago

ping

hasufell commented 1 week ago

Is there any interest in pursuing this further?