VyacheslavHashov/haskell-socket-unix

Building on Windows

Opened this issue · 1 comments

Building on Windows

Hi,

I just thought about this and found you already opened a stub issue for this.

Proposal: Make this library build on Windows, but always return Nothing when trying to build an address. Optionally offer a function isSupported so that an application can check in advance whether unix sockets are supported on a specific platform.

Rationale: I have use cases where the availability of unix sockets would offer additional features, but are not strictly necessary. This approach would avoid the necessity for conditional compilation.