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.
-
ghc GHC.Data.List.Infinite No documentation available.
head :: HasCallStack => [a] -> aghc GHC.Prelude.Basic No documentation available.
head :: Monad m => Producer a m () -> m (Maybe a)pipes Pipes.Prelude Retrieve the first element from a Producer
-
foldl Control.Foldl Get the first element of a container or return Nothing if the container is empty
head :: Fold ByteString (Maybe Word8)foldl Control.Foldl.ByteString Get the first byte of a byte stream or return Nothing if the stream is empty
-
foldl Control.Foldl.NonEmpty Get the first element of a non-empty container
head :: Fold Text (Maybe Char)foldl Control.Foldl.Text Get the first character of a text stream or return Nothing if the stream is empty
-
text-short Data.Text.Short.Partial Returns first character of a non-empty ShortText
>>> head "abcd" 'a'
Note: Will throw an error exception for empty ShortTexts. Consider using the total functions uncons or indexMaybe instead. head :: T (f :: Type -> Type) a -> anon-empty Data.NonEmpty No documentation available.
head :: MonoFoldable mono => NonNull mono -> Element monomono-traversable Data.NonNull Return the first element of a monomorphic container. Safe version of headEx, only works on monomorphic containers wrapped in a NonNull.