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.
-
openapi3 Data.OpenApi.Internal.Schema No documentation available.
-
openapi3 Data.OpenApi.Internal.Schema Convert one component of the sum to schema, to be later combined with oneOf.
-
openapi3 Data.OpenApi.Internal.Schema No documentation available.
-
openapi3 Data.OpenApi.Lens No documentation available.
asum :: (Foldable t, Alternative f) => t (f a) -> f aprotolude Protolude 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"
msum :: (Foldable t, MonadPlus m) => t (m a) -> m aprotolude Protolude 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"
unboxedSumNameDegree_maybe :: Name -> Maybe Intth-desugar Language.Haskell.TH.Desugar Extract the degree of an unboxed sum Name. In addition to recognizing unboxed sum syntax (e.g., ''()), this also recognizes ''SumN# (for unboxed N-ary sum type constructors). In recent versions of GHC, ''Sum2# is a synonym for ''(), ''Sum3# is a synonym for ''(), and so on. As a result, we must check for ''SumN# in unboxedSumNameDegree_maybe to be thorough.
-
finite-typelits Data.Finite Left-biased (left values come first) disjoint union of finite sets.
-
finite-typelits Data.Finite Take a Left-biased disjoint union apart.
-
finite-typelits Data.Finite.Integral Left-biased (left values come first) disjoint union of finite sets.