Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. head :: HasCallStack => ByteString -> Word8

    rio RIO.ByteString.Lazy.Partial

    O(1) Extract the first element of a ByteString, which must be non-empty. This is a partial function, consider using uncons instead.

  2. head :: HasCallStack => ByteString -> Word8

    rio RIO.ByteString.Partial

    O(1) Extract the first element of a ByteString, which must be non-empty. An exception will be thrown in the case of an empty ByteString. This is a partial function, consider using uncons instead.

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

    rio RIO.List.Partial

    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 :: NonEmpty a -> a

    rio RIO.NonEmpty

    Extract the first element of the stream.

  5. head :: HasCallStack => Text -> Char

    rio RIO.Text.Lazy.Partial

    O(1) Returns the first character of a Text, which must be non-empty. This is a partial function, consider using uncons instead.

  6. head :: HasCallStack => Text -> Char

    rio RIO.Text.Partial

    O(1) Returns the first character of a Text, which must be non-empty. This is a partial function, consider using uncons instead.

  7. head :: Vector a -> a

    rio RIO.Vector.Boxed.Partial

    No documentation available.

  8. head :: Vector v a => v a -> a

    rio RIO.Vector.Partial

    No documentation available.

  9. head :: Storable a => Vector a -> a

    rio RIO.Vector.Storable.Partial

    No documentation available.

  10. head :: Unbox a => Vector a -> a

    rio RIO.Vector.Unboxed.Partial

    No documentation available.

Page 5 of many | Previous | Next