Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toDesktopAppInfoLookup :: (MonadIO m, IsDesktopAppInfoLookup o) => o -> m DesktopAppInfoLookup

    gi-gio GI.Gio.Interfaces.DesktopAppInfoLookup

    Cast to DesktopAppInfoLookup, for types for which this is known to be safe. For general casts, use castTo.

  2. proxyResolverLookup :: (HasCallStack, MonadIO m, IsProxyResolver a, IsCancellable b) => a -> Text -> Maybe b -> m [Text]

    gi-gio GI.Gio.Interfaces.ProxyResolver

    Looks into the system proxy configuration to determine what proxy, if any, to use to connect to uri. The returned proxy URIs are of the form <protocol>://[user[:password]@]host[:port] or direct://, where <protocol> could be http, rtsp, socks or other proxying protocol. If you don't know what network protocol is being used on the socket, you should use none as the URI protocol. In this case, the resolver might still return a generic proxy type (such as SOCKS), but would not return protocol-specific proxy types (such as http). direct:// is used when no proxy is needed. Direct connection should not be attempted unless it is part of the returned array of proxies. Since: 2.26

  3. proxyResolverLookupAsync :: (HasCallStack, MonadIO m, IsProxyResolver a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gio GI.Gio.Interfaces.ProxyResolver

    Asynchronous lookup of proxy. See proxyResolverLookup for more details. Since: 2.26

  4. proxyResolverLookupFinish :: (HasCallStack, MonadIO m, IsProxyResolver a, IsAsyncResult b) => a -> b -> m [Text]

    gi-gio GI.Gio.Interfaces.ProxyResolver

    Call this function to obtain the array of proxy URIs when proxyResolverLookupAsync is complete. See proxyResolverLookup for more details. Since: 2.26

  5. resolverLookupByAddress :: (HasCallStack, MonadIO m, IsResolver a, IsInetAddress b, IsCancellable c) => a -> b -> Maybe c -> m Text

    gi-gio GI.Gio.Objects.Resolver

    Synchronously reverse-resolves address to determine its associated hostname. If the DNS resolution fails, error (if non-Nothing) will be set to a value from ResolverError. If cancellable is non-Nothing, it can be used to cancel the operation, in which case error (if non-Nothing) will be set to IOErrorEnumCancelled. Since: 2.22

  6. resolverLookupByAddressAsync :: (HasCallStack, MonadIO m, IsResolver a, IsInetAddress b, IsCancellable c) => a -> b -> Maybe c -> Maybe AsyncReadyCallback -> m ()

    gi-gio GI.Gio.Objects.Resolver

    Begins asynchronously reverse-resolving address to determine its associated hostname, and eventually calls callback, which must call resolverLookupByAddressFinish to get the final result. Since: 2.22

  7. resolverLookupByAddressFinish :: (HasCallStack, MonadIO m, IsResolver a, IsAsyncResult b) => a -> b -> m Text

    gi-gio GI.Gio.Objects.Resolver

    Retrieves the result of a previous call to resolverLookupByAddressAsync. If the DNS resolution failed, error (if non-Nothing) will be set to a value from ResolverError. If the operation was cancelled, error will be set to IOErrorEnumCancelled. Since: 2.22

  8. resolverLookupByName :: (HasCallStack, MonadIO m, IsResolver a, IsCancellable b) => a -> Text -> Maybe b -> m [InetAddress]

    gi-gio GI.Gio.Objects.Resolver

    Synchronously resolves hostname to determine its associated IP address(es). hostname may be an ASCII-only or UTF-8 hostname, or the textual form of an IP address (in which case this just becomes a wrapper around inetAddressNewFromString). On success, resolverLookupByName will return a non-empty List of InetAddress, sorted in order of preference and guaranteed to not contain duplicates. That is, if using the result to connect to hostname, you should attempt to connect to the first address first, then the second if the first fails, etc. If you are using the result to listen on a socket, it is appropriate to add each result using e.g. socketListenerAddAddress. If the DNS resolution fails, error (if non-Nothing) will be set to a value from ResolverError and Nothing will be returned. If cancellable is non-Nothing, it can be used to cancel the operation, in which case error (if non-Nothing) will be set to IOErrorEnumCancelled. If you are planning to connect to a socket on the resolved IP address, it may be easier to create a NetworkAddress and use its SocketConnectable interface. Since: 2.22

  9. resolverLookupByNameAsync :: (HasCallStack, MonadIO m, IsResolver a, IsCancellable b) => a -> Text -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gio GI.Gio.Objects.Resolver

    Begins asynchronously resolving hostname to determine its associated IP address(es), and eventually calls callback, which must call resolverLookupByNameFinish to get the result. See resolverLookupByName for more details. Since: 2.22

  10. resolverLookupByNameFinish :: (HasCallStack, MonadIO m, IsResolver a, IsAsyncResult b) => a -> b -> m [InetAddress]

    gi-gio GI.Gio.Objects.Resolver

    Retrieves the result of a call to resolverLookupByNameAsync. If the DNS resolution failed, error (if non-Nothing) will be set to a value from ResolverError. If the operation was cancelled, error will be set to IOErrorEnumCancelled. Since: 2.22

Page 143 of many | Previous | Next