Copyright | 2019 Daniel YU |
---|---|
License | MIT |
Maintainer | leptonyu@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provide supports for handling exception.
Synopsis
- buildError :: forall context env n. (HasWeb context env, MonadMask n, MonadIO n) => Proxy context -> Proxy env -> Factory n (WebEnv env context) ()
- buildWebLogger :: forall context env n. (HasWeb context env, MonadMask n, MonadIO n) => Proxy context -> Proxy env -> Factory n (WebEnv env context) ()
- toMonadLogger :: ToLogStr msg => LogFunc -> Loc -> LogSource -> LogLevel -> msg -> IO ()
- runLoggingT :: LoggingT m a -> (Loc -> LogSource -> LogLevel -> LogStr -> IO ()) -> m a
Documentation
buildError :: forall context env n. (HasWeb context env, MonadMask n, MonadIO n) => Proxy context -> Proxy env -> Factory n (WebEnv env context) () Source #
Catch exception, convert to Resonpose.
buildWebLogger :: forall context env n. (HasWeb context env, MonadMask n, MonadIO n) => Proxy context -> Proxy env -> Factory n (WebEnv env context) () Source #
Register logging requests.
toMonadLogger :: ToLogStr msg => LogFunc -> Loc -> LogSource -> LogLevel -> msg -> IO () Source #
Adapter to monad-logger.