Copyright | (c) 2023-2024 Sayo Koyoneda |
---|---|
License | MPL-2.0 (see the file LICENSE) |
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | GHC2021 |
Control.Effect.Key
Description
Synopsis
- class SendFOEBy (key :: k) (ins :: EffectF) (f :: Type -> Type) | key f -> ins where
- sendFOEBy :: ins a -> f a
- class SendHOEBy (key :: k) (sig :: EffectH) (f :: Type -> Type) | key f -> sig where
- sendHOEBy :: sig f a -> f a
- newtype ByKey (key :: k) (f :: Type -> Type) a = ByKey {
- runByKey :: f a
- key :: forall {k} (key :: k) f a. ByKey key f a -> f a
Documentation
newtype ByKey (key :: k) (f :: Type -> Type) a Source #
A wrapper data type to represent sending an effect to the carrier f
with the specified key.