Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Error e m a where
- throw :: forall e a. forall r. Member (Error e) r => e -> Sem r a
- catch :: forall e a. forall r. Member (Error e) r => Sem r a -> (e -> Sem r a) -> Sem r a
- runError :: Sem (Error e ': r) a -> Sem r (Either e a)
- runErrorInIO :: (Typeable e, Member (Lift IO) r) => (forall x. Sem r x -> IO x) -> Sem (Error e ': r) a -> Sem 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 |