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 :: Doc a -> Doc a -> Doc a

    pretty Text.PrettyPrint.Annotated.HughesPJ

    first returns its first argument if it is non-empty, otherwise its second.

  2. first :: Doc -> Doc -> Doc

    pretty Text.PrettyPrint.HughesPJ

    first returns its first argument if it is non-empty, otherwise its second.

  3. first :: Bifunctor p => (a -> b) -> p a c -> p b c

    semigroupoids Data.Bifunctor.Apply

    Map covariantly over the first argument.

    first f ≡ bimap f id
    

    Examples

    >>> first toUpper ('j', 3)
    ('J',3)
    
    >>> first toUpper (Left 'j')
    Left 'J'
    

  4. first :: (a -> a') -> (a, b) -> (a', b)

    extra Data.Tuple.Extra

    Update the first component of a pair.

    first succ (1,"test") == (2,"test")
    

  5. first :: (a -> a') -> (a, b) -> (a', b)

    extra Extra

    Update the first component of a pair.

    first succ (1,"test") == (2,"test")
    

  6. first :: Bifunctor p => (a -> b) -> p i a c -> p i b c

    optics-core Optics.Internal.Bi

    No documentation available.

  7. first :: T (a, b) a

    data-accessor Data.Accessor.Tuple

    Access to the first value of a pair.

  8. first :: Bifunctor p => (a -> b) -> p a c -> p b c

    rio RIO.Prelude

    Map covariantly over the first argument.

    first f ≡ bimap f id
    

    Examples

    >>> first toUpper ('j', 3)
    ('J',3)
    
    >>> first toUpper (Left 'j')
    Left 'J'
    

  9. first :: Arrow a => a b c -> a (b, d) (c, d)

    Cabal-syntax Distribution.Compat.Prelude

    No documentation available.

  10. first :: Bifunctor p => (a -> b) -> p a c -> p b c

    streaming Streaming

    Map covariantly over the first argument.

    first f ≡ bimap f id
    

    Examples

    >>> first toUpper ('j', 3)
    ('J',3)
    
    >>> first toUpper (Left 'j')
    Left 'J'
    

Page 5 of many | Previous | Next