Dynflags refactoring VI (#17957)
- Use Platform instead of DynFlags in GHC.Iface.Binary when possible
- Remove DynFlags parameters from Outputable related stuff (
mkUserStyle
, etc.) - I took the opportunity to refactor logging action (LogAction, DumpAction) which took a unneeded
PprStyle
parameter. - Also removed
PprDebug
(as aPprStyle
) complety. We have a simpler way to test if-dppr-debug
is enabled and it avoids querying DynFlags to know if we need to substitutePprDebug
to the selectedPprStyle
.