Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. all :: Foldable t => (a -> Bool) -> t a -> Bool

    hedgehog Hedgehog.Internal.Prelude

    Determines whether all elements of the structure satisfy the predicate.

    Examples

    Basic usage:
    >>> all (> 3) []
    True
    
    >>> all (> 3) [1,2]
    False
    
    >>> all (> 3) [1,2,3,4,5]
    False
    
    >>> all (> 3) [1..]
    False
    
    >>> all (> 3) [4..]
    * Hangs forever *
    

  2. all :: ByteArrayAccess ba => (Word8 -> Bool) -> ba -> Bool

    memory Data.ByteArray

    Check if all elements of a byte array satisfy a predicate

  3. all :: Foldable t => (a -> Bool) -> t a -> Bool

    ghc GHC.Prelude.Basic

    No documentation available.

  4. all :: Monad m => (a -> Bool) -> Producer a m () -> m Bool

    pipes Pipes.Prelude

    (all predicate p) determines whether all the elements of p satisfy the predicate.

  5. all :: (a -> Bool) -> Fold a Bool

    foldl Control.Foldl

    (all predicate) returns True if all elements satisfy the predicate, False otherwise

  6. all :: (Word8 -> Bool) -> Fold ByteString Bool

    foldl Control.Foldl.ByteString

    (all predicate) returns True if all bytes satisfy the predicate, False otherwise

  7. all :: (Char -> Bool) -> Fold Text Bool

    foldl Control.Foldl.Text

    (all predicate) returns True if all characters satisfy the predicate, False otherwise

  8. all :: (Char -> Bool) -> ShortText -> Bool

    text-short Data.Text.Short

    Test whether all code points in ShortText satisfy a predicate.

    >>> all (const False) ""
    True
    
    >>> all (> 'c') "abcdabcd"
    False
    
    >>> all (/= 'c') "abdabd"
    True
    

  9. all :: (a -> Bool) -> InputStream a -> IO Bool

    io-streams System.IO.Streams.Combinators

    all predicate stream returns True if every element in stream matches the predicate. all consumes as few elements as possible, ending consumption if any element fails the predicate.

    ghci> is <- Streams.fromList [1, 2, 3]
    ghci> Streams.all (< 0) is    -- Consumes one element
    False
    ghci> Streams.read is
    Just 2
    ghci> Streams.all odd is      -- Only 3 remains
    True
    

  10. all :: MonoFoldable mono => (Element mono -> Bool) -> mono -> Bool

    mono-traversable Data.MonoTraversable.Unprefixed

    Synonym for oall

Page 12 of many | Previous | Next