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.
head :: HasCallStack => ByteString -> Word8rio 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.
head :: HasCallStack => ByteString -> Word8rio 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.
head :: HasCallStack => [a] -> ario 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
-
rio RIO.NonEmpty Extract the first element of the stream.
head :: HasCallStack => Text -> Charrio 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.
head :: HasCallStack => Text -> Charrio 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.
-
rio RIO.Vector.Boxed.Partial No documentation available.
head :: Vector v a => v a -> ario RIO.Vector.Partial No documentation available.
head :: Storable a => Vector a -> ario RIO.Vector.Storable.Partial No documentation available.
head :: Unbox a => Vector a -> ario RIO.Vector.Unboxed.Partial No documentation available.