Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
msum :: (Foldable t, MonadPlus m) => t (m a) -> m abase Data.Foldable The sum of a collection of actions using (<|>), generalizing concat. msum is just like asum, but specialised to MonadPlus.
Examples
Basic usage, using the MonadPlus instance for Maybe:>>> msum [Just "Hello", Nothing, Just "World"] Just "Hello"
-
base Data.Monoid No documentation available.
-
base Data.Semigroup No documentation available.
CostCentresSummary :: DoCostCentresbase GHC.RTS.Flags No documentation available.
timeZoneSummerOnly :: TimeZone -> Booltime Data.Time.LocalTime Is this time zone just persisting for the summer?
-
template-haskell Language.Haskell.TH No documentation available.
UnboxedSumE :: Exp -> SumAlt -> SumArity -> Exptemplate-haskell Language.Haskell.TH { (#|e|#) }UnboxedSumP :: Pat -> SumAlt -> SumArity -> Pattemplate-haskell Language.Haskell.TH { (#|p|#) }UnboxedSumT :: SumArity -> Typetemplate-haskell Language.Haskell.TH (#|#), (#||#), etc.
-
template-haskell Language.Haskell.TH No documentation available.