haskell-github-trust / ekg-core

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

Support base-4.12 #27

Closed ocharles closed 5 years ago

ocharles commented 6 years ago

I can't update ekg-carbon until ekg-core builds with base-4.12.

hvr commented 5 years ago

base-4.12 seems to have added additional fields which need to be taken care of in order to be compatible w/ base-4.12:

System/Metrics.hs:479:17: warning: [-Wmissing-fields]
    • Fields of ‘Stats.RTSStats’ not initialised: init_cpu_ns,
                                                  init_elapsed_ns
    • In the expression:
        Stats.RTSStats
          {gcs = 0, major_gcs = 0, allocated_bytes = 0, max_live_bytes = 0,
           max_large_objects_bytes = 0, max_compact_bytes = 0,
           max_slop_bytes = 0, max_mem_in_use_bytes = 0,
           cumulative_live_bytes = 0, copied_bytes = 0, par_copied_bytes = 0,
           cumulative_par_max_copied_bytes = 0,
           cumulative_par_balanced_copied_bytes = 0, mutator_cpu_ns = 0,
           mutator_elapsed_ns = 0, gc_cpu_ns = 0, gc_elapsed_ns = 0,
           cpu_ns = 0, elapsed_ns = 0, gc = emptyGCDetails}
      In an equation for ‘emptyRTSStats’:
          emptyRTSStats
            = Stats.RTSStats
                {gcs = 0, major_gcs = 0, allocated_bytes = 0, max_live_bytes = 0,
                 max_large_objects_bytes = 0, max_compact_bytes = 0,
                 max_slop_bytes = 0, max_mem_in_use_bytes = 0,
                 cumulative_live_bytes = 0, copied_bytes = 0, par_copied_bytes = 0,
                 cumulative_par_max_copied_bytes = 0,
                 cumulative_par_balanced_copied_bytes = 0, mutator_cpu_ns = 0,
                 mutator_elapsed_ns = 0, gc_cpu_ns = 0, gc_elapsed_ns = 0,
                 cpu_ns = 0, elapsed_ns = 0, gc = emptyGCDetails}
    |
479 | emptyRTSStats = Stats.RTSStats
    |                 ^^^^^^^^^^^^^^...
pepeiborra commented 5 years ago

+1