Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

  1. spawnListener :: (MonadBaseControl IO m, MonadMask m) => ConsumerConfig m idx job -> ConnectionSourceM m -> MVar () -> m ThreadId

    consumers Database.PostgreSQL.Consumers.Components

    Spawn a thread that generates signals for the dispatcher to probe the database for incoming jobs.

  2. unsafeFindCycleFromList :: CycleFinder a -> [a] -> (Int, Int, ([a], [a]))

    data-findcycle Data.FindCycle

    Runs the CycleFinder for a given input list. This function is provided as a convenience for when you already have a list of values you'd like to find a cycle in. It's referred to as "unsafe", because it might lead to surprising results when the input doesn't satisfy the invariants that different algorithms assume. All algorithms assume that the sequence they're searching can be constructed by repeated function application from a starting value. Many sequences can't be, such as [1,2,1,3,1,4,1,5,...] (because there can only be one unique successor of 1). Algorithms also assume the input sequence to be infinite, and they will commonly consume more than <math> (or <math>) elements from it. If you provide a finite input list, cycles might not be identified correctly if the chosen algorithm runs into the end of it, even though the input does technically contain an identifiable cycle. If an assumption is violated, algorithms might wrongly identify cycles or never terminate. Try to stick to findCycle, findCycleExtract, cycleExp, or cycleExp' if possible, or only pass infinite lists generated via iterate f x (or equivalent) to unsafeFindCycleFromList. Similar to findCycleExtract, just don't evaluate the last part of the return value if you don't need it and want to avoid the cost of computing it.

  3. fromList :: Ord k => [(Interval k, a)] -> IntervalMap k a

    data-interval Data.IntervalMap.Lazy

    Build a map from a list of key/value pairs. If the list contains more than one value for the same key, the last value for the key is retained.

  4. fromListWith :: Ord k => (a -> a -> a) -> [(Interval k, a)] -> IntervalMap k a

    data-interval Data.IntervalMap.Lazy

    Build a map from a list of key/value pairs with a combining function.

  5. toAscList :: IntervalMap k a -> [(Interval k, a)]

    data-interval Data.IntervalMap.Lazy

    Convert the map to a list of key/value pairs where the keys are in ascending order.

  6. toDescList :: IntervalMap k a -> [(Interval k, a)]

    data-interval Data.IntervalMap.Lazy

    Convert the map to a list of key/value pairs where the keys are in descending order.

  7. toList :: IntervalMap k a -> [(Interval k, a)]

    data-interval Data.IntervalMap.Lazy

    Convert the map to a list of key/value pairs.

  8. fromList :: Ord k => [(Interval k, a)] -> IntervalMap k a

    data-interval Data.IntervalMap.Strict

    Build a map from a list of key/value pairs. If the list contains more than one value for the same key, the last value for the key is retained.

  9. fromListWith :: Ord k => (a -> a -> a) -> [(Interval k, a)] -> IntervalMap k a

    data-interval Data.IntervalMap.Strict

    Build a map from a list of key/value pairs with a combining function.

  10. toAscList :: IntervalMap k a -> [(Interval k, a)]

    data-interval Data.IntervalMap.Strict

    Convert the map to a list of key/value pairs where the keys are in ascending order.

Page 191 of many | Previous | Next