`+RTS -s` is printing the maximum residency as the total memory in use.
Summary
+RTS -s
is printing the maximum residency as the total memory in use instead of the peak memory the RTS has allocated from the OS.
Environment
- GHC version used: 8.6.3
Optional: This bug seems to have been introduced in this commit f0b258bc