Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. header :: forall (m :: Type -> Type) . Monad m => Text -> ActionT m (Maybe Text)

    scotty Web.Scotty.Trans

    Get a request header. Header name is case-insensitive.

  2. headers :: forall (m :: Type -> Type) . Monad m => ActionT m [(Text, Text)]

    scotty Web.Scotty.Trans

    Get all the request headers. Header names are case-insensitive.

  3. header :: forall (m :: Type -> Type) . Monad m => Text -> ActionT m (Maybe Text)

    scotty Web.Scotty.Trans.Strict

    Get a request header. Header name is case-insensitive.

  4. headers :: forall (m :: Type -> Type) . Monad m => ActionT m [(Text, Text)]

    scotty Web.Scotty.Trans.Strict

    Get all the request headers. Header names are case-insensitive.

  5. headDim :: Index ix => ix -> Int

    massiv Data.Massiv.Core.Index

    Get the outmost dimension of the index.

    Examples

    >>> headDim (2 :> 3 :> 4 :. 5)
    2
    

  6. head' :: (HasCallStack, Source r e) => Vector r e -> e

    massiv Data.Massiv.Vector

    O(1) - Get the first element of a Source vector. Throws an error on empty. Related: shead', headM, sheadM, unconsM.

    Examples

    >>> head' (Ix1 10 ..: 10000000000000)
    10
    
    Similar:
    • Data.List.head Also constant time and partial. Fusion is broken if there other consumers of the list.
    • Data.Vector.Generic.head Also constant time and partial. Will cause materialization of the full vector if any other function is applied to the vector.

  7. headM :: (Source r e, MonadThrow m) => Vector r e -> m e

    massiv Data.Massiv.Vector

    O(1) - Get the first element of a Source vector. Related: head', shead', sheadM, unconsM. Throws Exceptions: SizeEmptyException when array is empty

    Examples

    >>> headM (Ix1 10 ..: 10000000000000)
    10
    
    >>> headM (Ix1 10 ..: 10000000000000) :: Maybe Int
    Just 10
    
    >>> headM (empty :: Array D Ix1 Int) :: Maybe Int
    Nothing
    
    >>> either show (const "") $ headM (Ix1 10 ..: 10)
    "SizeEmptyException: (Sz1 0) corresponds to an empty array"
    
    Similar:
    • Data.Maybe.listToMaybe It also a safe way to get the head of the list, except it is restricted to Maybe

  8. head_ :: HasHead s a => Lens' s a

    openapi3 Data.OpenApi.Lens

    No documentation available.

  9. headers :: HasHeaders s a => Lens' s a

    openapi3 Data.OpenApi.Lens

    No documentation available.

  10. headDef :: a -> [a] -> a

    protolude Protolude.Safe

    No documentation available.

Page 34 of many | Previous | Next