kazu-yamamoto/logger

withTimedFastLogger and MonadIO

Opened this issue · 2 comments

withTimedFastLogger currently has this signature:

withTimedFastLogger :: IO FormattedTime -> LogType -> (TimedFastLogger -> IO a) -> IO a

Is it possible to have a lifted one?

withTimedFastLogger :: MonadIO m => m FormattedTime -> LogType -> (TimedFastLogger -> m a) -> m a

I believe that withTimedFastLogger was implemented by @winterland1989.
@winterland1989 Would you discuss this with @AlexeyRaga?

I am always in favor of raw IO type, it helps when you want to lift multiple IO action without multiple times lift.