Hoogle Search

Within LTS Haskell 24.38 (ghc-9.10.3)

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

  1. contramapGLogFunc :: (a -> b) -> GLogFunc b -> GLogFunc a

    rio RIO

    A contramap. Use this to wrap sub-loggers via mapRIO. If you are on base > 4.12.0, you can just use contramap.

  2. contramapMaybeGLogFunc :: (a -> Maybe b) -> GLogFunc b -> GLogFunc a

    rio RIO

    A vesion of contramapMaybeGLogFunc which supports filering.

  3. concatMap :: (Word8 -> ByteString) -> ByteString -> ByteString

    rio RIO.ByteString

    Map a function over a ByteString and concatenate the results

  4. concatMap :: (Word8 -> ByteString) -> ByteString -> ByteString

    rio RIO.ByteString.Lazy

    Map a function over a ByteString and concatenate the results

  5. module RIO.HashMap

    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

  6. data HashMap k v

    rio RIO.HashMap

    A map from keys to values. A map cannot contain duplicate keys; each key can map to at most one value.

  7. fromMap :: HashMap a () -> HashSet a

    rio RIO.HashSet

    Convert from the equivalent HashMap with () values.

    >>> HashSet.fromMap (HashMap.singleton 1 ())
    fromList [1]
    

  8. toMap :: HashSet a -> HashMap a ()

    rio RIO.HashSet

    Convert to set to the equivalent HashMap with () values.

    >>> HashSet.toMap (HashSet.singleton 1)
    fromList [(1,())]
    

  9. 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]
    

  10. foldMapWithKey :: Monoid m => (k -> a -> m) -> Map k a -> m

    rio RIO.Map

    Fold the keys and values in the map using the given monoid, such that

    foldMapWithKey f = fold . mapWithKey f
    
    This can be an asymptotically faster than foldrWithKey or foldlWithKey for some monoids.

Page 490 of many | Previous | Next