HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestreaming-commons-0.2.3.0Haskell2010

Data.Streaming.Network.Internal

  • 8 types
datadata ServerSettings
#

Settings for a TCP server. It takes a port to listen on, and an optional hostname to bind to.

Instances3HasAfterBind, HasPort, HasReadBufferSize
datadata HostPreference
#

Which host to bind.

Note: The IsString instance recognizes the following special values:

  • * means HostAny - "any IPv4 or IPv6 hostname"

  • *4 means HostIPv4 - "any IPv4 or IPv6 hostname, IPv4 preferred"

  • !4 means HostIPv4Only - "any IPv4 hostname"

  • *6 means HostIPv6@ - "any IPv4 or IPv6 hostname, IPv6 preferred"

  • !6 means HostIPv6Only - "any IPv6 hostname"

Note that the permissive * values allow binding to an IPv4 or an IPv6 hostname, which means you might be able to successfully bind to a port more times than you expect (eg once on the IPv4 localhost 127.0.0.1 and again on the IPv6 localhost 0:0:0:0:0:0:0:1).

Any other value is treated as a hostname. As an example, to bind to the IPv4 local host only, use "127.0.0.1".

Instances5Eq, Ord, Read, Show, IsString
datadata ServerSettingsUnix
#

Settings for a Unix domain sockets server.

Instances3HasAfterBind, HasPath, HasReadBufferSize