| Copyright | (c) 2009 - 2015 Peter Trsko |
|---|---|
| License | BSD3 |
| Maintainer | peter.trsko@gmail.com |
| Stability | stable |
| Portability | CPP, NoImplicitPrelude, PolyKinds, RankNTypes, DeriveDataTypeable, DeriveGeneric |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Control.Monad.TaggedException.Internal.Throws
Description
Data type for associating monadic value with phantom type. In case of this library it will always be associated with a type of exception it may throw.
- newtype Throws e m a = Throws {
- hideException :: m a
- liftBindLike :: (m a -> (b -> m c) -> m d) -> Throws e m a -> (b -> Throws e m c) -> Throws e m d
- liftCCLike :: (((a -> m b) -> m' c) -> m'' d) -> ((a -> Throws e m b) -> Throws e m' c) -> Throws e m'' d
- liftEmbedLike :: (forall a. m a -> Throws e n a) -> Throws e' m b -> Throws e n b
- liftHoistLike :: (forall a. m a -> n a) -> Throws e m b -> Throws e' n b
- liftMask :: (((forall a. m a -> m a) -> m b) -> m b) -> ((forall a. Throws e m a -> Throws e m a) -> Throws e m b) -> Throws e m b
Documentation
Exception tag.
Constructors
| Throws | |
Fields
| |
Instances
liftBindLike :: (m a -> (b -> m c) -> m d) -> Throws e m a -> (b -> Throws e m c) -> Throws e m d Source
liftCCLike :: (((a -> m b) -> m' c) -> m'' d) -> ((a -> Throws e m b) -> Throws e m' c) -> Throws e m'' d Source
liftEmbedLike :: (forall a. m a -> Throws e n a) -> Throws e' m b -> Throws e n b Source
liftHoistLike :: (forall a. m a -> n a) -> Throws e m b -> Throws e' n b Source