Dns
eff DnsSourcean effect for resolving a domain name to an ip address
Operations
def lookup(host: String): IpAddr \ Dns
Sourcedef lookupAll(host: String): List[IpAddr] \ Dns
SourceDefinitions
def handle(f: a -> b \ ef): a -> Result[IoError, b] \ (ef - Dns) + IO
SourceHandles the Dns effect of the given function f.
In other words, re-interprets the Dns effect using the IO effect.
def runWithIO(f: Unit -> a \ ef): Result[IoError, a] \ (ef - Dns) + IO
SourceHandles the Dns effect of the given function f.
In other words, re-interprets the Dns effect using the IO effect.