Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Error e m a where
- throw :: forall e a. forall r. Member (Error e) r => e -> Semantic r a
- catch :: forall e a. forall r. Member (Error e) r => Semantic r a -> (e -> Semantic r a) -> Semantic r a
- runError :: Typeable e => Semantic (Error e ': r) a -> Semantic r (Either e a)
- runErrorInIO :: (Typeable e, Member (Lift IO) r) => (forall x. Semantic r x -> IO x) -> Semantic (Error e ': r) a -> Semantic r (Either e a)
Effect
data Error e m a where Source #
Instances
type DefiningModule (Error :: Type -> (k -> Type) -> k -> Type) Source # | |
Defined in Polysemy.Error |
Actions
catch :: forall e a. forall r. Member (Error e) r => Semantic r a -> (e -> Semantic r a) -> Semantic r a Source #