Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

  1. lookupAbbreviation :: CiteprocOutput a => Variable -> Val a -> Abbreviations -> Maybe (Val a)

    citeproc Citeproc.Types

    Returns an abbreviation if the variable and its value match something in the abbreviations map.

  2. lookupReference :: ItemId -> ReferenceMap a -> Maybe (Reference a)

    citeproc Citeproc.Types

    No documentation available.

  3. lookupVariable :: CiteprocOutput a => Variable -> Reference a -> Maybe (Val a)

    citeproc Citeproc.Types

    No documentation available.

  4. lookupKV :: forall k v f (es :: [Effect]) (ff :: (Type -> Type) -> Type -> Type) (c :: (Type -> Type) -> Constraint) . (Free c ff, f ~ Eff ff es, KVStore k v :> es) => k -> f (Maybe v)

    data-effects Data.Effect.KVStore

    No documentation available.

  5. lookupKV'_ :: forall k v f (es :: [Effect]) (ff :: (Type -> Type) -> Type -> Type) (c :: (Type -> Type) -> Constraint) . (Free c ff, f ~ Eff ff es, In (KVStore k v) es) => k -> f (Maybe v)

    data-effects Data.Effect.KVStore

    No documentation available.

  6. lookupOrThrowKV :: forall k v e (es :: [Effect]) (ff :: (Type -> Type) -> Type -> Type) (c :: (Type -> Type) -> Constraint) . (KVStore k v :> es, Throw e :> es, Monad (Eff ff es), Free c ff) => (k -> e) -> k -> Eff ff es v

    data-effects Data.Effect.KVStore

    No documentation available.

  7. lookupA :: Resolver -> Domain -> IO (Either DNSError [IPv4])

    dns Network.DNS.Lookup

    Look up all 'A' records for the given hostname. A straightforward example:

    >>> rs <- makeResolvSeed defaultResolvConf
    
    >>> withResolver rs $ \resolver -> lookupA resolver "192.0.2.1.nip.io"
    Right [192.0.2.1]
    
    This function will also follow a CNAME and resolve its target if one exists for the queried hostname:
    >>> rs2 <- makeResolvSeed defaultResolvConf
    
    >>> withResolver rs2 $ \resolver -> lookupA resolver "www.kame.net"
    Right [210.155.141.200]
    

  8. lookupAAAA :: Resolver -> Domain -> IO (Either DNSError [IPv6])

    dns Network.DNS.Lookup

    Look up all (IPv6) 'AAAA' records for the given hostname. Examples:

    >>> rs <- makeResolvSeed defaultResolvConf
    
    >>> withResolver rs $ \resolver -> lookupAAAA resolver "www.wide.ad.jp"
    Right [2001:200:0:180c:20c:29ff:fec9:9d61]
    

  9. lookupAAAAviaMX :: Resolver -> Domain -> IO (Either DNSError [IPv6])

    dns Network.DNS.Lookup

    Look up all 'MX' records for the given hostname, and then resolve their hostnames to IPv6 addresses by calling lookupAAAA. The priorities are not retained.

  10. lookupAviaMX :: Resolver -> Domain -> IO (Either DNSError [IPv4])

    dns Network.DNS.Lookup

    Look up all 'MX' records for the given hostname, and then resolve their hostnames to IPv4 addresses by calling lookupA. The priorities are not retained. Examples:

    >>> import Data.List (sort)
    
    >>> rs <- makeResolvSeed defaultResolvConf
    
    >>> ips <- withResolver rs $ \resolver -> lookupAviaMX resolver "wide.ad.jp"
    
    >>> fmap sort ips
    Right [203.178.136.30]
    
    Since there is more than one result, it is necessary to sort the list in order to check for equality.

Page 105 of many | Previous | Next