Work around the "can't use Natural in base" problem on a per-flavour basis…

Authored by alpmestan on Sep 5 2018, 12:41 PM.

Description

Work around the "can't use Natural in base" problem on a per-flavour basis (Trac #676)

  • Work around the "can't use natural in base" problem on a per-flavour basis

The only flavours that need the workaround are the ones that build
GHC/{Natural, Num}.hs with -O0, namely 'quick', 'quickest' and 'prof'.
This patches defines the necessary arguments in one place and uses them
in all the aforementionned flavour definitions.

This will allow us to have both quick/quickest/prof builds that come through
as well as an efficient compiler when we want it (with e.g perf), which wasn't
the case before my series of patches for this problem.