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.
-
ral Data.RAList.NonEmpty First value, head of the list.
>>> head $ fromNonEmpty $ 'a' :| ['b'..'f'] 'a'
head :: forall (b :: BinP) a . RAVec ('BP b) a -> aral Data.RAVec The first element of a non-empty RAVec.
>>> reifyNonEmpty ('x' :| "yz") head 'x'
head :: forall (b :: BinP) a . NERAVec b a -> aral Data.RAVec.NonEmpty No documentation available.
head :: HasCallStack => ByteString -> Word8rawfilepath Data.ByteString.RawFilePath 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.
-
shell-conduit Data.Conduit.Shell No documentation available.
-
shell-conduit Data.Conduit.Shell.PATH No documentation available.
head :: forall (f :: Type -> Type) (n :: Nat) a . (CFoldable f, Dom f a, 0 < n) => Sized f n a -> asized Data.Sized Take the first element of non-empty sequence. If you want to make case-analysis for general sequence, see Views and Patterns section. Since 0.7.0.0
-
slist Slist O(1). Extracts the first element of a slist. Uses not total head function, so use wisely. It is recommended to use safeHead instead.
>>> head $ slist "qwerty" 'q' >>> head $ infiniteSlist [1..] 1 >>> head mempty *** Exception: Prelude.head: empty list ...
head :: Monad m => SerialT m a -> m (Maybe a)streamly Streamly.Internal.Data.Stream.IsStream Extract the first element of the stream, if any.
head = (!! 0) head = Stream.fold Fold.one
head :: Monad m => SerialT m a -> m (Maybe a)streamly Streamly.Prelude Extract the first element of the stream, if any.
head = (!! 0) head = Stream.fold Fold.one