Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromEnumMap :: Methods queue set -> EnumMap SetId set -> queueset-cover Math.SetCover.Queue No documentation available.
-
simple-pango Graphics.Pango.Basic.Fonts.PangoFontDescription.Variations No documentation available.
-
simple-pango Graphics.Pango.Basic.Fonts.PangoFontDescription.Variations No documentation available.
type
FunctionMap = HashMap Identifier Functionsimple-templates Web.Simple.Templates.Types No documentation available.
aiV4Mapped :: AddressInfoFlagssocket System.Socket AI_V4MAPPED: Return mapped IPv4 addresses if no IPv6 addresses could be found or if aiAll flag is set.
-
streamly-core Streamly.Data.Fold Map a Fold returning function on the result of a Fold and run the returned fold. This operation can be used to express data dependencies between fold operations. Let's say the first element in the stream is a count of the following elements that we have to add, then:
>>> import Data.Maybe (fromJust) >>> count = fmap fromJust Fold.one >>> total n = Fold.take n Fold.sum >>> Stream.fold (Fold.concatMap total count) $ Stream.fromList [10,9..1] 45
This does not fuse completely, see refold for a fusible alternative. Time: O(n^2) where n is the number of compositions. See also: foldIterateM, refold demuxToMap :: (Monad m, Ord k) => (a -> k) -> (a -> m (Fold m a b)) -> Fold m a (Map k b)streamly-core Streamly.Data.Fold This collects all the results of demux in a Map.
demuxToMapIO :: (MonadIO m, Ord k) => (a -> k) -> (a -> m (Fold m a b)) -> Fold m a (Map k b)streamly-core Streamly.Data.Fold Same as demuxToMap but uses demuxIO for better performance.
drainMapM :: Monad m => (a -> m b) -> Fold m a ()streamly-core Streamly.Data.Fold Definitions:
>>> drainMapM f = Fold.lmapM f Fold.drain >>> drainMapM f = Fold.foldMapM (void . f)
Drain all input after passing it through a monadic function. This is the dual of mapM_ on stream producers.foldMap :: forall (m :: Type -> Type) b a . (Monad m, Monoid b) => (a -> b) -> Fold m a bstreamly-core Streamly.Data.Fold Definition:
>>> foldMap f = Fold.lmap f Fold.mconcat
Make a fold from a pure function that folds the output of the function using mappend and mempty.>>> sum = Fold.foldMap Data.Monoid.Sum >>> Stream.fold sum $ Stream.enumerateFromTo 1 10 Sum {getSum = 55}