Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

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

  1. asumMap :: forall b m f a . (Foldable f, Alternative m) => (a -> m b) -> f a -> m b

    relude Relude.Foldable.Fold

    Alternative version of asum that takes a function to map over.

    >>> asumMap (\x -> if x > 2 then Just x else Nothing) [1..4]
    Just 3
    

  2. asum :: (Foldable t, Alternative f) => t (f a) -> f a

    relude Relude.Foldable.Reexport

    The sum of a collection of actions using (<|>), generalizing concat. asum is just like msum, but generalised to Alternative.

    Examples

    Basic usage:
    >>> asum [Just "Hello", Nothing, Just "World"]
    Just "Hello"
    

  3. biasum :: (Bifoldable t, Alternative f) => t (f a) (f a) -> f a

    relude Relude.Foldable.Reexport

    The sum of a collection of actions, generalizing biconcat.

    Examples

    Basic usage:
    >>> biasum (Nothing, Nothing)
    Nothing
    
    >>> biasum (Nothing, Just 42)
    Just 42
    
    >>> biasum (Just 18, Nothing)
    Just 18
    
    >>> biasum (Just 18, Just 42)
    Just 18
    

  4. getSum :: Sum a -> a

    relude Relude.Monoid

    No documentation available.

  5. class GSerialiseSum (f :: k -> Type)

    serialise Codec.Serialise.Class

    Serialization of sum types

  6. decodeSum :: forall s (a :: k) . GSerialiseSum f => Word -> Decoder s (f a)

    serialise Codec.Serialise.Class

    Decode field

  7. encodeSum :: forall (a :: k) . GSerialiseSum f => f a -> Encoding

    serialise Codec.Serialise.Class

    Encode field

  8. ConsumeBool :: (Bool -> ST s (DecodeAction s a)) -> DecodeAction s a

    serialise Codec.Serialise.Decoding

    No documentation available.

  9. ConsumeBreakOr :: (Bool -> ST s (DecodeAction s a)) -> DecodeAction s a

    serialise Codec.Serialise.Decoding

    No documentation available.

  10. ConsumeByteArray :: (ByteArray -> ST s (DecodeAction s a)) -> DecodeAction s a

    serialise Codec.Serialise.Decoding

    No documentation available.

Page 112 of many | Previous | Next