haskell / network

Low-level networking interface
http://hackage.haskell.org/package/network
Other
325 stars 187 forks source link

SocketTypes: use `UnsupportedSocketType` instead of `-1`. #560

Closed jessicah closed 1 year ago

jessicah commented 1 year ago

UnsupportedSocketType was introduced in 569d5d1, but the values were not updated for cases where the socket type did not exist on the target system.

This was discovered whilst attempting to build on Haiku, which does not have SOCK_RDM.

kazu-yamamoto commented 1 year ago

Merged. Thank you for your contribution!