Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

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

  1. (.) :: (b -> c) -> (a -> b) -> a -> c

    base Prelude

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

  2. (.) :: (b -> c) -> (a -> b) -> a -> c

    base Data.Function

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

  3. (.) :: forall (b :: k) (c :: k) (a :: k) . Category cat => cat b c -> cat a b -> cat a c

    base Control.Category

    morphism composition

  4. (.) :: (b -> c) -> (a -> b) -> a -> c

    base GHC.Base

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

  5. (.) :: (b -> c) -> (a -> b) -> a -> c

    hedgehog Hedgehog.Internal.Prelude

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

  6. (.) :: (b -> c) -> (a -> b) -> a -> c

    ghc GHC.Prelude.Basic

    No documentation available.

  7. (.) :: (b -> c) -> (a -> b) -> a -> c

    haskell-gi-base Data.GI.Base.ShortPrelude

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

  8. (.) :: (b -> c) -> (a -> b) -> a -> c

    rio RIO.Prelude

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

  9. (.) :: (b -> c) -> (a -> b) -> a -> c

    Cabal-syntax Distribution.Compat.Prelude

    No documentation available.

  10. (.) :: (b -> c) -> (a -> b) -> a -> c

    relude Relude.Function

    Right to left function composition.

    (f . g) x = f (g x)
    
    f . id = f = id . f
    

    Examples

    >>> map ((*2) . length) [[], [0, 1, 2], [0]]
    [0,6,2]
    
    >>> foldr (.) id [(+1), (*3), (^3)] 2
    25
    
    >>> let (...) = (.).(.) in ((*2)...(+)) 5 10
    30
    

Page 1 of many | Next