Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
asum :: (Foldable t, Alternative f) => t (f a) -> f arelude 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"
biasum :: (Bifoldable t, Alternative f) => t (f a) (f a) -> f arelude 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
-
relude Relude.Monoid No documentation available.
class
GSerialiseSum (f :: k -> Type)serialise Codec.Serialise.Class Serialization of sum types
decodeSum :: forall s (a :: k) . GSerialiseSum f => Word -> Decoder s (f a)serialise Codec.Serialise.Class Decode field
encodeSum :: forall (a :: k) . GSerialiseSum f => f a -> Encodingserialise Codec.Serialise.Class Encode field
ConsumeBool :: (Bool -> ST s (DecodeAction s a)) -> DecodeAction s aserialise Codec.Serialise.Decoding No documentation available.
ConsumeBreakOr :: (Bool -> ST s (DecodeAction s a)) -> DecodeAction s aserialise Codec.Serialise.Decoding No documentation available.
ConsumeByteArray :: (ByteArray -> ST s (DecodeAction s a)) -> DecodeAction s aserialise Codec.Serialise.Decoding No documentation available.
ConsumeByteArrayCanonical :: (ByteArray -> ST s (DecodeAction s a)) -> DecodeAction s aserialise Codec.Serialise.Decoding No documentation available.