Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

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

  1. allTopicsMetadata :: (MonadIO m, HasKafka k) => k -> Timeout -> m (Either KafkaError KafkaMetadata)

    hw-kafka-client Kafka.Metadata

    Returns metadata for all topics in the cluster

  2. alloc :: Region -> IO a -> (a -> IO ()) -> IO (a, Key)

    io-region Control.IO.Region

    Allocate resource inside the region

  3. alloc_ :: Region -> IO a -> (a -> IO ()) -> IO a

    io-region Control.IO.Region

    The same as alloc, but doesn't return the key

  4. allocationLimit :: ThreadOptions -> Maybe ByteCount

    ki-unlifted Ki.Unlifted

    No documentation available.

  5. allowAnti :: AlexPredicate

    language-c-quote Language.C.Parser.Monad

    No documentation available.

  6. allAdjUnique :: Eq a => [a] -> Bool

    list-predicate Data.List.Predicate

    O(n). Whether all adjacent pairs of elements are different. Useful for determining whether a sorted list is all unique.

    >>> allAdjUnique [1, 2, 3, 2]
    True
    
    >>> allAdjUnique [1, 2, 2, 3]
    False
    
    >>> allAdjUnique []
    True
    
    >>> allAdjUnique [1]
    True
    

  7. allAdjUniqueBy :: (a -> a -> Bool) -> [a] -> Bool

    list-predicate Data.List.Predicate

    O(n). Like allAdjUnique, with a custom equality test.

    >>> allAdjUniqueBy ((==) `on` head) ["apple", "bow", "cat", "ant"]
    True
    
    >>> allAdjUniqueBy ((==) `on` head) ["apple", "ant", "bow", "cat"]
    False
    

  8. allEqual :: Eq a => [a] -> Bool

    list-predicate Data.List.Predicate

    O(n). Whether the elements are all equal.

    >>> allEqual [1..]
    False
    
    >>> allEqual [3, 3, 3, 3]
    True
    
    >>> allEqual []
    True
    
    >>> allEqual [1]
    True
    

  9. allEqualBy :: (a -> a -> Bool) -> [a] -> Bool

    list-predicate Data.List.Predicate

    O(n). Like allEqual, with a custom equality test.

    >>> allEqualBy ((==) `on` (`mod` 10)) [3, 13, 23]
    True
    
    >>> allEqualBy ((==) `on` (`mod` 10)) [3, 13, 24]
    False
    

  10. allUnique :: Ord a => [a] -> Bool

    list-predicate Data.List.Predicate

    O(n log(n)). Whether the elements are all unique.

    >>> allUnique [1, 2, 5, 7]
    True
    
    >>> allUnique [1, 2, 5, 2]
    False
    
    >>> allUnique []
    True
    
    >>> allUnique [1]
    True
    

Page 137 of many | Previous | Next