haskell-nix / hnix-store

Haskell implementation of the Nix store
Apache License 2.0
85 stars 23 forks source link

Add `GHC.Stats` import to NarFormat test #167

Closed hololeap closed 2 years ago

hololeap commented 2 years ago

This is needed for the tests to compile on my system. Without the import, max_live_bytes and getRTSStats are undefined.

Anton-Latukha commented 2 years ago

Thanks for sending the patch.

The expression "for the tests to compile on my system" seems uninformative. Please, can you add in the code a little bit of explanation/exemplation, why it may be needed for some cases? Maybe CPU architecture & OS at least, maybe build is configured with rtsopts? From that, a lot can follow.