Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. TypeMapLenIndef :: TokenType

    serialise Codec.Serialise.Decoding

    No documentation available.

  2. decodeMapLen :: Decoder s Int

    serialise Codec.Serialise.Decoding

    Decode the length of a map.

  3. decodeMapLenIndef :: Decoder s ()

    serialise Codec.Serialise.Decoding

    Decode a token marking the beginning of a map of indefinite length.

  4. decodeMapLenOrIndef :: Decoder s (Maybe Int)

    serialise Codec.Serialise.Decoding

    Attempt to decode a token for the length of a finite, known map, or an indefinite map. If Nothing is returned, then an indefinite length map occurs afterwords. If Just x is returned, then a map of length x is encoded.

  5. TkMapBegin :: Tokens -> Tokens

    serialise Codec.Serialise.Encoding

    No documentation available.

  6. TkMapLen :: Word -> Tokens -> Tokens

    serialise Codec.Serialise.Encoding

    No documentation available.

  7. encodeMapLen :: Word -> Encoding

    serialise Codec.Serialise.Encoding

    Encode the length of a Map, used to indicate that the following tokens represent the map values.

  8. encodeMapLenIndef :: Encoding

    serialise Codec.Serialise.Encoding

    Encode a token specifying that this is the beginning of an indefinite map of unknown size. Tokens representing the map are expected afterwords, followed by a break token (see encodeBreak) when the map has ended.

  9. bimap :: Bifunctor p => (a -> b) -> (c -> d) -> p a c -> p b d

    streaming Streaming

    Map over both arguments at the same time.

    bimap f g ≡ first f . second g
    

    Examples

    >>> bimap toUpper (+1) ('j', 3)
    ('J',4)
    
    >>> bimap toUpper (+1) (Left 'j')
    Left 'J'
    
    >>> bimap toUpper (+1) (Right 3)
    Right 4
    

  10. foldMap :: (Monad m, Monoid w) => (a -> w) -> Stream (Of a) m r -> m (Of w r)

    streaming Streaming.Prelude

    Map each element of the stream to a monoid, and take the monoidal sum of the results.

    >>> S.foldMap Sum $ S.take 2 (S.stdinLn)
    1<Enter>
    2<Enter>
    3<Enter>
    Sum {getSum = 6} :> ()
    

Page 524 of many | Previous | Next