Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
bimapRecovered :: Bimatchable t => (a -> a') -> (b -> b') -> t a b -> t a' b'matchable Data.Bimatchable No documentation available.
fmapRecovered :: Matchable t => (a -> b) -> t a -> t bmatchable Data.Matchable Matchable t implies Functor t. It is not recommended to implement fmap through this function, so it is named fmapRecovered but not fmapDefault.
-
monad-par-extras Control.Monad.Par.Combinator Applies the given function to each element of a data structure in parallel (fully evaluating the results), and returns a new data structure containing the results.
parMap f xs = mapM (spawnP . f) xs >>= mapM get
parMap is commonly used for lists, where it has this specialised type:parMap :: NFData b => (a -> b) -> [a] -> Par [b]
-
monad-par-extras Control.Monad.Par.Combinator Like parMap, but the function is a Par monad operation.
parMapM f xs = mapM (spawn . f) xs >>= mapM get
-
monad-par-extras Control.Monad.Par.Combinator "Auto-partitioning" version of parMapReduceRangeThresh that chooses the threshold based on the size of the range and the number of processors..
-
monad-par-extras Control.Monad.Par.Combinator Computes a binary map/reduce over a finite range. The range is recursively split into two, the result for each half is computed in parallel, and then the two results are combined. When the range reaches the threshold size, the remaining elements of the range are computed sequentially. For example, the following is a parallel implementation of
foldl (+) 0 (map (^2) [1..10^6])
parMapReduceRangeThresh 100 (InclusiveRange 1 (10^6)) (\x -> return (x^2)) (\x y -> return (x+y)) 0
-
Internal support for monoidmap. Internal support for the monoidmap package.
-
monoidmap-internal Data.MonoidMap.Internal No documentation available.
MonoidMap :: Map k (NonNull v) -> MonoidMap k vmonoidmap-internal Data.MonoidMap.Internal No documentation available.
foldMapWithKey :: Monoid r => (k -> v -> r) -> MonoidMap k v -> rmonoidmap-internal Data.MonoidMap.Internal Folds over the keys and values in the map using the given monoid. Satisfies the following property:
foldMapWithKey f m == Map.foldMapWithKey f (toMap m)