logger icon indicating copy to clipboard operation
logger copied to clipboard

withTimedFastLogger and MonadIO

Open AlexeyRaga opened this issue 7 years ago • 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

AlexeyRaga avatar Apr 04 '17 14:04 AlexeyRaga

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

kazu-yamamoto avatar May 15 '17 00:05 kazu-yamamoto

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

winterland1989 avatar May 15 '17 04:05 winterland1989