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_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()

    haskell-gi-base Data.GI.Base.ShortPrelude

    Map each element of a structure to a monadic action, evaluate these actions from left to right, and ignore the results. For a version that doesn't ignore the results see mapM. mapM_ is just like traverse_, but specialised to monadic actions.

  2. mapFirst :: (a -> c) -> [(a, b)] -> [(c, b)]

    haskell-gi-base Data.GI.Base.Utils

    Given a function and a list of two-tuples, apply the function to every first element of the tuples.

  3. mapFirstA :: Applicative f => (a -> f c) -> [(a, b)] -> f [(c, b)]

    haskell-gi-base Data.GI.Base.Utils

    Applicative version of mapFirst.

  4. mapSecond :: (b -> c) -> [(a, b)] -> [(a, c)]

    haskell-gi-base Data.GI.Base.Utils

    Same for the second element.

  5. mapSecondA :: Applicative f => (b -> f c) -> [(a, b)] -> f [(a, c)]

    haskell-gi-base Data.GI.Base.Utils

    Applicative version of mapSecond.

  6. mapAccept :: Accept a => [(a, b)] -> ByteString -> Maybe b

    http-media Network.HTTP.Media

    The equivalent of matchAccept above, except the resulting choice is mapped to another value. Convenient for specifying how to translate the resource into each of its available formats.

    getHeader >>= maybe render406Error renderResource . mapAccept
    [ ("text" // "html",        asHtml)
    , ("application" // "json", asJson)
    ]
    

  7. mapAcceptBytes :: [(ByteString, b)] -> ByteString -> Maybe b

    http-media Network.HTTP.Media

    A specialisation of mapAccept that only takes ByteString as its input, to avoid ambiguous-type errors when using string literal overloading.

    getHeader >>= maybe render406Error encodeResourceWith . mapAcceptBytes
    [ ("abc", abc)
    , ("xyz", xyz)
    ]
    

  8. mapAcceptCharset :: [(Charset, b)] -> ByteString -> Maybe b

    http-media Network.HTTP.Media

    A specialisation of mapAccept that only takes Charset as its input, to avoid ambiguous-type errors when using string literal overloading.

    getHeader >>= maybe render406Error renderResource . mapAcceptCharset
    [ ("utf-8",    inUtf8)
    , ("us-ascii", inAscii)
    ]
    

  9. mapAcceptEncoding :: [(Encoding, b)] -> ByteString -> Maybe b

    http-media Network.HTTP.Media

    A specialisation of mapAccept that only takes Encoding as its input, to avoid ambiguous-type errors when using string literal overloading.

    getHeader >>= maybe render406Error renderResource . mapAcceptEncoding
    [ ("compress", compress)
    , ("identity", id)
    ]
    

  10. mapAcceptLanguage :: [(Language, b)] -> ByteString -> Maybe b

    http-media Network.HTTP.Media

    A specialisation of mapAccept that only takes Language as its input, to avoid ambiguous-type errors when using string literal overloading.

    getHeader >>= maybe render406Error renderResource . mapAcceptLanguage
    [ ("en-gb", inBritishEnglish)
    , ("fr",    inFrench)
    ]
    

Page 113 of many | Previous | Next