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.

  1. head :: NERAList a -> a

    ral Data.RAList.NonEmpty

    First value, head of the list.

    >>> head $ fromNonEmpty $ 'a' :| ['b'..'f']
    'a'
    

  2. head :: forall (b :: BinP) a . RAVec ('BP b) a -> a

    ral Data.RAVec

    The first element of a non-empty RAVec.

    >>> reifyNonEmpty ('x' :| "yz") head
    'x'
    

  3. head :: forall (b :: BinP) a . NERAVec b a -> a

    ral Data.RAVec.NonEmpty

    No documentation available.

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

    rawfilepath 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.

  5. hEAD :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

  6. hEAD :: ProcessType r => r

    shell-conduit Data.Conduit.Shell.PATH

    No documentation available.

  7. head :: forall (f :: Type -> Type) (n :: Nat) a . (CFoldable f, Dom f a, 0 < n) => Sized f n a -> a

    sized 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

  8. head :: Slist a -> a

    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
    ...
    

  9. 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
    

  10. 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
    

Page 16 of many | Previous | Next