You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The network package conditionally defines things depending on the capabilities of the platform, e.g.:
data Family
=
[...]
#ifdef AF_INET6
| AF_INET6 -- Internet Protocol version 6
#endif
[...]
This makes it impossible to write portable programs. Please instead define the datatypes etc unconditionally, and change the code so that, for example, it throws an exception if an unsupported family is used, and perhaps also provide functions like
supportedFamily :: Family -> Bool
The text was updated successfully, but these errors were encountered:
Despite the above pull request, I think there's more to be done. There are still a few functions, especially IPv6 stuff, that are only conditionally exported.
The network package conditionally defines things depending on the capabilities of the platform, e.g.:
This makes it impossible to write portable programs. Please instead define the datatypes etc unconditionally, and change the code so that, for example, it throws an exception if an unsupported family is used, and perhaps also provide functions like
The text was updated successfully, but these errors were encountered: