boots-web-0.2.0.1: Factory for quickly building a web application

Copyright2019 Daniel YU
LicenseMIT
Maintainerleptonyu@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Boots.Factory.Error

Description

This module provide supports for handling exception.

Synopsis

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.

runLoggingT :: LoggingT m a -> (Loc -> LogSource -> LogLevel -> LogStr -> IO ()) -> m a #