Dns
eff Dns
Sourcean 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) + Net + IO
SourceHandles the Dns
effect of the given function f
.
In other words, re-interprets the Dns
effect using the Net
and IO
effects.
def runWithIO(f: Unit -> a \ ef): Result[IoError, a] \ (ef - Dns) + Net + IO
SourceHandles the Dns
effect of the given function f
.
In other words, re-interprets the Dns
effect using the Net
and IO
effects.