Hoogle Search

Within LTS Haskell 24.26 (ghc-9.10.3)

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

  1. lookupHeader :: MonadHandler m => CI ByteString -> m (Maybe ByteString)

    yesod-core Yesod.Core.Handler

    Lookup a request header.

  2. lookupHeaders :: MonadHandler m => CI ByteString -> m [ByteString]

    yesod-core Yesod.Core.Handler

    Lookup a request header.

  3. lookupPostParam :: (MonadResource m, MonadHandler m) => Text -> m (Maybe Text)

    yesod-core Yesod.Core.Handler

    No documentation available.

  4. lookupPostParams :: (MonadResource m, MonadHandler m) => Text -> m [Text]

    yesod-core Yesod.Core.Handler

    Lookup for POST parameters.

  5. lookupSession :: MonadHandler m => Text -> m (Maybe Text)

    yesod-core Yesod.Core.Handler

    Lookup for session data.

  6. lookupSessionBS :: MonadHandler m => Text -> m (Maybe ByteString)

    yesod-core Yesod.Core.Handler

    Lookup for session data in binary format.

  7. lookupAll :: Routable k => AddrRange k -> IPRTable k a -> [(AddrRange k, a)]

    iproute Data.IP.RouteTable

    lookupAll is a version of lookup that returns all entries matching the given key, not just the longest match.

    >>> :set -XOverloadedStrings
    
    >>> let rt = fromList ([("192.168.0.0/24", 1), ("10.10.0.0/16", 2), ("10.0.0.0/8", 3)] :: [(AddrRange IPv4, Int)])
    
    >>> lookupAll "127.0.0.1" rt
    []
    
    >>> lookupAll "192.168.0.1" rt
    [(192.168.0.0/24,1)]
    
    >>> lookupAll "10.10.0.1" rt
    [(10.10.0.0/16,2),(10.0.0.0/8,3)]
    

  8. lookupKeyValue :: Routable k => AddrRange k -> IPRTable k a -> Maybe (AddrRange k, a)

    iproute Data.IP.RouteTable

    The lookupKeyValue function looks up IPRTable with a key of AddrRange. If a routing information in IPRTable matches the key, both key and value are returned.

    >>> :set -XOverloadedStrings
    
    >>> let rt = fromList ([("192.168.0.0/24", 1), ("10.10.0.0/16", 2)] :: [(AddrRange IPv4, Int)])
    
    >>> lookupKeyValue "127.0.0.1" rt
    Nothing
    
    >>> lookupKeyValue "192.168.0.1" rt
    Just (192.168.0.0/24,1)
    
    >>> lookupKeyValue "10.10.0.1" rt
    Just (10.10.0.0/16,2)
    

  9. lookupAll :: Routable k => AddrRange k -> IPRTable k a -> [(AddrRange k, a)]

    iproute Data.IP.RouteTable.Internal

    lookupAll is a version of lookup that returns all entries matching the given key, not just the longest match.

    >>> :set -XOverloadedStrings
    
    >>> let rt = fromList ([("192.168.0.0/24", 1), ("10.10.0.0/16", 2), ("10.0.0.0/8", 3)] :: [(AddrRange IPv4, Int)])
    
    >>> lookupAll "127.0.0.1" rt
    []
    
    >>> lookupAll "192.168.0.1" rt
    [(192.168.0.0/24,1)]
    
    >>> lookupAll "10.10.0.1" rt
    [(10.10.0.0/16,2),(10.0.0.0/8,3)]
    

  10. lookupKeyValue :: Routable k => AddrRange k -> IPRTable k a -> Maybe (AddrRange k, a)

    iproute Data.IP.RouteTable.Internal

    The lookupKeyValue function looks up IPRTable with a key of AddrRange. If a routing information in IPRTable matches the key, both key and value are returned.

    >>> :set -XOverloadedStrings
    
    >>> let rt = fromList ([("192.168.0.0/24", 1), ("10.10.0.0/16", 2)] :: [(AddrRange IPv4, Int)])
    
    >>> lookupKeyValue "127.0.0.1" rt
    Nothing
    
    >>> lookupKeyValue "192.168.0.1" rt
    Just (192.168.0.0/24,1)
    
    >>> lookupKeyValue "10.10.0.1" rt
    Just (10.10.0.0/16,2)
    

Page 68 of many | Previous | Next