haskell / unix

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

PosixString.hsc: expose Fd #311

Open domenkozar opened 8 months ago

hasufell commented 8 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 8 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 8 months ago

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

hasufell commented 3 months ago

ping