Copyright | (c) Will Sewell, 2015 |
---|---|
License | MIT |
Maintainer | [email protected] |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Control.Monad.Pusher
Description
Monad type aliases for the return types of the external API functions.
The API functions return a monad that implements MonadPusher. The user of the library can use PusherT or PusherM as the concrete return type, or they can use their own types. They are really just aliases for a stack of ReaderT and ErrorT.
Documentation
type MonadPusher m = (Functor m, MonadError String m, MonadHTTP m, MonadReader Pusher m, MonadTime m) Source
Typeclass alias for the return type of the API functions (keeps the signatures less verbose)
type PusherM a = PusherT Identity a Source
Monad that can be used as the return type of the main API functions.