Skip to content

hsc2hs on M1 mac is too slow

Summary

I switched my Mac from Intel to M1 and updated GHC to aarch64 binaries. Then I noticed that compiling the network package gets too slow. I'm not sure but it seems to me that hsc2hs is generating .hs files very slowly.

Steps to reproduce

Download the network package and just build it. I'm using cabal v1-build.

Expected behavior

cabal v1-build should be finished within 1 minute. (Currently it takes 10 minutes or more.)

Environment

  • GHC version used: 9.6.1 aarch64 and 9.4.5 aarch64

Optional:

  • Operating System: macOS 13.3.1
  • System Architecture: M1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information