Single module takes 2 minutes 40 seconds to compile
Summary
Cardano.Api.ProtocolParameters
module takes 2 minutes and 40 seconds to compile.
Steps to reproduce
The function responsible for the long compile time is identified by this PR: https://github.com/input-output-hk/cardano-node/pull/2780/files
Build the project from this branch. Then undo the last commit and build again. The first module built will be the offending module. Manually measure how long it takes to compile this module without the last commit.
Expected behavior
The module should compile within seconds.
Environment
- GHC version used:
8.10.4
Optional:
- Operating System: All operating systems.
- System Architecture: Intel