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.

  1. First :: Maybe a -> First a

    ghc-internal GHC.Internal.Data.Monoid

    No documentation available.

  2. newtype First a

    numhask NumHask.Prelude

    Beware that Data.Semigroup.First is different from Data.Monoid.First. The former simply returns the first value, so Data.Semigroup.First Nothing <> x = Data.Semigroup.First Nothing. The latter returns the first non-Nothing, thus Data.Monoid.First Nothing <> x = x.

    Examples

    >>> First 0 <> First 10
    First 0
    
    >>> sconcat $ First 1 :| [ First n | n <- [2 ..] ]
    First 1
    

  3. First :: a -> First a

    numhask NumHask.Prelude

    No documentation available.

  4. data First a

    lens-family-core Lens.Family

    No documentation available.

  5. newtype First a

    optparse-generic Options.Generic

    Maybe monoid returning the leftmost non-Nothing value. First a is isomorphic to Alt Maybe a, but precedes it historically. Beware that Data.Monoid.First is different from Data.Semigroup.First. The former returns the first non-Nothing, so Data.Monoid.First Nothing <> x = x. The latter simply returns the first value, thus Data.Semigroup.First Nothing <> x = Data.Semigroup.First Nothing.

    Examples

    >>> First (Just "hello") <> First Nothing <> First (Just "world")
    First {getFirst = Just "hello"}
    
    >>> First Nothing <> mempty
    First {getFirst = Nothing}
    

  6. First :: Maybe a -> First a

    optparse-generic Options.Generic

    No documentation available.

  7. First :: a -> PolyDiff a b

    fast-myers-diff Myers.Diff

    No documentation available.

  8. FIRST :: Keyword

    sql-words Language.SQL.Keyword.Type

    No documentation available.

  9. newtype First a

    testing-feat Test.Feat.Enumerate

    Maybe monoid returning the leftmost non-Nothing value. First a is isomorphic to Alt Maybe a, but precedes it historically. Beware that Data.Monoid.First is different from Data.Semigroup.First. The former returns the first non-Nothing, so Data.Monoid.First Nothing <> x = x. The latter simply returns the first value, thus Data.Semigroup.First Nothing <> x = Data.Semigroup.First Nothing.

    Examples

    >>> First (Just "hello") <> First Nothing <> First (Just "world")
    First {getFirst = Just "hello"}
    
    >>> First Nothing <> mempty
    First {getFirst = Nothing}
    

  10. First :: Maybe a -> First a

    testing-feat Test.Feat.Enumerate

    No documentation available.

Page 3 of many | Previous | Next