Portability  portable 

Stability  provisional 
Maintainer  gcross@phys.washington.edu 
This module provides a monad and a monad transformer that allow the user to abort a monadic computation and immediately return a result.
The Abort monad
type Abort r = AbortT r IdentitySource
An abort monad, parametrized by the type r
of the value to return.
:: Abort r r  the monadic computation to run 
> r  the result of the computation 
Execute the abort monad computation and return the resulting value.
The AbortT monad transformer
An abort monad transformer parametrized by

r
 the value that will ultimately be returned; and 
m
 the inner monad.
The AbortT
type wraps a monadic value that is either
AbortT  

MonadTrans (AbortT r)  
Monad m => Monad (AbortT r m)  
Functor m => Functor (AbortT r m)  
Applicative m => Applicative (AbortT r m)  
MonadIO m => MonadIO (AbortT r m) 
:: Monad m  
=> AbortT r m r  the monadic computation to run 
> m r  the (monadic) result of the computation 
Execute the abort monad computation and return the resulting (monadic) value.
Abort operations
:: Monad m  
=> r  the result to return 
> AbortT r m a  a monadic value that has the effect of terminating the computation and immediately returning a value; note that since all subsequent steps in the computation will be ignored, this monadic value can take an arbitrary type since its value will never be accessed 
Abort the computation and immediately return a result; all steps in the computation after this monadic computation will be ignored.
Note that since no further computation is performed after this, there is no way for subsequent computations to access the monadic value, and so it can be assigned an arbitrary type.