Compiling Network.AWS.SWF.Types.Product in amazonka-swf uses more than 4G of memory on Ubuntu-18.04
Summary
Write a brief description of the issue.
Steps to reproduce
This is reproducible in this project at the commit:
https://github.com/arbor/antiope/commit/e3d7841912052c8a48fda0685b1ab41384e6faa9
Using the command:
cabal v2-build all $_BUILD_ENABLE_TESTS_FLAG $_BUILD_ENABLE_BENCHMARKS_FLAG -j1
As shown in this failed Circle CI build:
https://circleci.com/gh/arbor/antiope/998
Expected behavior
It is expected that a single module should not take this much memory to compile. Previous versions of GHC did not have this problem.
Environment
- GHC version used:
ghc-8.8.1
$ uname -a
Darwin INTLKyMac.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64