ghc-trace-events: Faster traceEvent and traceMarker, and binary object logging for eventlog

[ bsd3, development, ghc, library, trace ] [ Propose Tags ]

ghc-trace-events provides faster traceEvent and traceMarker as well as arbitrary binary object logging for the eventlog framework. Unlike the eventlog tracing functions in base, all the tracing functions in this library don't evaluate the input if user event logging (the -lu flag) is disabled, which can give a significant boost in performance. Take a look at the benchmark suite for the details.

This library provies the following modules:

Drop-in replacements for the event tracing functions in Debug.Trace.
UTF-8 encoded ByteString variant of the event tracing functions in Debug.Trace. It's faster than the String variant.
Text variant of the event tracing functions in Debug.Trace. It's faster than the String variant.
Arbitary binary object logging available for GHC 8.8 or later. Unlike the other tracing functions Debug.Trace.Binary.traceBinaryEvent takes an arbitrary ByteString object as opposed to a UTF-8 encoded string.

[Skip to Readme]
Versions [faq] 0.0.0,, 0.1.0,, 0.1.2,,
Change log
Dependencies base (>=4.8 && <4.16), bytestring (>=0.9.2 && <0.12), text (>=1.0.0 && <1.3) [details]
License BSD-3-Clause
Copyright Copyright (C) 2018-2021 Mitsutoshi Aoe
Author Mitsutoshi Aoe
Maintainer Mitsutoshi Aoe <>
Category Development, GHC, Trace
Home page
Source repo head: git clone -b develop
Uploaded by MitsutoshiAoe at 2021-02-26T14:56:24Z
Distributions Arch:, NixOS:, Stackage:
Downloads 2623 total (267 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-02-26 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees

Readme for ghc-trace-events-

[back to package description]


Hackage Hackage-Deps Haskell-CI