Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

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

  1. mapM_ :: (a -> IO b) -> InputStream a -> IO (InputStream a)

    io-streams System.IO.Streams.Combinators

    Maps a side effect over an InputStream. mapM_ f s produces a new input stream that passes all output from s through the side-effecting IO action f. Example:

    ghci> Streams.fromList [1,2,3] >>=
    Streams.mapM_ (putStrLn . show . (*2)) >>=
    Streams.toList
    2
    4
    6
    [1,2,3]
    

  2. mapMaybe :: (a -> Maybe b) -> InputStream a -> IO (InputStream b)

    io-streams System.IO.Streams.Combinators

    A version of map that discards elements mapMaybe f s passes all output from s through the function f and discards elements for which f s evaluates to Nothing. Example:

    ghci> Streams.fromList [Just 1, None, Just 3] >>=
    Streams.mapMaybe id >>=
    Streams.toList
    [1,3]
    
    Since: 1.2.1.0

  3. mapFromList :: IsMap map => [(ContainerKey map, MapValue map)] -> map

    mono-traversable Data.Containers

    Convert a list of key-value pairs to a map

  4. mapKeysWith :: (BiPolyMap map, BPMKeyConstraint map k1, BPMKeyConstraint map k2) => (v -> v -> v) -> (k1 -> k2) -> map k1 v -> map k2 v

    mono-traversable Data.Containers

    No documentation available.

  5. mapToList :: IsMap map => map -> [(ContainerKey map, MapValue map)]

    mono-traversable Data.Containers

    Convert a map to a list of key-value pairs.

  6. mapWithKey :: IsMap map => (ContainerKey map -> MapValue map -> MapValue map) -> map -> map

    mono-traversable Data.Containers

    Apply a function over every key-value pair of a map.

  7. mapM_ :: (MonoFoldable mono, Applicative m) => (Element mono -> m ()) -> mono -> m ()

    mono-traversable Data.MonoTraversable.Unprefixed

    Synonym for omapM_

  8. mapNonNull :: (Functor f, MonoFoldable (f b)) => (a -> b) -> NonNull (f a) -> NonNull (f b)

    mono-traversable Data.NonNull

    fmap over the underlying container in a NonNull.

  9. mapToDecoder :: (b -> a) -> Codec context any b -> Codec context Void a

    autodocodec Autodocodec

    Map a codec for decoding bs into a decoder for as. This is useful for building discriminatedUnionCodecs.

  10. mapToEncoder :: b -> Codec context b any -> Codec context a ()

    autodocodec Autodocodec

    Wrap up a value of type b with its codec to produce and encoder for as that ignores its input and instead encodes the value b. This is useful for building discriminatedUnionCodecs.

Page 158 of many | Previous | Next