Inhibiting the specialiser?

Conal Elliott conal at
Fri Sep 15 01:45:09 UTC 2017

Is there a GHC flag for inhibiting the specializer (but not all
optimizations)? I'm seeing huge output from the Specialise phase killed at
4GB and growing. The output starts as follows:

Result size of Specialise
  = {terms: 29,639, types: 10,921,552, coercions: 4,425,185}

Sounds like a lot to me. Is it?. I get this behavior with -O2 and with -O.

-- Conal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Glasgow-haskell-users mailing list