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. head :: forall (n :: PeanoNum) (k :: PeanoNum) a . (ArityPeano n, n ~ 'S k) => ContVec n a -> a

    fixed-vector Data.Vector.Fixed.Cont

    Finalizer function for getting head of the vector.

  2. head :: forall t (ts :: [Type]) . HVect (t ': ts) -> t

    hvect Data.HVect

    No documentation available.

  3. head :: HasCallStack => [a] -> a

    mixed-types-num Numeric.MixedTypes.PreludeHiding

    Extract the first element of a list, which must be non-empty. To disable the warning about partiality put {-# OPTIONS_GHC -Wno-x-partial -Wno-unrecognised-warning-flags #-} at the top of the file. To disable it throughout a package put the same options into ghc-options section of Cabal file. To disable it in GHCi put :set -Wno-x-partial -Wno-unrecognised-warning-flags into ~/.ghci config file. See also the migration guide.

    Examples
    >>> head [1, 2, 3]
    1
    
    >>> head [1..]
    1
    
    >>> head []
    *** Exception: Prelude.head: empty list
    

  4. head :: NonEmptyVector a -> a

    nonempty-vector Data.Vector.NonEmpty

    O(1) First element. Since head is gauranteed, bounds checks are bypassed by deferring to unsafeHead.

    >>> head $ unsafeFromList [1..10]
    1
    

  5. head :: List a -> Maybe a

    strict-list StrictList

    Get the first element, if list is not empty.

  6. head :: ByteString -> Session SResponse

    tasty-wai Test.Tasty.Wai

    Submit a HEAD request to the provided endpoint.

  7. head :: HasCallStack => [a] -> a

    LambdaHack Game.LambdaHack.Core.Prelude

    Extract the first element of a list, which must be non-empty. To disable the warning about partiality put {-# OPTIONS_GHC -Wno-x-partial -Wno-unrecognised-warning-flags #-} at the top of the file. To disable it throughout a package put the same options into ghc-options section of Cabal file. To disable it in GHCi put :set -Wno-x-partial -Wno-unrecognised-warning-flags into ~/.ghci config file. See also the migration guide.

    Examples
    >>> head [1, 2, 3]
    1
    
    >>> head [1..]
    1
    
    >>> head []
    *** Exception: Prelude.head: empty list
    

  8. head :: HasCallStack => [a] -> a

    LambdaHack Game.LambdaHack.Core.Prelude

    Extract the first element of a list, which must be non-empty. To disable the warning about partiality put {-# OPTIONS_GHC -Wno-x-partial -Wno-unrecognised-warning-flags #-} at the top of the file. To disable it throughout a package put the same options into ghc-options section of Cabal file. To disable it in GHCi put :set -Wno-x-partial -Wno-unrecognised-warning-flags into ~/.ghci config file. See also the migration guide.

    Examples
    >>> head [1, 2, 3]
    1
    
    >>> head [1..]
    1
    
    >>> head []
    *** Exception: Prelude.head: empty list
    

  9. head :: Stream a -> a

    Stream Data.Stream

    Extract the first element of the sequence.

  10. head :: NonEmpty a -> a

    cabal-install-solver Distribution.Solver.Compat.Prelude

    Extract the first element of the stream.

Page 12 of many | Previous | Next