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.
ConsumeItems :: [(Int, GroupName ItemKind)] -> [(Int, GroupName ItemKind)] -> EffectLambdaHack Game.LambdaHack.Content.ItemKind ConsumeItems toUse toDestroy uses items matching toUse (destroys non-durable, without invoking OnSmash effects; applies normal effects of durable, without destroying them; the same behaviour as when transforming terrain using items) and destroys items matching toDestroy, invoking no effects, regardless of durability; the items are taken from CGround (but not from CEqp), preferring non-durable (since durable can harm when used and may be more vauable when destroyed); if not all required items are present, no item are destroyed; if an item belongs to many groups in the sum of toUse and toDestroy, it counts for all (otherwise, some orders of destroying would succeed, while others would not); even if item durable, as many copies are needed as specified, not just one applied many times; items are first destroyed and then, if any copies left, applied
msum :: (Foldable t, MonadPlus m) => t (m a) -> m aLambdaHack Game.LambdaHack.Core.Prelude 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"
ActivationConsume :: ActivationFlagLambdaHack Game.LambdaHack.Definition.Ability No documentation available.
-
LambdaHack Game.LambdaHack.Server.HandleEffectM No documentation available.
-
LambdaHack Game.LambdaHack.Server.HandleEffectM Make the target actor destroy the given items, if all present, or none at all, if any is missing. To be used in crafting. The item that caused the effect itself is not considered (any copies).
-
LambdaHack Game.LambdaHack.Server.HandleEffectM No documentation available.
class
ParseSumType (xs :: [SchemaType])aeson-schemas Data.Aeson.Schema.Internal No documentation available.
parseSumType :: ParseSumType xs => [Key] -> Value -> Parser (SumType (SchemaResultList xs))aeson-schemas Data.Aeson.Schema.Internal No documentation available.
-
aeson-schemas Data.Aeson.Schema.Utils.Sum Extract a value from a SumType Example:
type Animal = SumType '[Owl, Cat, Toad] let someAnimal = ... :: Animal fromSumType (Proxy :: Proxy 0) someAnimal :: Maybe Owl fromSumType (Proxy :: Proxy 1) someAnimal :: Maybe Cat fromSumType (Proxy :: Proxy 2) someAnimal :: Maybe Toad -- Compile-time error -- fromSumType (Proxy :: Proxy 3) someAnimal
-
alsa-pcm Sound.ALSA.PCM.Parameters.Hardware No documentation available.