If you look at the documentation for conduit-extras
, you'll see
data HostPreference
Which host to bind.
Note: The IsString instance recognizes the following special values:
* means HostAny *4 means HostIPv4 !4 means HostIPv4Only *6 means HostIPv6 !6 means HostIPv6Only
Which tells me that you should be using the extension OverloadedStrings
and then you can just write your code as
main = runTCPServer (serverSettings 8900 "*") serverApp
Although I have to say that is a strange API this library has chosen. I personally would much rather have the ability to use IsString
or an explicit constructor in cases where I don't want to use OverloadedStrings
for whatever reason.