Hoogle Search

Within LTS Haskell 22.25 (ghc-9.6.5)

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

  1. newtype () => First a

    linear-base Data.Monoid.Linear

    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
    

  2. First :: a -> First a

    linear-base Data.Monoid.Linear

    No documentation available.

  3. FIRST :: Keyword

    sql-words Language.SQL.Keyword.Type

    No documentation available.

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

  5. First :: Maybe a -> First a

    testing-feat Test.Feat.Enumerate

    No documentation available.

  6. First :: HistIndex b

    histogram-fill Data.Histogram

    Bin with index 0

  7. First :: HistIndex b

    histogram-fill Data.Histogram.Generic

    Bin with index 0

  8. pattern First :: FS TermF a -> FS TermF a

    rzk Language.Rzk.Free.Syntax

    No documentation available.

  9. First :: a -> Term' a -> Term' a

    rzk Language.Rzk.Syntax.Abs

    No documentation available.

  10. newtype () => First a

    stack Stack.Prelude

    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}
    

Page 4 of many | Previous | Next