Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
forkMapM__ :: (a -> IO b) -> [a] -> IO ()monad-loops Control.Monad.Loops like forkMapM_ but not even bothering to track success or failure of the child threads. Still waits for them all though.
contramapGLogFunc :: (a -> b) -> GLogFunc b -> GLogFunc ario RIO A contramap. Use this to wrap sub-loggers via mapRIO. If you are on base > 4.12.0, you can just use contramap.
contramapMaybeGLogFunc :: (a -> Maybe b) -> GLogFunc b -> GLogFunc ario RIO A vesion of contramapMaybeGLogFunc which supports filering.
concatMap :: (Word8 -> ByteString) -> ByteString -> ByteStringrio RIO.ByteString Map a function over a ByteString and concatenate the results
concatMap :: (Word8 -> ByteString) -> ByteString -> ByteStringrio RIO.ByteString.Lazy Map a function over a ByteString and concatenate the results
-
Strict Map with hashed keys. Import as:
import qualified RIO.HashMap as HM
This module does not export any partial functions. For those, see RIO.HashMap.Partial -
rio RIO.HashMap A map from keys to values. A map cannot contain duplicate keys; each key can map to at most one value.
fromMap :: HashMap a () -> HashSet ario RIO.HashSet Convert from the equivalent HashMap with () values.
>>> HashSet.fromMap (HashMap.singleton 1 ()) fromList [1]
toMap :: HashSet a -> HashMap a ()rio RIO.HashSet Convert to set to the equivalent HashMap with () values.
>>> HashSet.toMap (HashSet.singleton 1) fromList [(1,())]
concatMap :: Foldable t => (a -> [b]) -> t a -> [b]rio RIO.List Map a function over all the elements of a container and concatenate the resulting lists.
Examples
Basic usage:>>> concatMap (take 3) [[1..], [10..], [100..], [1000..]] [1,2,3,10,11,12,100,101,102,1000,1001,1002]
>>> concatMap (take 3) (Just [1..]) [1,2,3]