Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
MonadTrans TrasaT Source # | |
Defined in Trasa.Server | |
Monad m => MonadReader TrasaEnv (TrasaT m) Source # | |
Monad m => MonadError TrasaErr (TrasaT m) Source # | |
Defined in Trasa.Server throwError :: TrasaErr -> TrasaT m a # catchError :: TrasaT m a -> (TrasaErr -> TrasaT m a) -> TrasaT m a # | |
Monad m => Monad (TrasaT m) Source # | |
Functor m => Functor (TrasaT m) Source # | |
Monad m => Applicative (TrasaT m) Source # | |
(Alternative m, Monad m) => Alternative (TrasaT m) Source # | |
(Monad m, Alternative m) => MonadPlus (TrasaT m) Source # | |
MonadIO m => MonadIO (TrasaT m) Source # | |
Defined in Trasa.Server | |
(Monad m, Semigroup a) => Semigroup (TrasaT m a) Source # | |
(Monad m, Monoid a) => Monoid (TrasaT m a) Source # | |
Monad m => MonadState (Map (CI ByteString) Text) (TrasaT m) Source # | |
TrasaEnv | |
|
:: TrasaT m a | |
-> Map (CI ByteString) Text | Headers |
-> QueryString | Query string parameters |
-> m (Either TrasaErr a, Map (CI ByteString) Text) |
:: (forall caps qrys req resp. route caps qrys req resp -> MetaServer caps qrys req resp) | |
-> (forall caps qrys req resp. route caps qrys req resp -> Rec Identity caps -> Rec Parameter qrys -> RequestBody Identity req -> TrasaT IO resp) | Actions to perform when requests come in |
-> Router route | Router |
-> Application | Wai Application |