Capability to throw exceptions of type e under tag.
HasThrow/HasCatch capabilities at different tags should be independent.
See HasCatch.
Instances12HasThrow, Reified, …
MonadError e m => HasThrow tag e (MonadError m)Defined in capability-0.5.0.1 · Capability.Error(HasThrow tag e m, MonadTrans t, Monad (t m)) => HasThrow tag e (Lift (t m))Defined in capability-0.5.0.1 · Capability.ErrorLift one layer in a monad transformer stack.
(Exception e, MonadThrow m) => HasThrow tag e (MonadCatch e m)Defined in capability-0.5.0.1 · Capability.Error(Exception e, MonadThrow m) => HasThrow tag e (MonadThrow e m)Defined in capability-0.5.0.1 · Capability.Error(Exception e, MonadThrow m) => HasThrow tag e (SafeExceptions e m)Defined in capability-0.5.0.1 · Capability.Error(Exception e, MonadIO m) => HasThrow tag e (MonadUnliftIO e m)Defined in capability-0.5.0.1 · Capability.ErrorHasThrow oldtag e m => HasThrow newtag e (Rename oldtag m)Defined in capability-0.5.0.1 · Capability.Error(forall x. Coercible (m x) (t2 (t1 m) x), Monad m, HasThrow tag e (t2 (t1 m))) => HasThrow tag e ((:.:) t2 t1 m)Defined in capability-0.5.0.1 · Capability.ErrorCompose two accessors.
(Monad m, Reifies s (Reified tag (HasCatch tag e) m)) => HasThrow tag e (Reflected s (HasCatch tag e) m)Defined in capability-0.5.0.1 · Capability.Error(Monad m, Reifies s (Reified tag (HasThrow tag e) m)) => HasThrow tag e (Reflected s (HasThrow tag e) m)Defined in capability-0.5.0.1 · Capability.Error(AsConstructor' ctor sum e, HasThrow oldtag sum m) => HasThrow ctor e (Ctor ctor oldtag m)Defined in capability-0.5.0.1 · Capability.ErrorWrap the exception
ewith the constructorctorto throw an exception of typesum.data Reified tag (HasThrow tag e)ReifiedThrow_throw :: forall a. e -> m a