haskell-logger icon indicating copy to clipboard operation
haskell-logger copied to clipboard

Example from README using time does not compile

Open pmlodawski opened this issue 9 years ago • 0 comments

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’

pmlodawski avatar May 08 '15 12:05 pmlodawski