This repository was archived by the owner on Nov 18, 2023. It is now read-only.

Description
With both ghc 8.0.1 and ghc 7.10.2, compiling matrix with profiling enabled never finishes (or at least doesn't finish within 10 minutes or so).
To reproduce:
$ stack unpack matrix
$ cd matrix-0.3.5.0
$ stack init
$ stack build --profile
The non-profiled object file is built fine, but the profiled object file never finishes. ghc consuming 100% cpu until killed.
This is on a Mac running El Capitan.
Seems like this is a bug in GHC itself, but perhaps something in matrix is causing profiling to take exponential time? Any suggestions welcome.