Debug.Trace.traceEvent et al. is too expensive if disabled
@mpickering recently pointed out the existence of the ghc-trace-events library, which offers an cheaper alternative to the eventlog utilities in Debug.Trace
. The problem with the latter is that they do appreciable work even if eventlogging is disabled. These should really be no-ops in this case.