Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. headDef :: forall (m :: Type -> Type) a o . Monad m => a -> ConduitT a o m a

    conduit Data.Conduit.Combinators

    Same as head, but returns a default value if none are available from the stream.

  2. headE :: forall (m :: Type -> Type) seq o . (Monad m, IsSequence seq) => ConduitT seq o m (Maybe (Element seq))

    conduit Data.Conduit.Combinators

    Get the next element in the chunked stream.

  3. headS :: forall (m :: Type -> Type) a . Monad m => StreamConsumer a m (Maybe a)

    conduit Data.Conduit.Internal.List.Stream

    No documentation available.

  4. headline :: Doc SimpleHtml -> Doc SimpleHtml

    prettyprinter Prettyprinter.Render.Tutorials.StackMachineTutorial

    No documentation available.

  5. headline :: Doc SimpleHtml -> Doc SimpleHtml

    prettyprinter Prettyprinter.Render.Tutorials.TreeRenderingTutorial

    No documentation available.

  6. headDef :: a -> [a] -> a

    safe Safe

    No documentation available.

  7. headErr :: Partial => [a] -> a

    safe Safe

    Identical to head, namely that fails on an empty list. Useful to avoid the x-partial warning introduced in GHC 9.8.

    headErr [] = error "Prelude.head: empty list"
    headErr [1,2,3] = 1
    

  8. headMay :: [a] -> Maybe a

    safe Safe

    No documentation available.

  9. headNote :: Partial => String -> [a] -> a

    safe Safe

    No documentation available.

  10. headDef :: a -> [a] -> a

    extra Data.List.Extra

    A total head with a default value.

    headDef 1 []      == 1
    headDef 1 [2,3,4] == 2
    \x xs -> headDef x xs == fromMaybe x (listToMaybe xs)
    

Page 25 of many | Previous | Next