haskell-logger
haskell-logger copied to clipboard
Example from README using time does not compile
When I try to run a code provided in README
main = print =<< runBaseLogger (Lvl, Msg, Time) test
I get an error
Couldn't match type ‘[Char]’ with ‘IO a0’
Expected type: BaseLoggerT
(System.Log.Tuples.MapRTuple
Data (System.Log.Tuples.Tuple2RTuple (Lvl, Msg, Time)))
Data.Functor.Identity.Identity
(IO a0)
Actual type: BaseLoggerT
(Data Lvl, (Data Msg, (Data Time, ())))
Data.Functor.Identity.Identity
[Char]
In the second argument of ‘runBaseLogger’, namely ‘test’
In the second argument of ‘(=<<)’, namely
‘runBaseLogger (Lvl, Msg, Time) test’