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. lookupResponseHeader :: forall (h :: Symbol) a (headers :: [Type]) r . HasResponseHeader h a headers => Headers headers r -> ResponseHeader h a

    gogol-core Gogol.Prelude

    Look up a specific ResponseHeader, without having to know what position it is in the HList.

    >>> let example1 = addHeader 5 "hi" :: Headers '[Header "someheader" Int] String
    
    >>> let example2 = addHeader True example1 :: Headers '[Header "1st" Bool, Header "someheader" Int] String
    
    >>> lookupResponseHeader example2 :: ResponseHeader "someheader" Int
    Header 5
    
    >>> lookupResponseHeader example2 :: ResponseHeader "1st" Bool
    Header True
    
    Usage of this function relies on an explicit type annotation of the header to be looked up. This can be done with type annotations on the result, or with an explicit type application. In this example, the type of header value is determined by the type-inference, we only specify the name of the header:
    >>> :set -XTypeApplications
    
    >>> case lookupResponseHeader @"1st" example2 of { Header b -> b ; _ -> False }
    True
    

  2. lookupEnv :: MonadIO m => String -> m (Maybe String)

    unliftio UnliftIO.Environment

    Lifted lookupEnv.

  3. lookupJust :: (Eq a, Partial) => a -> [(a, b)] -> b

    safe Safe

    lookupJust key = fromJust . lookup key
    

  4. lookupJustDef :: Eq a => b -> a -> [(a, b)] -> b

    safe Safe

    No documentation available.

  5. lookupJustNote :: (Partial, Eq a) => String -> a -> [(a, b)] -> b

    safe Safe

    No documentation available.

  6. lookupEnv :: String -> IO (Maybe String)

    base-compat System.Environment.Compat

    Return the value of the environment variable var, or Nothing if there is no such value. For POSIX users, this is equivalent to getEnv.

  7. lookupResponseHeader :: forall (h :: Symbol) a (headers :: [Type]) r . HasResponseHeader h a headers => Headers headers r -> ResponseHeader h a

    servant Servant.API

    Look up a specific ResponseHeader, without having to know what position it is in the HList.

    >>> let example1 = addHeader 5 "hi" :: Headers '[Header "someheader" Int] String
    
    >>> let example2 = addHeader True example1 :: Headers '[Header "1st" Bool, Header "someheader" Int] String
    
    >>> lookupResponseHeader example2 :: ResponseHeader "someheader" Int
    Header 5
    
    >>> lookupResponseHeader example2 :: ResponseHeader "1st" Bool
    Header True
    
    Usage of this function relies on an explicit type annotation of the header to be looked up. This can be done with type annotations on the result, or with an explicit type application. In this example, the type of header value is determined by the type-inference, we only specify the name of the header:
    >>> :set -XTypeApplications
    
    >>> case lookupResponseHeader @"1st" example2 of { Header b -> b ; _ -> False }
    True
    

  8. lookupResponseHeader :: forall (h :: Symbol) a (headers :: [Type]) r . HasResponseHeader h a headers => Headers headers r -> ResponseHeader h a

    servant Servant.API.ResponseHeaders

    Look up a specific ResponseHeader, without having to know what position it is in the HList.

    >>> let example1 = addHeader 5 "hi" :: Headers '[Header "someheader" Int] String
    
    >>> let example2 = addHeader True example1 :: Headers '[Header "1st" Bool, Header "someheader" Int] String
    
    >>> lookupResponseHeader example2 :: ResponseHeader "someheader" Int
    Header 5
    
    >>> lookupResponseHeader example2 :: ResponseHeader "1st" Bool
    Header True
    
    Usage of this function relies on an explicit type annotation of the header to be looked up. This can be done with type annotations on the result, or with an explicit type application. In this example, the type of header value is determined by the type-inference, we only specify the name of the header:
    >>> :set -XTypeApplications
    
    >>> case lookupResponseHeader @"1st" example2 of { Header b -> b ; _ -> False }
    True
    

  9. lookupAnchor :: AnchorName -> YamlParser (Maybe YamlValue)

    yaml Data.Yaml.Parser

    No documentation available.

  10. lookupByConstructorName :: Name -> DatatypeInfo -> ConstructorInfo

    th-abstraction Language.Haskell.TH.Datatype

    Given a DatatypeInfo, find the ConstructorInfo corresponding to the Name of one of its constructors.

Page 40 of many | Previous | Next