haskell-github-trust / ekg-core

Library for tracking system metrics
BSD 3-Clause "New" or "Revised" License
40 stars 39 forks source link

Allow ghc-prim == 0.10.0 #50

Open erikd opened 1 year ago

erikd commented 1 year ago

To build with ghc-9.6 I currently need:

allow-newer: ekg-core:ghc-prim

I think this can be fixed with a Hackage metadata edit. @andreasabel.

andreasabel commented 1 year ago

There are warnings about uninitialized fields. One is new (base-4.18/GHC 9.6), the others are old (base-4.15/GHC 9.0):

System/Metrics.hs:489:17: warning: [GHC-20125] [-Wmissing-fields]
    • Fields of ‘Stats.RTSStats’ not initialised:
        nonmoving_gc_sync_cpu_ns :: Stats.RtsTime
        nonmoving_gc_sync_elapsed_ns :: Stats.RtsTime
        nonmoving_gc_sync_max_elapsed_ns :: Stats.RtsTime
        nonmoving_gc_cpu_ns :: Stats.RtsTime
        nonmoving_gc_elapsed_ns :: Stats.RtsTime
        nonmoving_gc_max_elapsed_ns :: Stats.RtsTime

System/Metrics.hs:519:18: warning: [GHC-20125] [-Wmissing-fields]
    • Fields of ‘Stats.GCDetails’ not initialised:
        gcdetails_block_fragmentation_bytes :: GHC.Word.Word64
        gcdetails_nonmoving_gc_sync_cpu_ns :: Stats.RtsTime
        gcdetails_nonmoving_gc_sync_elapsed_ns :: Stats.RtsTime

Folks seem to want to use this package anyway, so I made a bound-relaxing revision ghc-prim < 0.11.