Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. lmapCodec :: (newInput -> oldInput) -> Codec context oldInput output -> Codec context newInput output

    autodocodec Autodocodec.Codec

    Map the input part of a codec You can use this function if you only need to map the rendering-side of a codec. This function is probably only useful if the function you map does not change the codec type. WARNING: This can be used to produce a codec that does not roundtrip.

    >>> toJSONVia (lmapCodec (*2) (codec :: JSONCodec Int)) 5
    Number 10.0
    

  2. rmapCodec :: (oldOutput -> newOutput) -> Codec context input oldOutput -> Codec context input newOutput

    autodocodec Autodocodec.Codec

    Map the output part of a codec You can use this function if you only need to map the parsing-side of a codec. This function is probably only useful if the function you map does not change the codec type. WARNING: This can be used to produce a codec that does not roundtrip.

    >>> JSON.parseMaybe (parseJSONVia (rmapCodec (*2) codec)) (Number 5) :: Maybe Int
    Just 10
    

  3. forkMapM :: (a -> IO b) -> [a] -> IO [Either SomeException b]

    monad-loops Control.Monad.Loops

    Like mapM, but run all the actions in parallel threads, collecting up the results and returning them all. Does not return until all actions finish.

  4. forkMapM_ :: (a -> IO b) -> [a] -> IO [Maybe SomeException]

    monad-loops Control.Monad.Loops

    like forkMapM but without bothering to keep the return values

  5. 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.

  6. 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.

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

    rio RIO

    A vesion of contramapMaybeGLogFunc which supports filering.

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

    rio RIO.ByteString

    Map a function over a ByteString and concatenate the results

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

    rio RIO.ByteString.Lazy

    Map a function over a ByteString and concatenate the results

  10. 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

Page 490 of many | Previous | Next