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.

  1. ConsumeItems :: [(Int, GroupName ItemKind)] -> [(Int, GroupName ItemKind)] -> Effect

    LambdaHack 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

  2. msum :: (Foldable t, MonadPlus m) => t (m a) -> m a

    LambdaHack 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"
    

  3. ActivationConsume :: ActivationFlag

    LambdaHack Game.LambdaHack.Definition.Ability

    No documentation available.

  4. consumeItems :: MonadServerAtomic m => ActorId -> EnumMap CStore ItemBag -> [(CStore, (ItemId, ItemFull))] -> m ()

    LambdaHack Game.LambdaHack.Server.HandleEffectM

    No documentation available.

  5. effectConsumeItems :: MonadServerAtomic m => m () -> ItemId -> ActorId -> [(Int, GroupName ItemKind)] -> [(Int, GroupName ItemKind)] -> m UseResult

    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).

  6. effectSummon :: MonadServerAtomic m => GroupName ItemKind -> Dice -> ItemId -> ActorId -> ActorId -> ActivationFlag -> m UseResult

    LambdaHack Game.LambdaHack.Server.HandleEffectM

    No documentation available.

  7. class ParseSumType (xs :: [SchemaType])

    aeson-schemas Data.Aeson.Schema.Internal

    No documentation available.

  8. parseSumType :: ParseSumType xs => [Key] -> Value -> Parser (SumType (SchemaResultList xs))

    aeson-schemas Data.Aeson.Schema.Internal

    No documentation available.

  9. fromSumType :: forall (n :: Nat) (types :: [Type]) result proxy . (IsInRange n types, 'Just result ~ GetIndex n types, FromSumType n types result) => proxy n -> SumType types -> Maybe result

    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
    
    

  10. canResume :: T i y Bool

    alsa-pcm Sound.ALSA.PCM.Parameters.Hardware

    No documentation available.

Page 166 of many | Previous | Next