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.
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.
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.
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.
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.
headDim :: Index ix => ix -> Intmassiv Data.Massiv.Core.Index Get the outmost dimension of the index.
Examples
>>> headDim (2 :> 3 :> 4 :. 5) 2
head' :: (HasCallStack, Source r e) => Vector r e -> emassiv 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:headM :: (Source r e, MonadThrow m) => Vector r e -> m emassiv 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
head_ :: HasHead s a => Lens' s aopenapi3 Data.OpenApi.Lens No documentation available.
headers :: HasHeaders s a => Lens' s aopenapi3 Data.OpenApi.Lens No documentation available.
-
protolude Protolude.Safe No documentation available.