Hoogle Search
Within LTS Haskell 22.24 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
head :: HasCallStack => ShortByteString -> Word8bytestring Data.ByteString.Short O(1) Extract the first element of a ShortByteString, which must be non-empty. An exception will be thrown in the case of an empty ShortByteString. This is a partial function, consider using uncons instead.
head :: HasCallStack => ShortByteString -> Word8bytestring Data.ByteString.Short.Internal O(1) Extract the first element of a ShortByteString, which must be non-empty. An exception will be thrown in the case of an empty ShortByteString. This is a partial function, consider using uncons instead.
head :: HasCallStack => Text -> Chartext Data.Text 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 => Stream Char -> Chartext Data.Text.Internal.Fusion.Common O(1) Returns the first character of a Stream Char, which must be non-empty. This is a partial function, consider using uncons. Properties
head . stream = head
head :: HasCallStack => Text -> Chartext Data.Text.Lazy O(1) Returns the first character of a Text, which must be non-empty. This is a partial function, consider using uncons instead.
-
vector Data.Vector O(1) First element.
-
vector Data.Vector.Fusion.Bundle First element of the Bundle or error if empty
head :: Monad m => Bundle m v a -> m avector Data.Vector.Fusion.Bundle.Monadic First element of the Bundle or error if empty
head :: Vector v a => v a -> avector Data.Vector.Generic O(1) First element.
head :: Prim a => Vector a -> avector Data.Vector.Primitive O(1) First element.