Optimise common cases of GHC.setProgramDynFlags