Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SubscriptionTarget (m :: Type -> Type) target = SubscriptionTarget {
- getSubscriptionTarget :: m (Maybe (target, SubscriptionTarget m target))
- listSubscriptionTarget :: forall (m :: Type -> Type) target. Applicative m => [target] -> SubscriptionTarget m target
Documentation
newtype SubscriptionTarget (m :: Type -> Type) target Source #
Generate subscription targets in some monad. Examples include obtaining targets from a fixed list, or from a DNS lookup.
SubscriptionTarget | |
|
listSubscriptionTarget :: forall (m :: Type -> Type) target. Applicative m => [target] -> SubscriptionTarget m target Source #