Safe Haskell | None |
---|
- errorP :: (Monad m, Error e) => Proxy a' a b' b m (Either e r) -> Proxy a' a b' b (ErrorT e m) r
- runErrorP :: Monad m => Proxy a' a b' b (ErrorT e m) r -> Proxy a' a b' b m (Either e r)
- catchError :: Monad m => Proxy a' a b' b (ErrorT e m) r -> (e -> Proxy a' a b' b (ErrorT f m) r) -> Proxy a' a b' b (ErrorT f m) r
- liftCatchError :: Monad m => (m (Proxy a' a b' b m r) -> (e -> m (Proxy a' a b' b m r)) -> m (Proxy a' a b' b m r)) -> Proxy a' a b' b m r -> (e -> Proxy a' a b' b m r) -> Proxy a' a b' b m r
- maybeP :: Monad m => Proxy a' a b' b m (Maybe r) -> Proxy a' a b' b (M.MaybeT m) r
- runMaybeP :: Monad m => Proxy a' a b' b (M.MaybeT m) r -> Proxy a' a b' b m (Maybe r)
- readerP :: Monad m => (i -> Proxy a' a b' b m r) -> Proxy a' a b' b (ReaderT i m) r
- runReaderP :: Monad m => i -> Proxy a' a b' b (ReaderT i m) r -> Proxy a' a b' b m r
- stateP :: Monad m => (s -> Proxy a' a b' b m (r, s)) -> Proxy a' a b' b (StateT s m) r
- runStateP :: Monad m => s -> Proxy a' a b' b (StateT s m) r -> Proxy a' a b' b m (r, s)
- evalStateP :: Monad m => s -> Proxy a' a b' b (StateT s m) r -> Proxy a' a b' b m r
- execStateP :: Monad m => s -> Proxy a' a b' b (StateT s m) r -> Proxy a' a b' b m s
- writerP :: (Monad m, Monoid w) => Proxy a' a b' b m (r, w) -> Proxy a' a b' b (WriterT w m) r
- runWriterP :: (Monad m, Monoid w) => Proxy a' a b' b (WriterT w m) r -> Proxy a' a b' b m (r, w)
- execWriterP :: (Monad m, Monoid w) => Proxy a' a b' b (WriterT w m) r -> Proxy a' a b' b m w
- rwsP :: (Monad m, Monoid w) => (i -> s -> Proxy a' a b' b m (r, s, w)) -> Proxy a' a b' b (RWST i w s m) r
- runRWSP :: (Monad m, Monoid w) => i -> s -> Proxy a' a b' b (RWST i w s m) r -> Proxy a' a b' b m (r, s, w)
- evalRWSP :: (Monad m, Monoid w) => i -> s -> Proxy a' a b' b (RWST i w s m) r -> Proxy a' a b' b m (r, w)
- execRWSP :: (Monad m, Monoid w) => i -> s -> Proxy a' a b' b (RWST i w s m) r -> Proxy a' a b' b m (s, w)
ErrorT
errorP :: (Monad m, Error e) => Proxy a' a b' b m (Either e r) -> Proxy a' a b' b (ErrorT e m) rSource
Wrap the base monad in ErrorT
runErrorP :: Monad m => Proxy a' a b' b (ErrorT e m) r -> Proxy a' a b' b m (Either e r)Source
Run ErrorT
in the base monad
:: Monad m | |
=> Proxy a' a b' b (ErrorT e m) r | |
-> (e -> Proxy a' a b' b (ErrorT f m) r) | |
-> Proxy a' a b' b (ErrorT f m) r |
Catch an error in the base monad
:: Monad m | |
=> (m (Proxy a' a b' b m r) -> (e -> m (Proxy a' a b' b m r)) -> m (Proxy a' a b' b m r)) | |
-> Proxy a' a b' b m r -> (e -> Proxy a' a b' b m r) -> Proxy a' a b' b m r |
Catch an error using a catch function for the base monad
MaybeT
maybeP :: Monad m => Proxy a' a b' b m (Maybe r) -> Proxy a' a b' b (M.MaybeT m) rSource
Wrap the base monad in M.MaybeT
runMaybeP :: Monad m => Proxy a' a b' b (M.MaybeT m) r -> Proxy a' a b' b m (Maybe r)Source
Run M.MaybeT
in the base monad
ReaderT
readerP :: Monad m => (i -> Proxy a' a b' b m r) -> Proxy a' a b' b (ReaderT i m) rSource
Wrap the base monad in ReaderT
runReaderP :: Monad m => i -> Proxy a' a b' b (ReaderT i m) r -> Proxy a' a b' b m rSource
Run ReaderT
in the base monad
StateT
stateP :: Monad m => (s -> Proxy a' a b' b m (r, s)) -> Proxy a' a b' b (StateT s m) rSource
Wrap the base monad in StateT
runStateP :: Monad m => s -> Proxy a' a b' b (StateT s m) r -> Proxy a' a b' b m (r, s)Source
Run StateT
in the base monad
evalStateP :: Monad m => s -> Proxy a' a b' b (StateT s m) r -> Proxy a' a b' b m rSource
Evaluate StateT
in the base monad
execStateP :: Monad m => s -> Proxy a' a b' b (StateT s m) r -> Proxy a' a b' b m sSource
Execute StateT
in the base monad
WriterT
Note that runWriterP
and execWriterP
will keep the accumulator in
weak-head-normal form so that folds run in constant space when possible.
This means that until transformers
adds a truly strict WriterT
, you
should consider unwrapping WriterT
first using runWriterP
or
execWriterP
before running your Proxy
. You will get better performance
this way and eliminate space leaks if your accumulator doesn't have any lazy
fields.
writerP :: (Monad m, Monoid w) => Proxy a' a b' b m (r, w) -> Proxy a' a b' b (WriterT w m) rSource
Wrap the base monad in WriterT
runWriterP :: (Monad m, Monoid w) => Proxy a' a b' b (WriterT w m) r -> Proxy a' a b' b m (r, w)Source
Run WriterT
in the base monad
execWriterP :: (Monad m, Monoid w) => Proxy a' a b' b (WriterT w m) r -> Proxy a' a b' b m wSource
Execute WriterT
in the base monad
RWST
rwsP :: (Monad m, Monoid w) => (i -> s -> Proxy a' a b' b m (r, s, w)) -> Proxy a' a b' b (RWST i w s m) rSource
Wrap the base monad in RWST
runRWSP :: (Monad m, Monoid w) => i -> s -> Proxy a' a b' b (RWST i w s m) r -> Proxy a' a b' b m (r, s, w)Source
Run RWST
in the base monad