flix

0.70.0

Net.Dns

eff DnsSource

The effect used to resolve domain names to IP addresses.

Operations

def lookup(host: String): Result[IoError, IpAddr] \ Dns Source
def lookupAll(host: String): Result[IoError, List[IpAddr]] \ Dns Source

Definitions

def handle(f: a -> b \ ef): a -> b \ (ef - Dns) + IO Source

Handles the Dns effect of the given function f.

In other words, re-interprets the Dns effect using the IO effect.

@DefaultHandler
def runWithIO(f: Unit -> a \ ef): a \ (ef - Dns) + IO Source

Handles the Dns effect of the given function f.

In other words, re-interprets the Dns effect using the IO effect.