Skip to content

Don't conditionally define datatypes etc #40

@igfoo

Description

@igfoo

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions